Hello, i need some help. im using imwrite to get the process image using ip cam and rename it base on the number of looping (example if first loop image name will be im0.jpg). that have been success. but the problem happen when i want to read back the image bafore this using number of their loop.
like when in the first loop, it will generate im0.jpg
then i want to read back the image im0.jpg in the directory.
This process happen continuously until im1.jpg, im2.jpg, im3.jpg.
while (i<==50)
imwrite(data,sprintf('im%d.jpg',i))
b = imread(['folder_path\im''num2str(i)''.jpg']);
2 Comments
Direct link to this comment
https://es.mathworks.com/matlabcentral/answers/714513-read-image-using-imread-based-on-the-number-of-loop#comment_1258128
Direct link to this comment
https://es.mathworks.com/matlabcentral/answers/714513-read-image-using-imread-based-on-the-number-of-loop#comment_1258128
Direct link to this comment
https://es.mathworks.com/matlabcentral/answers/714513-read-image-using-imread-based-on-the-number-of-loop#comment_1258153
Direct link to this comment
https://es.mathworks.com/matlabcentral/answers/714513-read-image-using-imread-based-on-the-number-of-loop#comment_1258153
Sign in to comment.