max( matrix, [], 3 )

2 ビュー (過去 30 日間)
fibisoglu
fibisoglu 2015 年 12 月 25 日
回答済み: Walter Roberson 2015 年 12 月 25 日
What does max( matrix, [], 3 ) mean? How does it work?

採用された回答

Walter Roberson
Walter Roberson 2015 年 12 月 25 日
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 件)

カテゴリ

Help Center および File ExchangeGet Started with MATLAB についてさらに検索

タグ

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by