IPSDK 4.2
IPSDK : Image Processing Software Development Kit
Locate First Pixels 2d
Pixels2dlocateFirstPixels2d (inLabelImg)

Detailed Description

Build the list of the coordinates of the first pixels of each object found in the input image.

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

Here is an example of result:

locateFirstPixels2d.png

Example of Python code :

Example imports

import PyIPSDK
import PyIPSDK.IPSDKIPLGlobalMeasure as glbmsr

Code Example

# Pixel localization computation
pixels2d = glbmsr.locateFirstPixels2d(inImg)

Example of C++ code :

Example informations

Header file

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

Code Example

// compute the location of the first pixel of each label
Pixels2dPtr pPixels = locateFirstPixels2d(pInLabelImg);