How to retrieve intensities of a ROI in App Designer
1 view (last 30 days)
Show older comments
Bodil Crone Rasmussen
on 18 Jun 2019
Answered: Image Analyst
on 19 Jun 2019
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
0 Comments
Accepted Answer
More Answers (0)
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!