<< Chapter < Page
  Digital signal processing - dsp     Page 8 / 21
Chapter >> Page >

The quality of the transform process

The remaining nine lines indicate something about the quality of the forward and inverse transforms in terms of the ability of the inverse transform toreplicate the original spatial surface. These lines also indicate something about the correctness of the overall scaling from original input to finaloutput.

Matching pairs of values

Each of the last nine lines contains a pair of values. The first value is a sample from the original spatial surface. The second value is a sample from thecorresponding location on the spatial surface produced by performing an inverse transform on the wavenumber spectrum. The two values in each pair of valuesshould match. If they match, this indicates the probability of a valid result.

(Note however that this is a very small sampling of the values that make up the original and replicated spatial data and problems could arise inareas that are not included in this small sample.)

The match is very good in the example shown above. This example is from Case #12.

How to use the program named ImgMod31

Usage information for the program is shown in Figure 3 .

Figure 3. How to use the program named ImgMod31.


java ImgMod31 CaseNumber DisplayType CaseNumber ranges from 0 to 13 inclusive.DisplayType ranges from 0 to 2 inclusive.If a case number is not provided, Case 2 will be run by default.If a display type is not provided, display type 1 will be used by default.

A description of each case is provided by the comments in this program. In addition, each case will be discussed in detail in this module.

See ImgMod29 in the earlier module titled Plotting 3D Surfaces using Java for a definition of DisplayType .

You can terminate the program by clicking on the close button on any of the display frames produced by the program.

Program code for ImgMod31

The beginning of the class and the beginning of the main method is shown in Listing 5 .

Listing 5. Beginning of the class named ImgMod31.
class ImgMod31{public static void main(String[] args){int switchCase = 2;//default int displayType = 1;//defaultif(args.length == 1){ switchCase = Integer.parseInt(args[0]); }else if(args.length == 2){switchCase = Integer.parseInt(args[0]);displayType = Integer.parseInt(args[1]);}else{ System.out.println("Usage: java ImgMod31 "+ "CaseNumber DisplayType"); System.out.println("CaseNumber from 0 to 13 inclusive."); System.out.println("DisplayType from 0 to 2 inclusive."); System.out.println("Running case "+ switchCase + " by default."); System.out.println("Running DisplayType "+ displayType + " by default."); }//end else

The code in Listing 5 gets the input parameters and uses them to set the case and the display format. A default case and a default display format are used ifthis information is not provided by the user.

Create and save the test surface

Listing 6 calls the method named getSpatialData to create a test surface that matches the specified case. This surface will be used fortesting the transform process.

Questions & Answers

how do you translate this in Algebraic Expressions
linda Reply
why surface tension is zero at critical temperature
Need to simplify the expresin. 3/7 (x+y)-1/7 (x-1)=
Crystal Reply
. After 3 months on a diet, Lisa had lost 12% of her original weight. She lost 21 pounds. What was Lisa's original weight?
Chris Reply
what is biological synthesis of nanoparticles
Sanket Reply
what's the easiest and fastest way to the synthesize AgNP?
Damian Reply
types of nano material
abeetha Reply
I start with an easy one. carbon nanotubes woven into a long filament like a string
many many of nanotubes
what is the k.e before it land
what is the function of carbon nanotubes?
I'm interested in nanotube
what is nanomaterials​ and their applications of sensors.
Ramkumar Reply
what is nano technology
Sravani Reply
what is system testing?
preparation of nanomaterial
Victor Reply
Yes, Nanotechnology has a very fast field of applications and their is always something new to do with it...
Himanshu Reply
good afternoon madam
what is system testing
what is the application of nanotechnology?
In this morden time nanotechnology used in many field . 1-Electronics-manufacturad IC ,RAM,MRAM,solar panel etc 2-Helth and Medical-Nanomedicine,Drug Dilivery for cancer treatment etc 3- Atomobile -MEMS, Coating on car etc. and may other field for details you can check at Google
anybody can imagine what will be happen after 100 years from now in nano tech world
after 100 year this will be not nanotechnology maybe this technology name will be change . maybe aftet 100 year . we work on electron lable practically about its properties and behaviour by the different instruments
name doesn't matter , whatever it will be change... I'm taking about effect on circumstances of the microscopic world
how hard could it be to apply nanotechnology against viral infections such HIV or Ebola?
silver nanoparticles could handle the job?
not now but maybe in future only AgNP maybe any other nanomaterials
I'm interested in Nanotube
this technology will not going on for the long time , so I'm thinking about femtotechnology 10^-15
can nanotechnology change the direction of the face of the world
Prasenjit Reply
At high concentrations (>0.01 M), the relation between absorptivity coefficient and absorbance is no longer linear. This is due to the electrostatic interactions between the quantum dots in close proximity. If the concentration of the solution is high, another effect that is seen is the scattering of light from the large number of quantum dots. This assumption only works at low concentrations of the analyte. Presence of stray light.
Ali Reply
the Beer law works very well for dilute solutions but fails for very high concentrations. why?
bamidele Reply
how did you get the value of 2000N.What calculations are needed to arrive at it
Smarajit Reply
Privacy Information Security Software Version 1.1a
Got questions? Join the online conversation and get instant answers!
QuizOver.com Reply

Get the best Algebra and trigonometry course in your pocket!

Source:  OpenStax, Digital signal processing - dsp. OpenStax CNX. Jan 06, 2016 Download for free at https://legacy.cnx.org/content/col11642/1.38
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Digital signal processing - dsp' conversation and receive update notifications?