필터 지우기
필터 지우기

Color Thresholder app not working in debug

조회 수: 1 (최근 30일)
Marco Marcon
Marco Marcon 2014년 10월 8일
댓글: Marco Marcon 2014년 10월 8일
I used the Color Thresholder app on workspace variables when a function was stopped in debug mode but the app was neither able to load images from workspace nor to write resulting masks in the workspace until I quit the debug mode (so I was unable to use processed images in the remaining function part). Is this a wanted behavior? Is there a trick to circumvent this problem?
Thanks for your replays. Marco

채택된 답변

Anand
Anand 2014년 10월 8일
Marco, When the Color Thresholder looks for workspace variables, it is referring to the base workspace. Hence it does not find variables in the stepped in context you are working in.
As a workaround, you could call the Color Thresholder from the command line using the following syntax:
>>colorThresholder(im)
where im is in your current workspace.
Note however that when you attempt to export the image, it will be placed in the base workspace.
  댓글 수: 1
Marco Marcon
Marco Marcon 2014년 10월 8일
thank you very much, I suspected it, anyway it is a pity that colorThresholder (but may be also other apps, I did not check) cannot work directly on local functions workspaces and it could be a desideratum for next versions.

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

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by