I used imresize to resize about 20images. I want the resized images to be stored in a new folder I created. Here is the code I used:
imwrite(myoutput, 'resized.png');
Now my problem us that, I only get one image written to the working directory, named 'resized.PNG'. I want all the 20 resized images to be saved.
I also want them saved in a new folder defined by mkdir(resizedFolder)... Which I don't know how to do.
Here is an excerpt from my codes:
dirD=dir('*.jpeg');
for k=1:length(dirD); %k=20 %technically
%i ran a long code to find a %rectangular boundary, and cropped.
CropIm=imcrop(I, thisBlobsBoundingBox);
resizedIm=imresize(CropIm, 0.1);
end
Now, I want resizedIm
to be stored in resizedFolder
as individual images which should give me 20 images.