Checking the array visually


As we are processing an image array, you might like to see what it looks like before and after processing by displaying it as an image. We're going to build this functionality into our application later in the course, but for now if you want to look at the image you can see it using this Display.java class. You use it like this:

new Display("Some title for the window", a2DarrayOfDoubles);

You don't need to give it a variable label, but can if you like:

Display a = new Display("Some title for the window", a2DarrayOfDoubles);

You don't need to use this class; it is just so you can convince yourself your arrays are being processed ok. To be honest, with most of the filtering techniques the starting image won't change a lot, but you will at least be able to see the array isn't being completely destroyed, reversed, scrambled, etc.