Table of Contents

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

data Half4[]

Gradient data from GenerateGradients(float[], int, int, int, int)

width int
height int
depth int
n int

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

data float[]

Normalized voxel data

width int
height int
depth int
sampleSize int

The size/radius of the sample to take.

Returns

Half4[]