Manipulating an array of images
2 ビュー (過去 30 日間)
古いコメントを表示
I have an array of images stored in a 1 by x cell.
I tried to use a for loop to convert them all to BW
for i = 1.array.Count
NewArray{i} = im2bw(array(i))
end
However, I got the error
'Dot indeing is not supported for variables of this type.'
Is there a way around this?
0 件のコメント
回答 (1 件)
Kavya Vuriti
2020 年 8 月 4 日
編集済み: Kavya Vuriti
2020 年 8 月 4 日
Hi,
To access the contents of a cell in a cell array, curly braces({}) must be used. Try using following code:
for i = 1:numel(array)
NewArray{i} = im2bw(array{i});
end
Hope this helps.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Matrix Indexing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!