Question: Module 7: Prog 3 Load image UAH_aerial.jpg. Pixel components are Red: R-A(:,:,1), Green: G=A(:,:,2), and Blue: BA(:,:,3). Create new image A1 by copying image A,

Module 7: Prog 3 Load image UAH_aerial.jpg. Pixel components are Red: R-A(:,:,1), Green: G=A(:,:,2), and Blue: BA(:,:,3). Create new image A1 by copying image A, but swap Red and Blue pixel values if the Red pixel component is greater than the Blue pixel component Note: don't forget to save the value to temporary variable before overwriting (watch video) a) Print a formatted statement (fprintf) with the number of swaps made. b) Plot both images (original and new) side by side in the same new figure
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
