Converting images into string and hence using imread and ROI specification.
古いコメントを表示
Hi,
I can open my image using imtool, but in order to specify a region of interest(ROI), the functions such as imroi, imread require the image to be stored as strings.
I converted my image into a string by typing
S= char(Me) %Me is the name of the image on the workspace
By doing this, it diplayed a huge array, which took around 30 secs..
However, after all that, when I put >> imread ('S'), it says : Error using imread (line 372) File "S" does not exist.
What did I do wrong?
回答 (2 件)
Jan
2011 年 10 月 17 日
0 投票
imroi is an abstract class, therefore you cannot create an instance. In consequence you cannot call it even not with a string. If Me is the name of the image, it need not be converted to a string by the char command - it is a string already.
Please copy the complete commands you have used and explain, what you want to achieve. Note, that images do not have to be converted to strings in MATLAB.
Image Analyst
2011 年 10 月 17 日
0 投票
You need to supply imread with a filename (which is a string), NOT a numerical image array converted into a string.
9 件のコメント
Yagnaseni Roy
2011 年 10 月 17 日
Yagnaseni Roy
2011 年 10 月 17 日
Yagnaseni Roy
2011 年 10 月 17 日
Yagnaseni Roy
2011 年 10 月 17 日
Yagnaseni Roy
2011 年 10 月 17 日
Yagnaseni Roy
2011 年 10 月 17 日
Yagnaseni Roy
2011 年 10 月 17 日
Yagnaseni Roy
2011 年 10 月 17 日
Yagnaseni Roy
2011 年 10 月 17 日
カテゴリ
ヘルプ センター および File Exchange で Convert Image Type についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!