max( matrix, [], 3 )
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
fibisoglu
am 25 Dez. 2015
Beantwortet: Walter Roberson
am 25 Dez. 2015
What does max( matrix, [], 3 ) mean? How does it work?
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 25 Dez. 2015
max(matrix,[],3) means that you want to take the maximum along the third dimension. The result will have the same size as matrix except that the third dimension will become length 1.
For example if you had an RGB image then it would be 3 dimensional, with the third dimension reflecting the Red, Green, and Blue components. max(YourImage,[],3) would then be a pixel-by-pixel array of which color component was maximum for that pixel (a calculation useful as part of correcting for illumination.)
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Get Started with MATLAB finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!