Click or drag to resize
SbImageDataAccessorGetVoxel Method (Int32, Int32, Int32, Int32, Int32)

Returns value of voxel at specified position.

Namespace: OIV.ImageViz
Assembly: OIV.ImageViz (in OIV.ImageViz.dll) Version: 2023.1.3.0 (2023.1.3)
Syntax
public double GetVoxel(
	int x,
	int y,
	int z,
	int t,
	int c
)

Parameters

x
Type: SystemInt32

column coordinate

y
Type: SystemInt32

row coordinate

z
Type: SystemInt32

depth coordinate. Default is 0. Useful for 2D images.

t
Type: SystemInt32

time coordinate. Default is 0.

c
Type: SystemInt32

component number. Default is 0.

Return Value

Type: Double
Remarks

See also OIV.ImageViz.SbImageDataAccessor.GetVoxel(OIV.Inventor.SbVec4i32). Any request outside of the image will return 0. If the specified channel is not in image channel range, 0.0 will be returned.

See Also