How to find maximum value among R,G,B channels in the same indices?
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
lakshmi prabha
am 3 Aug. 2017
Kommentiert: aswathy pavithran
am 25 Feb. 2018
I want to find the maximum of R,G,B in the same indices But it shows some error with max function.Please help me out
1 Kommentar
Akzeptierte Antwort
ES
am 3 Aug. 2017
A = imread('thank-you.jpg');
[iRows, iColumns, ~] = size(A);
for iLoop1=1:iRows
for iLoop2=1:iColumns
B(iLoop1, iLoop2) = max(A(iLoop1, iLoop2, :));
end
end
Weitere Antworten (1)
ES
am 3 Aug. 2017
I dont know any direct way, but you can run a loop on the length and breadth of the image matrix to find the max of R, G, B at each pixel.
2 Kommentare
Siehe auch
Kategorien
Mehr zu Image Segmentation and Analysis finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!