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.

请先登录,再进行评论。

更多回答(0 个)

Community Treasure Hunt

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

Start Hunting!

Translated by