how to normalize an image

4 ビュー (過去 30 日間)
Matlabques
Matlabques 2013 年 11 月 14 日
コメント済み: Tilkesh 2022 年 3 月 15 日
I want to normalize an image by dividing the value of each pixel by the square root of the sum of all pixel squares for each image. What will be the code

採用された回答

Image Analyst
Image Analyst 2013 年 11 月 14 日
It's practically just like how it sounds:
denominator = sqrt(sum(yourImage(:).^2));
outputImage = double(yourImage) / denominator;
I trust you were honest when you didn't tag this as homework, because I'm not supposed to just give you the answer if it was your homework. Mark the answer as Accepted once you verify that the code works.
  1 件のコメント
Tilkesh
Tilkesh 2022 年 3 月 15 日
Thanks

サインインしてコメントする。

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by