| Voxels3d = | locateVoxels3d (inBinImg3d) |
| Voxels3d = | locateVoxels3d (inBinImg3d,inNbPoints) |
Build the list of the coordinates of the voxels with a value of True in the input binary image.
Given an 3D input binary image, this algorithm lists the inNbPoints first voxels where the values are true in the binary image.
Please, see Pixel localization 2d for a 2D illustration.
Example of Python code :
Example imports
import PyIPSDK
import PyIPSDK.IPSDKIPLGlobalMeasure as glbmsr
Code Example
voxels3d = glbmsr.locateVoxels3d(inImg, 10)
Example of C++ code :
Example informations
Header file
#include <IPSDKIPL/IPSDKIPLGlobalMeasure/Processor/LocateVoxels3d/LocateVoxels3d.h>
Code Example
Voxels3dPtr pVoxels = locateVoxels3d(pInBinImg, nbMaxVoxels);