k-Wave Toolbox |
3D plot of voxels in a binary matrix
voxelPlot(mat) voxelPlot(mat, ...)
voxelPlot
produces a 3D plot of a binary matrix, where filled voxels are displayed at the positions of the 1's. The colormap, transparency, and axis limits can be controlled through optional inputs. For example running
voxelPlot(makeBall(20, 20, 20, 10, 10, 10, 4), 'AxisTight', true, 'Color', [1 0 0], 'Transparency', 0.5); view([50, 15]);
will produce a semi-transparent image of a red ball.
|
binary 3D matrix |
Optional 'string', value pairs that may be used to modify the default computational settings.
Input | Valid Settings | Default | Description |
---|---|---|---|
|
(Boolean scalar) |
|
Boolean controlling whether axis limits are set to only display the filled voxels. |
|
(three element numeric vector) |
|
Three element vector specifying rgb color. |
|
(numeric scalar) |
|
value between 0 and 1 specifying transparency (1 gives no transparency). |
patch
vesselFilter | writeAttributes |
© 2009-2014 Bradley Treeby and Ben Cox.