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

 採用された回答

Image Analyst
Image Analyst 2023 年 12 月 10 日
編集済み: Image Analyst 2023 年 12 月 10 日
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 件のコメント

Dyuman Joshi
Dyuman Joshi 2023 年 12 月 10 日
@Image Analyst, on the documentation page of getImageType() it says "Introduced before R2006a".
Image Analyst
Image Analyst 2023 年 12 月 10 日
@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.
Image Analyst
Image Analyst 2023 年 12 月 17 日
@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.
Dyuman Joshi
Dyuman Joshi 2023 年 12 月 19 日
@Image Analyst, I have accepted your answer on behalf of @mhmd.
Image Analyst
Image Analyst 2023 年 12 月 19 日
@Dyuman Joshi Thanks. 🙂

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

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