<< Chapter < Page
  Digital signal processing - dsp     Page 11 / 24
Chapter >> Page >
Figure 3 . Program output in self-test mode.
Missing Figure.
(Remember, all six output images are displayed on top of one another in the upper-left corner of the screen. You must manually move them tosee all six images.)

A 3D parabola

The main method creates and displays a surface consisting of a 3D parabola. You can think of the surface as representing a one-quartersection of a bowl, or perhaps a satellite dish with the center of the dish in the upper left corner of the image. The top three images in Figure 3 are the images produced from the raw surface. The bottom three images are the imagesproduced by the log of the surface, (which is no longer a 3D parabola) .

The calibration scale

The calibration scale is displayed immediately below the image of each surface.

The images are stacked

When the program is executed, the six surfaces are stacked in the upper left corner of the screen. (You must physically move the images on the top to see the images on the bottom.) The stacking order of the surfaces from bottomto top is based on the values of the display parameter in the order 0, 1, 2, 3, 4, 5.

With and without axes

Some of the surfaces show axes and some do not. This is controlled by the value of the constructor parameter named axis . A true value for axis causes the axes to be drawn.

A window listener

The constructor defines an anonymous inner class WindowListener on the close button on the Frame (the X in the upper right hand corner of the Frame ) . Clicking the close button will terminate the program that uses an object of this class.


The program was tested using J2SE 8.0 and Win 7. Because the program uses Java features that were introduced in J2SE 5.0, it may not compile successfullywith earlier versions of Java.

The program named ImgMod29

The program named ImgMod29 is rather long, so as usual I will break it down and discuss it in fragments. You can view a complete listing of theprogram in Listing 29 near the end of the module.

The main method

The program consists of a top-level class named ImgMod29 , plus several inner classes. The class includes a main method that is use for self-testing the class. To put things in context, I will beginmy discussion with the main method.

The main method begins in Listing 1 .

Listing 1. Beginning of the main method.
public static void main(String[] args){int numberRows = 59; int numberCols = 59;double[][]data = new double[numberRows][numberCols];int blockSize = 2;

Local variables

The array for the surface elevation data

Listing 1 declares a 2D array of type double to contain the 3D surface elevation data values. This is a square array consisting of 59elevation values on each side. (However, there is no requirement for the surface to be square.)

The blocksize parameter

Listing 1 also defines a value of 2 for the blockSize parameter. This variable will be passed to the constructor for the ImgMod29 class, causing each elevation value to be plotted as a small square of four pixels, two pixels on each side of the square.

(The overall size of the display can be controlled by controlling the size of the array containing the surface elevation values and alsocontrolling the value of blockSize .)

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?