フィルターのクリア

how to write algorithm for the given normalization matlab code?

1 回表示 (過去 30 日間)
somasekar jalari
somasekar jalari 2015 年 6 月 19 日
回答済み: Walter Roberson 2015 年 6 月 19 日
Hai, here i have given a matlab code for normalization of an image for further processing. explain briefly how to write algorithm for document purpose?
input=imread('Image1.jpg');
dim=size(input,3);
input=im2uint8(input);
output=zeros(size(input));
if (dim==1 || dim==3)
for j=1:dim;
scalVal=sum(sum(input(:,:,j)))/numel(input(:,:,j));
output(:,:,j)=input(:,:,j)*(230/scalVal);
end
output=uint8(output);
end
figure,imshow(output);
  1 件のコメント
Image Analyst
Image Analyst 2015 年 6 月 19 日
I don't know what your question means. Explain how to write an algorithm? For document purposes? Are you asking how to write a scientific paper and submit it to a journal or professional society? Are you asking how to learn how to do computer programming? Or how to learn MATLAB? See this link http://www.mathworks.com/matlabcentral/answers/6200-tutorial-how-to-ask-a-question-on-answers-and-get-a-fast-answer

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

採用された回答

Walter Roberson
Walter Roberson 2015 年 6 月 19 日
scalVal=sum(sum(input(:,:,j)))/numel(input(:,:,j));
is the mean over the plane, so each plane is multiplied by 230 / mean of plane

その他の回答 (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