How to overcome this 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.
3 views (last 30 days)
Show older comments
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 Comments
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!