필터 지우기
필터 지우기

How can I apply an algo of phase retrieval to an image in a specific axes created in my GUI?

조회 수: 1 (최근 30일)
Hi, I have to apply an algo of phase retrieval to an image in a specific axes created in my GUI. I can load the image and aplly a Roi, after this step I wrote the following code in order to read the image with selectode ROI in axes and after to apply the algo. But I am not able to do this.
if true
fullname = fullfile(filepath, filename);% image read in axes1
handles.tifImage = imread(fullname);
imagesc(tifImage); colormap(gray);
end
  댓글 수: 2
Geoff Hayes
Geoff Hayes 2017년 1월 31일
nick - where are you calling your algorithm? Why do you read the image and save to the handles structure as
handles.tifImage = imread(fullname);
and then ignore handles on the following line (and so reference a variable that hasn't been defined)
imagesc(tifImage);
nick
nick 2017년 2월 1일
편집: nick 2017년 2월 1일
Hi Geoff, I call the algo in a section of my interface that is a popmenu in order to select the desired algo. I read the imahge as reported above because I defined handles in opening function
if true
% Choose default command line output for interface
handles.output = hObject;
%add our own data fields
handles.File_Name = ['.TIFF'];
handles.Path_Name = ['C:\Users....];
handles.tifImage = ['*.tif'];
end

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Images에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by