MATLAB: Sequence of image processing using the same background

background imagesbatch of imagesimage analysisimage processingImage Processing Toolbox

Hi everybody I have a batch of images. For each image, I am using the same background image. How can I analyze all images using the same background image? When I read the one image, I will have to change the name of the background image as well, but I can not manage to change the background image name for each image that I need to analyze. I would also appreciate if you give me some info, suggestion regarding analyzing the batch of images in the same code?
Thanks!!!

Best Answer

Inside the loop, create the new background image filename and read it in with imread(). Then read in the test image and use both of them to do your analysis.