IPSDK 4.2
IPSDK : Image Processing Software Development Kit
Locate First Voxels 3d
Voxels3dlocateFirstVoxels3d (inLabelImg3d)

Detailed Description

Build the list of the coordinates of the first voxels of each object found in the input 3D image.

This algorithms computes the list of the first voxels of each label encountered in the input 3D image. The result is comparable to the measure FirstPixel3d but avoid the calculation of an analysis and thus a shape extraction.

An example of result for a 2D case can be found at Locate First Pixels 2d.

Example of Python code :

Example imports

import PyIPSDK
import PyIPSDK.IPSDKIPLGlobalMeasure as glbmsr

Code Example

# Pixel localization computation
voxels3d = glbmsr.locateFirstVoxels3d(inImg)

Example of C++ code :

Example informations

Header file

#include <IPSDKIPL/IPSDKIPLGlobalMeasure/Processor/LocateFirstVoxels3d/LocateFirstVoxels3d.h>

Code Example

// compute the location of the first voxel of each label
Voxels3dPtr pVoxels = locateFirstVoxels3d(pInLabelImg);