Open an arbitrary color image using imread. Copy a 128 x 128 area into a double type array of size 128 x 128 x 3. Switch the red and blue bands. Then, switch the left and right halfs of the image (Left half will be on the right and right half will be on the left). Display the new image using image or imagesc.
Plot an arbitrary row of the new image. Draw the (new) red, green and blue bands using the same colors (red, green, blue) in the same graph. Save it as rows.png.
In the new image, replace the pixels, whose red is larger than their green or blue channels, with white pixels:
o Using for loops
o Using MATLAB style computing
Çok acil yardıma ihtiyacım var.
Plot an arbitrary row of the new image. Draw the (new) red, green and blue bands using the same colors (red, green, blue) in the same graph. Save it as rows.png.
In the new image, replace the pixels, whose red is larger than their green or blue channels, with white pixels:
o Using for loops
o Using MATLAB style computing
Çok acil yardıma ihtiyacım var.
1