How to translate this part of code to a pseudocode? thanks in advance
2 views (last 30 days)
Show older comments
Mennat Allah Elsenousy
on 20 Jun 2014
Commented: Image Analyst
on 21 Jun 2014
I=imread('10arb_old.png');
[count11,x]=imhist(I(:,:,1));
I=imread('10arb_med.png');
[count21,x]=imhist(I(:,:,1));
I=imread('10arb_new.png');
[count31,x]=imhist(I(:,:,1));
count1=count11+count21+count31;
count=[count1 count2 count3];
0 Comments
Accepted Answer
Joseph Cheng
on 20 Jun 2014
for channels red, green and blue
read/load image 10arb_old.png
calculate histogram counts for each channel
store histogram counts as array count1x where x is channel number.
read/loadimage 10arb_med.png
store histogram counts as array count2x where x is channel number.
read/load image 10arb_new.png
store histogram counts as array count3x where x is channel number.
set count to array of sum of each corresponding channel.
3 Comments
Image Analyst
on 21 Jun 2014
Correction : it's not doing it for red, green, and blue channels. It's histogramming only the red channel from the 3 different images.
More Answers (1)
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!