<< 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.

Usage:

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 get the 2/50
Abba Reply
number of sport play by 50 student construct discrete data
Aminu Reply
width of the frangebany leaves on how to write a introduction
Theresa Reply
Solve the mean of variance
Veronica Reply
Step 1: Find the mean. To find the mean, add up all the scores, then divide them by the number of scores. ... Step 2: Find each score's deviation from the mean. ... Step 3: Square each deviation from the mean. ... Step 4: Find the sum of squares. ... Step 5: Divide the sum of squares by n – 1 or N.
kenneth
what is error
Yakuba Reply
Is mistake done to something
Vutshila
Hy
anas
hy
What is the life teble
anas
hy
Jibrin
statistics is the analyzing of data
Tajudeen Reply
what is statics?
Zelalem Reply
how do you calculate mean
Gloria Reply
diveving the sum if all values
Shaynaynay
let A1,A2 and A3 events be independent,show that (A1)^c, (A2)^c and (A3)^c are independent?
Fisaye Reply
what is statistics
Akhisani Reply
data collected all over the world
Shaynaynay
construct a less than and more than table
Imad Reply
The sample of 16 students is taken. The average age in the sample was 22 years with astandard deviation of 6 years. Construct a 95% confidence interval for the age of the population.
Aschalew Reply
Bhartdarshan' is an internet-based travel agency wherein customer can see videos of the cities they plant to visit. The number of hits daily is a normally distributed random variable with a mean of 10,000 and a standard deviation of 2,400 a. what is the probability of getting more than 12,000 hits? b. what is the probability of getting fewer than 9,000 hits?
Akshay Reply
Bhartdarshan'is an internet-based travel agency wherein customer can see videos of the cities they plan to visit. The number of hits daily is a normally distributed random variable with a mean of 10,000 and a standard deviation of 2,400. a. What is the probability of getting more than 12,000 hits
Akshay
1
Bright
Sorry i want to learn more about this question
Bright
Someone help
Bright
a= 0.20233 b=0.3384
Sufiyan
a
Shaynaynay
How do I interpret level of significance?
Mohd Reply
It depends on your business problem or in Machine Learning you could use ROC- AUC cruve to decide the threshold value
Shivam
how skewness and kurtosis are used in statistics
Owen Reply
yes what is it
Taneeya
Got questions? Join the online conversation and get instant answers!
Jobilize.com Reply

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




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?

Ask