Upload your homework document here

This exercise consists of creating an image array from raw data and manipulating that in various ways. The image you will be using looks like this:

The initial format of the data is simply 1 million lines of x,y,z values.



Steps:


  1. Download the 18.4 MB raw data file

  2. The 2D array size is 1124 lines x 1024 columns (the first 120 lines are garbage but keep them any way). Convert the 1D raw text file into the 2D array and Inclue a table of array values in the range x: 500-600 and y: 500-600 in your writeup

  3. Google on "Byte Array to Image" and use a tool to produce a gray scale image and include that in your write up -- Note that this step is necessary to be able to do the subsequent parts. If your having trouble with this, we have a built python tool that you can use later.

  4. Pave over the moon. Turn the central 300x300 pixels of the moon into a black rectangle. Include that image in your writeup

  5. Apply an equally weighted 5x5 smoothing filter to the raw data and include the smoothed image in your write up

  6. Apply a weighted 3x3 smoothing filter to the raw data and include the smoothed image in your write up

  7. Apply the Laplacian filter (as given in the powerpoint presentation) to the raw data and produce a new byte array from subtracting the filter from the raw image data.and include the array values from x=500:600 and y=500:600 for the subtracted image as well as the actual subtracted image in your writeup