How to retrieve intensities of a ROI in App Designer

1 Ansicht (letzte 30 Tage)
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

Akzeptierte Antwort

Image Analyst
Image Analyst am 19 Jun. 2019

Weitere Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by