Store a labeled image to be called later by a callback

1 回表示 (過去 30 日間)
as hz
as hz 2014 年 8 月 25 日
コメント済み: Image Analyst 2014 年 8 月 27 日
Hi,
I have this Matlab line:
export_fig(handles.imageAxes, Name, '-jpg');
which I use to save the handles.imagesAxes
As I label things in the handles.imageAxes (using text, regionprops and bwboundaries) the use of setappdata(handles.imageAxes, 'yourVariable', I) does not help.
I decide to use the following lines:
tImage = print2array(handles.imageAxes);
setappdata(handles.imageAxes, 'traceImage', tImage);
Unfortunalty it deos not work as well.
Any idea how can I store a labeled image so it will be called later by another callback?
Thanks.
  2 件のコメント
Image Analyst
Image Analyst 2014 年 8 月 25 日
What kind of labeling are you talking about? Like "connected components labeling" like you'd do with bwlabel() or bwconncom(), or labels like you'd put into the overlay like with text(), plot(), or annotation()?
You do not use regionprops() or bwboundaries() to label anything - that's why I'm confused - though those functions could give you information that you could label the images with, with functions like text(), plot(), etc.
as hz
as hz 2014 年 8 月 25 日
Sorry, I was not clear. You are right the lableing information is based on the regionprops() or bwboundaries() but it is done by the text(), plot().

サインインしてコメントする。

採用された回答

Image Analyst
Image Analyst 2014 年 8 月 25 日
So what's wrong with export_fig() to save it to the disk file? Maybe try saving as a PNG file instead of JPG so you don't lose any information to bad JPG compression artifacts.
  8 件のコメント
as hz
as hz 2014 年 8 月 26 日
Thanks. I do work with two screens and if I work on the main screen it works.
Image Analyst
Image Analyst 2014 年 8 月 27 日
I only use one screen and don't know how to get it to work on two screens. You might have to call the Mathworks for that.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeImages についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by