MATLAB: Images Call within For Loop

digital image processingfor loopfunction callimage processing

Can you help me out:
Images call within for loop k…k values increasing. Already For loop is running original images call, both folders having a same number of images.This approach working in the initial part of code to call original images.

Best Answer

The error message is clear: you try to access the k.th element of manual_images, but this array has less than k elements. This can have many reasons, but they cannot be found in the code snippet you have posted.
Prefer fullfile instead of "[manual_directory, '/*.gif']". I assume the code is working inspite of the wrong file separator, but fullfile would adjust this.
Related Question