when i tab getimagetype function it appears "Unrecognized function or variable 'getimagetype'."

 채택된 답변

The I and T should be capitalized getImageType. MATLAB is case sensitive.
help getImageType
--- help for imagemodel/getImageType --- getImageType Image type associated with the imagemodel IMGMODEL. IMAGETYPE = getImageType(IMGMODEL) returns the image type associated with the imagemodel IMGMODEL. IMAGETYPE can be 'intensity', 'truecolor', 'binary', or 'indexed'. IMGMODEL is expected to contain one imagemodel object. Example ------- [X,map] = imread('trees.tif'); h = imshow(X,map); im = imagemodel(h); imageType = getImageType(im) Documentation for imagemodel/getImageType doc imagemodel/getImageType

댓글 수: 5

@Image Analyst, on the documentation page of getImageType() it says "Introduced before R2006a".
@Dyuman Joshi you're right. I was looking at the relase number at the top of the help (which is of course mine, ha ha). I'll correct it.
@mhmd are you still there?
If this Answer solves your original question, then could you please click the "Accept this answer" link to award the answerer with "reputation points" for their efforts in helping you? They'd appreciate it. Thanks in advance. 🙂 Note: you can only accept one answer (so pick the best one) but you can click the "Vote" icon for as many Answers as you want. Voting for an answer will also award reputation points.
@Image Analyst, I have accepted your answer on behalf of @mhmd.

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

추가 답변 (0개)

질문:

2023년 12월 10일

댓글:

2023년 12월 19일

Community Treasure Hunt

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

Start Hunting!

Translated by