How to overcome this error? Array formation and parentheses-style indexing with objects of class 'matlab.io​.datastore​.ImageData​store' is not allowed. Use objects of class 'matlab.io​.datastore​.ImageData​store' only as scalars or use a cell array.

2 次查看(过去 30 天)
i want to run a loop so that multiple images get convolve with different filters.As i shown below
for imageNum = 1:numImages for filterNum = 1:numFilters
% convolution of image with feature matrix
convolvedImage = zeros(convDim, convDim);
% Obtain the feature (filterDim x filterDim) needed during the convolution
convolvedImage=conv2( images(numImages), W(numFilters));
end
end
but i am getting an error "Array formation and parentheses-style indexing with objects of class 'matlab.io.datastore.ImageDatastore' is not allowed. Use objects of class 'matlab.io.datastore.ImageDatastore' only as scalars or use a cell array.
Error in contesting (line 48) convolvedImage=conv2( images(numImages), W(numFilters));" plz provide solution of it ?

回答(0 个)

Community Treasure Hunt

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

Start Hunting!

Translated by