uigetfile - limit of files which can be loaded

How to improve number of files which can be loaded with uigetfile command
532 Downloads
Updated 3 Apr 2009

No License

This script I use to improve the contrast of images by using imadjust command. The only problem is limited number of files (about 40 - 50) which can be processed at once.
The code is:

function autocontrast

warning off
clc;
clear all;

%--------------------------------------------------------------------------
[FileName,PathName] = uigetfile('*.tiff','Select any image', 'MultiSelect', 'on');

if PathName~=0;
n= length (FileName)

for a=1 : 1: n
input_image=imread([PathName,FileName{a}]);

I_imadjust = imadjust(input_image);
%figure, imshow(input_image_imadjust);
%----------------------------------------------------------------------
mkdir(PathName,'imadjust')
FN1= fullfile(PathName,'imadjust',FileName{a});
imwrite(I_imadjust,FN1);

end
end

Cite As

Mateusz Matysiak (2025). uigetfile - limit of files which can be loaded (https://in.mathworks.com/matlabcentral/fileexchange/23534-uigetfile-limit-of-files-which-can-be-loaded), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R14SP3
Compatible with any release
Platform Compatibility
Windows macOS Linux
Acknowledgements

Inspired: simpleFileSelect(Filtr,Titl)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0