필터 지우기
필터 지우기

Plot over image in AppDesigner

조회 수: 4 (최근 30일)
Krzysztof Korozej
Krzysztof Korozej 2019년 1월 15일
답변: Abhinav 2023년 7월 5일
Hello,
Im creating my app in AppDesigner and im wonder how to plot something over image. Below i attached my code, it would be nice if someone help me! Thanks!
function LocalizeButtonPushed(app, event)
app.Tumour = bwareafilt(app.imgEroded, 1, 'Largest');
app.UIAxes_4.reset;
I = imshow(app.imgGray, 'Parent', app.UIAxes_4, 'XData', [1 app.UIAxes_4.Position(3)], 'YData', [1 app.UIAxes_4.Position(4)]);
hold(app.UIAxes_4, 'on');
app.UIAxes_4.XLim = [0 I.XData(2)];
app.UIAxes_4.YLim = [0 I.YData(2)];
%I WOULD LIKE TO OVERLAY THIS BUT SEEMS NOT WORK
[B,L] = bwboundaries(app.Tumour,'noholes');
for k = 1:length(B)
boundary = B{k};
plot(app.UIAxes_4, boundary(:,2), boundary(:,1), 'r', 'LineWidth', 1.1);
end
end

답변 (1개)

Abhinav
Abhinav 2023년 7월 5일
Link to the same question answered previously by Mathworks Support Team

카테고리

Help CenterFile Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by