Why this is happening?
3 ビュー (過去 30 日間)
古いコメントを表示
[m n] = size(image);
I tried this command earlier and it worked well but now showing this:
"Indexing cannot yield multiple results."
0 件のコメント
採用された回答
Star Strider
2014 年 9 月 24 日
Did you name one of your variables ‘size’ later in your code?
3 件のコメント
Image Analyst
2014 年 9 月 24 日
It's also not a good idea to take the size of a built in function like image ()! Hopefully your image is not really named that!
And actually, even if it has a different name, that way of calling size() can be risky. Why? Read Steve's blog: http://blogs.mathworks.com/steve/2011/03/22/too-much-information-about-the-size-function/. Better, if you know it's not a multispectral image but is a regular indexed, RGB, or monochrome image is to do
[rows, columns, numberOfColorChannels] = size(yourImage);
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Data Type Identification についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!