필터 지우기
필터 지우기

How can I use the image data stored in setappdata twice in my code?

조회 수: 2 (최근 30일)
I stored an image data using setappdata in this function. I would like to use this image data twice in 2 separate functions. How can this be done?

채택된 답변

Walter Roberson
Walter Roberson 2016년 1월 15일
Either use nested functions and shared variables, or getappdata() in both functions where you need the data.
  댓글 수: 3
Walter Roberson
Walter Roberson 2016년 1월 15일
getappdata() does not display data; you need to imshow() or image() or imagesc() the retrieved data.
And of course the retrieval has to be after the data has been stored; in your second case your flow of routines might not have stored it yet.
Gee Cheng Mun
Gee Cheng Mun 2016년 1월 16일
yes! I got it, thank you so much for all your help!:)

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

추가 답변 (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