blockPlot - A block-like 3D drawer for binary masks
This function creates a 3D stacked block drawing of a binary mask by drawing square patch objects at each face of the mask which borders empty space. It is similar to isosurface, and useful for visualizing a 3D binary mask in its entirety (with no interpolation as in isosurface).
function xface=blockPlot(mask, offset, varargin)
inputs:
mask - a 3D logical array or a 3D binary mask. The function will draw
boxes around all points (1's) in the mask which border empty
space (0's).
Interior points which do not border any empty space will not be
drawn.
If no input is given, draws an example (wavy cone)
offset - 3-component vector added to the coordinate of all patches drawn
(default=[0 0 0])
Useful if the user wants to pass only part of the figure to be
drawn, but have the coordinates correct to match another plot
varagin - pair of plot style properties to pass to the patch command.
ex: (...,'color','r'), (...,'facealpha',.5),
(...,'edgecolor','none'), etc
outputs:
xface - returns patch object that was drawn
examples:
p=blockPlot();
p=blockPlot(ones([10 10 10]));
p=blockPlot(ones([10 10 10]), [0 0 0], 'facecolor','r', 'facealpha',.5)
Citar como
Tripp (2024). blockPlot - A block-like 3D drawer for binary masks (https://www.mathworks.com/matlabcentral/fileexchange/31988-blockplot-a-block-like-3d-drawer-for-binary-masks), MATLAB Central File Exchange. Recuperado .
Compatibilidad con la versión de MATLAB
Compatibilidad con las plataformas
Windows macOS LinuxCategorías
- Image Processing and Computer Vision > Image Processing Toolbox > Image Filtering and Enhancement > Neighborhood and Block Processing >
- Image Processing and Computer Vision > Image Processing Toolbox > Image Segmentation and Analysis > Region and Image Properties >
- MATLAB > Graphics > 2-D and 3-D Plots > Surfaces, Volumes, and Polygons > Volume Visualization > Scalar Volume Data >
Etiquetas
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.
Versión | Publicado | Notas de la versión | |
---|---|---|---|
1.0.0.0 |