How do I read image datasets of 400 images with 40 subfolder containing 10 image per folder into Matlab? Can anyone help me with the lines of code for reference ??? I don't seem to get it right.
CODE SNIPPET :
Assuming : Root is the name of the folder within which you have 40 subfolders each with say 10 images.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Path=' Root';
FolderR=dir(Path);
[Sz,xx]=size(FolderR);
for i=3:Sz %%% 1 and 2 are current and parent directory
SubN=FolderR(i).name;
SubP=dir(SubN);
[Sz2,yy]=size(SubP);
for j=3:Sz2
FileN=SubP(j).name; %%%Or to open
Path2=strcat(SubP(j).folder,'\',FileN);
Img=imread(Path2);
%% You need save or process here else it overlaps%%%%%
end
Thanks, Aparna. I appreciate
Thanks, Aparna
My research work is centered around Face recognition in Unconstrained environment where image captured by CCTV are Low resolution with Occlusions. It's still an open field for research and I am...
01 February 2018 963 0 View
I have selected brain tumor images ...but now found that already lots of research done n this topic.
03 March 2021 5,774 3 View
i am try to classify the x-ray images. During classification , can i block unwanted images (except x-ray image).
03 March 2021 7,100 1 View
Need to image mesoporous silica nanoparticles using the TEM. Also, need high resolution TEM images to see the mesoporous structure. Kindly suggest what kind of grids to use. Thanks, Shatadru
02 March 2021 1,787 2 View
Dear Colleagues, After running Western blot on PVDF membrane and detection using ECL, I would like to stain my PVDF with colloidal gold to be able to allign the ECL image with total proteins on...
02 March 2021 7,829 3 View
I would like to research on MR images (0.5T and 3T). Can you please suggest some websites that I can download dataset including both 0.5T and 3T MR images? Thank you.
02 March 2021 7,735 3 View
Dear Researchers I am trying to perform a PIL simulation using STM32F4 Discovery board and comunication serial USB TO TTL. During simulation I receive the following timeout error: An error...
01 March 2021 2,327 1 View
Hello, I have classified 10 S3 OLCI images from the same area (althouth not the same size and/or quadrant) and I would like to do a final image using the mode of the pixel of these 10 images. I...
01 March 2021 9,874 3 View
The following code (see 1st 2 images attached) is used to produce PID controller values that are designed to control the system (G). The code finds the PID controller values (noted as k) by using...
28 February 2021 6,560 14 View
I have input and output data set for "ANFIS modeling in MATLAB", and I am getting some negative predicted values of output in testing. However, the predicted values of output in training are...
28 February 2021 3,459 3 View
Hi everyone, I am using Fiji to determine the percentage of the image covered by leaves, branches, or trunk, but i've encountered some difficulty when the sun hits parts of my image like the one...
27 February 2021 1,194 3 View