Pseudo-color Image processing

In the exercise this week, we implemented pseudo-color image processing. The idea of this weeks exercise was to implement the detection of typhoon in the image like that of the weather maps we see  on TV.


Here it the notes I based on to implement it:
https://docs.google.com/document/d/1bjE-_Kw9Z00qNdNPGs7rWuwtA3YZyutS5gyxttPJdco/edit?usp=sharing

This is the original image at the top and the target(goal of the exercise) image is at the bottom. The images have a size of 173 by 245.

mapo_a


Under standard process of the pseudocode:

  1. To first turn it into a grayscale image.
  2. Pass through all the pixels.
  3. In each pixel you assign a color according to the intensity of the image or the pixel.
  4. And then do this for all pixel values.

The output expected would be like this:

output3

Looks like hell doesn’t it? I second that.

So what we, me and my partner, had to do was limit the amount of what was sliced in the image. We accomplished this initially by observing the RGB values present in the image and what values are the maximum for the land and water. From there only the values of the land and water will be switch with that of the color palette assigned. We also resized the image initially so we could get a better view of what we were doing.

o_c

The color palette was of size 500 by 50 so we still needed to adjust the value switched into the image.

There was a special case where the values that were highest in the clouds reached about 250 and above where the code we implemented didn’t take in those values properly an were assigned with a grey value. So we added another case of where the values greatest will turn into black to take in the other values.

So this is our final output.

o_b


I just added the initial code needed to slice only a selected part of the image for the pseudocode that was presented and both us did the implementation in class hours.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s