Package net.imglib2.mesh.alg
Class MarchingCubesRealType
- java.lang.Object
-
- net.imglib2.mesh.alg.MarchingCubesRealType
-
public class MarchingCubesRealType extends Object
This is a marching cubes implementation. It is inspired by Paul Bourke's implementation. Especially the lookup tables are from his implementation.- Author:
- Tim-Oliver Buchholz (University of Konstanz), Tobias Pietzsch
-
-
Constructor Summary
Constructors Constructor Description MarchingCubesRealType()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T extends RealType<T>>
Meshcalculate(RandomAccessibleInterval<T> input, double isoLevel)Generates aMeshsurface from aRandomAccessibleInterval, containing all points with data valueisolevelstatic <T extends RealType<T>>
Meshcompute(RandomAccessibleInterval<T> input, double isoLevel, Mesh output)
-
-
-
Method Detail
-
calculate
public static <T extends RealType<T>> Mesh calculate(RandomAccessibleInterval<T> input, double isoLevel)
Generates aMeshsurface from aRandomAccessibleInterval, containing all points with data valueisolevel- Type Parameters:
T- the element type ofinput- Parameters:
input- the inputRandomAccessibleIntervalisoLevel- the value such that all locations on the output surface- Returns:
- a
Meshcontaining the isosurface withininputcorresponding toisolevel - Implementation Note:
- op names="geom.marchingCubes"
-
compute
public static <T extends RealType<T>> Mesh compute(RandomAccessibleInterval<T> input, double isoLevel, Mesh output)
-
-