IPSDK 0.2
IPSDK : Image Processing Software Development Kit
Pixel localization 2dSee full documentation
Pixels2dlocatePixels2d (inBinImg)
Pixels2dlocatePixels2d (inBinImg,inNbPoints)

Detailed Description

Build the list of the coordinates of the pixels with a value of True in the input binary image.

Given an input binary image, this algorithm lists the inNbPoints first pixels where the values are true in the binary image.

Here is an example of result on a 10x10 binary image :

locatePixels2d.png

Example of Python code :

Example imports

import PyIPSDK
import PyIPSDK.IPSDKIPLGlobalMeasure as glbmsr

Code Example

# Pixel localization computation
pixels2d = glbmsr.locatePixels2d(inImg, 10)

Example of C++ code :

Example informations

Header file

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

Code Example

// Sample with a generated output image
// ------------------------------------
// compute addition of input images
Pixels2dPtr pPixels = locatePixels2d(pInBinImg, nbMaxPixels);