All in one Image Processing File

2 views (last 30 days)
I need to classify LISS 3 imagery in matlab environment to delineate the mangroves.
I have seen your All in one Image Processing files. I have copied all the files and placed in my local drive. when i am running the mainprogram.m i got some error as follows
??? Error using ==> load Unable to read file mainprogram.fig: No such file or directory.
Error in ==> hgload>localLoadFile at 177 AllVars = load(filename, '-mat');
Error in ==> hgload at 59 [FigVersion, FigData, VerNum] = localLoadFile(filename);
Error in ==> openfig at 72 [fig, savedvisible] = hgload(filename, struct('Visible','off'));
Error in ==> gui_mainfcn>local_openfig at 286 gui_hFigure = openfig(name, singleton, visible);
Error in ==> gui_mainfcn at 159 gui_hFigure = local_openfig(gui_State.gui_Name, gui_SingletonOpt, gui_Visible);
Error in ==> mainprogram at 43 gui_mainfcn(gui_State, varargin{:});
Kindly guide me in this regard. i have to complete my project. Please guide me in a right way sir..... it would be grateful if u point out the mistake i made...
Warm Regards Shoba P
  7 Comments
Walter Roberson
Walter Roberson on 5 Sep 2013
openfig() is called automatically when you run a GUIDE gui. openfig() calls various levels, eventually getting down to loading the .fig file. .fig files are .mat format.
Shoba
Shoba on 5 Sep 2013
It starts working after changing the band no from 7 to 4 in mainprogram. But while doing supervised classification by maximum likelihood method i got empty matrix for mean function as follows k=str2double(inputdlg({'Band1(Training):'},'Select',1,{'4'})); if ~isempty(k) img1=imp{k(1),1}'; img2=imp{2,1}'; img3=imp{3,1}'; img4=imp{1,1}'; % img5=imp{5,1}'; % img7=imp{7,1}'; axes(handles.importaxes); imshow(uint8(img1')) siz=size(img1); [x_c1 y_c1]=ginput(2); [x_c2 y_c2]=ginput(2); [x_c3 y_c3]=ginput(2); xc1=fix(y_c1);yc1=fix(x_c1); xc2=fix(y_c2);yc2=fix(x_c2); xc3=fix(y_c3);yc3=fix(x_c3); wbn = waitbar(0,'Please Wait...','Name','Calculating'); waitbar(.75,wbn,sprintf('%3.0f %%',25)); %%%%% Class1 Statistics %%%%%%%%%\
c1_1=img1(xc1(1):xc1(2),yc1(1):yc1(2));
c1_1_mean=meanfnc(c1_1);
Error Empty matrix: 1-by-0
so i couldnt get the classified output. kindly help me to solve this issue. Thanks in advance Shoba

Sign in to comment.

Accepted Answer

Image Analyst
Image Analyst on 5 Sep 2013
Probably. Give that a try.

More Answers (0)

Categories

Find more on Develop Apps Using App Designer in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!