Package net.imglib2.mesh.alg
Class Voxelization
- java.lang.Object
-
- net.imglib2.mesh.alg.Voxelization
-
public final class Voxelization extends Object
This is a voxelizer that produces a binary image with values filled in along the surface of the mesh.Thanks to Tomas Möller for sharing his public domain code.
- Author:
- Kyle Harrington
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Img<BitType>voxelize(Mesh mesh, int width, int height, int depth)Voxelizesmeshstatic Img<BitType>voxelize(Mesh mesh, Dimensions dims)Voxelizesmeshstatic <B extends BooleanType<B>>
voidvoxelize(Mesh mesh, RandomAccessibleInterval<B> out)Voxelizesmesh
-
-
-
Method Detail
-
voxelize
public static Img<BitType> voxelize(Mesh mesh, int width, int height, int depth)
Voxelizesmesh
-
voxelize
public static Img<BitType> voxelize(Mesh mesh, Dimensions dims)
Voxelizesmesh- Parameters:
mesh- the inputMeshdims- theDimensionsof the output image- Returns:
- an
Imgcontaining a voxelization ofmesh - Implementation Note:
- op names="geom.voxelization"
-
voxelize
public static <B extends BooleanType<B>> void voxelize(Mesh mesh, RandomAccessibleInterval<B> out)
Voxelizesmesh- Parameters:
mesh- the inputMeshout- an output buffer in which the voxelization will be stored (container)- Implementation Note:
- op names="geom.voxelization"
-
-