Manipulating an array of images

조회 수: 2 (최근 30일)
Pranaya Kansakar
Pranaya Kansakar 2020년 5월 13일
편집: Kavya Vuriti 2020년 8월 4일
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?

답변 (1개)

Kavya Vuriti
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.

카테고리

Help CenterFile Exchange에서 Matrices and Arrays에 대해 자세히 알아보기

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by