MATLAB: Is there any way to use imfreehand or drawfreehand on UIAxes on appdesigner

drawfreehandimfreehanduiaxes

Hello
It seems that on the appdesigner neither the imfreehand nor drawfreehand does not work for the UIAXES. Is there any way to use them or any equivalent?
Thank you for your time and consideration.

Best Answer

Hi,
At present, the drawfreehand and imfreehand functions accept only standard axes object as an argument, not UIAxes object that is used in App Designer.
You can draw ROIs in apps created using App Designer. However, UIAxes cannot be given as a parent. You must use standard Axes object in your app.