How to retrieve intensities of a ROI in App Designer

1 回表示 (過去 30 日間)
Bodil Crone Rasmussen
Bodil Crone Rasmussen 2019 年 6 月 18 日
回答済み: Image Analyst 2019 年 6 月 19 日
I have one picture (axContrast) in which i draw a cicular ROI and then plot af copy of that ROI onto another image (axFluor), here i would like to know the intensities inside the ROI, is that possible?
function ROIButtonPushed(app, event)
ROIFunction(app)
app.Roi = drawcircle(app.axContrast);
app.RoiCenter = app.Roi.Center;
app.RoiRadius = app.Roi.Radius;
hold(app.axContrast,'on');
app.RoiContrast = plot(app.axContrast,app.Roi.Vertices(:,1),app.Roi.Vertices(:,2),'LineStyle','--','LineWidth',2,'Color','r');
hold(app.axContrast,'off');
end
if ~isempty(app.Roi)
app.Roi = images.roi.Circle(app.axContrast,'Center',app.RoiCenter,'Radius',app.RoiRadius);
addlistener(app.Roi,'ROIMoved',@(src, eventdata)movedROI(src, eventdata, app));
hold(app.axFluor,'on');
app.RoiFluor = plot(app.axFluor,app.Roi.Vertices(:,1),app.Roi.Vertices(:,2),'LineStyle','--','LineWidth',2,'Color','r');
hold(app.axFluor,'off');
end
Furthermore, for some reason the listener seem to not be working properly, so if antbody knows a solution that i also grately appreciated

採用された回答

Image Analyst
Image Analyst 2019 年 6 月 19 日

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by