Error in calculating max(max(corrImageR)) during batch image processing after completing 1st iteration (error on 2nd image to be processed)
Show older comments
I'm batch processing images. The algorithm involved the included line of code. The first image processes successfully, but on the 2nd image the following error is given. Note, even when not processing in batches, if an image is processed, and then the code is ran again without clearing variables, clear all, the same error is given.
Subscript indices must either be real positive integers or logicals.
Error in batchExudateAnalysisDR (line 30) [maxIdxR,maxIdyR] = find(corrImageR == max(max(corrImageR)));
Accepted Answer
More Answers (0)
Categories
Find more on Image Processing Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!