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 (최근 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
답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!