How can i get a magnitue of an image?
2 ビュー (過去 30 日間)
古いコメントを表示
I have got a grayscale image and i want to find its magnitude. As in that image should return a single scalar number.
0 件のコメント
回答 (1 件)
Walter Roberson
2011 年 5 月 23 日
What do you mean by the magnitude of a grayscale image? Do you want the average pixel intensity, or do you want the total pixel intensity, or something else? And are you trying to do this in Simulink or in MATLAB?
Total intensity:
sum(YourImage(:))
Average intensity:
mean(YourImage(:))
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Computer Vision with Simulink についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!