1.0

1.0 | 1 rating Rate this file 2 Downloads (last 30 days) File Size: 1.05 KB File ID: #23534

uigetfile - limit of files which can be loaded

by Mateusz Matysiak

 

03 Apr 2009

How to improve number of files which can be loaded with uigetfile command

| Watch this File

File Information
Description

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

MATLAB release MATLAB 7.1.0 (R14SP3)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (2)
22 Apr 2009 Thierry Dalon

This is no real contribution. More a support question!
See answer at:
http://www.mathworks.com/support/bugreports/details.html?rp=258791

27 Apr 2009 Mateusz Matysiak

I updated my software to 2008 version and it helped. Thanks

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
images loading and processing Mateusz Matysiak 03 Apr 2009 11:09:18

Contact us at files@mathworks.com