3. ImageRecolor.m
Read in the image stinson_remick.jpg as a full color image. Create a subplot with 2 rows and 1
column and show the original image in the top position. Next, convert the red, green, and blue
layers of the image according to the following rules then display that image in the second
subplot position. An example of the final subplot outcome is shown below.
Red Pixel Value
Green Pixel Value
Blue Pixel Value
If the value < 75, change the
If the value < 150, change the
If the value < 100, change the value to 0
value to 100
value to 0
If the Value < 135, change
For all other values, change
the value to 100
the pixel value to 255
If the value < 150, change the For all other values, change
value to 150
the pixel value to 0
For all other values, change
the pixel value to 200
1