folder = 'C:\Echo Images\Stelios\FDB';file_temp = sprintf('%s\\*.bmp', folder);filearray = dir(file_temp);s = max(size(filearray));for i=1: 1: s [p, f] = fileparts(file_temp(i).name); imgname=strcat(folder,'\\',filearray(i).name); I = imread(imgname); dicomwrite(I, [imgname '.dcm']);endI get the error at [p, f] = fileparts(file_temp(i).name); line. PLease help!!
MATLAB: Struct contents reference from a non-struct array object.
imagesstruct
Related Question
- How to solve backslash issue in this case
- Creating new Figures from a batch of processed images and writing the new figures to a new folder.
- How to conver folder (images) from GRB to Gary and save them in Output folder with the same original names
- I want to write 25 sample image after treatment and save in 10 folders
- How to save a file with the same name as the foldername
- How to select files in a directory
- How to make a file name with combination of two strings
Best Answer