drawfreehand in App Designer ?

9 visualizaciones (últimos 30 días)
moon215
moon215 el 15 de Mayo de 2019
Comentada: Narendra Narisetti el 30 de Mzo. de 2021
Hi,
I want to add a freehand draw in my app, with :
d = drawfreehand(app.UIAxes_1,'color','green');
But i have this error:
Error using images.roi.internal.ROI/parseInputs
ROI parent must be a valid Axes object.
Error in images.roi.Freehand
So how can i use drawfreehand in App Designer ?
Thanks a lot in advance.

Respuesta aceptada

Saumya Goel
Saumya Goel el 23 de Mayo de 2019
At this time, the "drawfreehand" function only takes an 'axes' objects as an argument, not 'UIAxes', the type of axes that are used in App Designer. More information about the valid arguments for 'drawfreehand' can be found on this documentation page:
  2 comentarios
Stanley Strawbridge
Stanley Strawbridge el 8 de Ag. de 2019
So is there a way to draw a roi on an image in the UIAxes in App designer?
Sean de Wolski
Sean de Wolski el 8 de Ag. de 2019
See my answer below.

Iniciar sesión para comentar.

Más respuestas (1)

Sean de Wolski
Sean de Wolski el 8 de Ag. de 2019
It's kind of silently supported but you can programmatically (>=R2018b) add an axes to a uifigure and then draw* will work.
ax = axes('Parent', uifigure)
drawfreehand(ax)
  5 comentarios
Andrew Keefe
Andrew Keefe el 12 de Feb. de 2021
Is this with the latest version? I'm running R2020A.
Narendra Narisetti
Narendra Narisetti el 30 de Mzo. de 2021
Hi, I am also looking for sam solution. When I use uiaxes matlab taing long time and not responding. @Sean de Wolski, could you provide a solution how to develop free hand on ap designer?

Iniciar sesión para comentar.

Categorías

Más información sobre Develop uifigure-Based Apps en Help Center y File Exchange.

Productos


Versión

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by