Volume visualization using Volshow() in appdesigner UIAxes, is it possible?

7 次查看(过去 30 天)
Is it possible to interactively display a volume using the R2018b volume visualizer volshow() function within an appdesigner's UIAxes component?
  1 个评论
Quentin Maronnier
Quentin Maronnier 2020-2-11
Same question.
Without appdesigner, its possible to create an UIPanel and then visualize with the command volshow(V) but when I want to perform the same operation on app designer it causes an error.
"Error using hg2gcv
Functionality not supported with figures created with the uifigure function. For more information, see
Graphics Support in App Designer.
Error in images.internal.volshow.View/createVolumeCanvasViewArea
Error in images.internal.volshow.View/createView
Error in volshow/set.Parent
Error in volshow/parseInputs
Error in volshow
Error in lesionInsert/ADDButtonPushed (line 405)
volshow((squeeze(lesionAlone)),'Parent',a)
Error using matlab.ui.control.internal.controller.ComponentController/executeUserCallback (line 335)
Error while evaluating Button PrivateButtonPushedFcn."

请先登录,再进行评论。

回答(1 个)

Cris LaPierre
Cris LaPierre 2020-11-10
编辑:Cris LaPierre 2020-11-10
The documentation states that 'parent' should be a figure or uipanel, not an axes (Tips section).
"The volshow function creates a uipanel object in the specified parent figure."
That being said, it does not appear to work in a uipanel placed on a uifigure, which is the case with app designer. See more in my post here.

Community Treasure Hunt

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

Start Hunting!

Translated by