Help on reading/understanding these codes

Hi. can anyone explain to me the use of each function below? :) thank you:)
function [imgGray imgBinary] = Imageprocess(inputImg, T )
try
imgInfo = imfinfo(inputImg);
colorType = imgInfo.ColorType; %to know the image type
if strcmp (colorType,'truecolor') == 1 %colortype = 'truecolor'
imgGray = rgb2gray(imread(inputImg));
imgGray = imadjust(imgGray);
imgGray = adapthisteq(imgGray);
figure,imshow(imgGray);
thresh = graythresh(imgGray);
imgBinary = im2bw(imgGray, T);
figure(2),imshow(imgBinary);
end
catch

댓글 수: 2

Walter Roberson
Walter Roberson 2012년 9월 27일
Which if the routines could you not find documented in the MATLAB help?
Walter Roberson
Walter Roberson 2012년 9월 27일
Please read the guide to tags and retag this question; see http://www.mathworks.co.uk/matlabcentral/answers/43073-a-guide-to-tags

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

태그

질문:

2012년 9월 27일

Community Treasure Hunt

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

Start Hunting!

Translated by