Class VolumeDataHelper
- Namespace
- HelixToolkit.SharpDX.Utilities
- Assembly
- HelixToolkit.SharpDX.dll
public static class VolumeDataHelper
- Inheritance
-
VolumeDataHelper
- Inherited Members
Methods
FilterNxNxN(Half4[], int, int, int, int)
Applies an NxNxN filter to the gradients. Should be an odd number of samples. 3 used by default.
public static void FilterNxNxN(Half4[] data, int width, int height, int depth, int n)
Parameters
dataHalf4[]Gradient data from GenerateGradients(float[], int, int, int, int)
widthintheightintdepthintnint
GenerateGradients(float[], int, int, int, int)
Generates gradients using a central differences scheme.
public static Half4[] GenerateGradients(float[] data, int width, int height, int depth, int sampleSize)
Parameters
datafloat[]Normalized voxel data
widthintheightintdepthintsampleSizeintThe size/radius of the sample to take.
Returns
- Half4[]