Image Processing Lab

Purpose

Getting used to working with arrays. Creating algorithms for working with a 2D array for image processing. Hopefully it will be interesting.

Tools

Here is the Imp program I showed in class (2 days) that you will need to complete the assignment. Imp.java

What to do

  1. Function one is the code I gave you, it's an example of how to do what you need to do.

  2. Open any picture and output the following gradient. Black is 0, white is 255 for each RGB.

  3. Next algorithm will be opening a pic and turning it into a grayscale.


    Original picture = Grayscale =

  4. Next algorithm will take the original picture and isolate a color channel such as red. Turn everything else black.

    Like this:

  5. The last algorithm is a edge detection algorithm. Take the picture here:

    And only repaint the edges leaving the rest white like this (it is possible to get it better than my results).