IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit

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

IPSDKIPLGLOBALMEASURE_API ipsdk::imaproc::attr::Pixels2dPtr ipsdk::imaproc::glbmsr::locatePixels2d (const image::ImageConstPtr &pInBinImg)
 wrapper function for Build the list of the coordinates of the pixels with a value of True in the input binary image More...
 
IPSDKIPLGLOBALMEASURE_API ipsdk::imaproc::attr::Pixels2dPtr ipsdk::imaproc::glbmsr::locatePixels2d (const image::ImageConstPtr &pInBinImg, const ipsdk::ipUInt32 inNbPoints)
 wrapper function for Build the list of the coordinates of the pixels with a value of True in the input binary image More...
 
IPSDKIPLGLOBALMEASURE_API ipsdk::imaproc::attr::PlanIndexedPixels2dPtr ipsdk::imaproc::glbmsr::multiSlice_locatePixels2d (const image::ImageConstPtr &pInBinImg)
 wrapper function for Build the list of the coordinates of the pixels with a value of True in the input binary image More...
 
IPSDKIPLGLOBALMEASURE_API ipsdk::imaproc::attr::PlanIndexedPixels2dPtr ipsdk::imaproc::glbmsr::multiSlice_locatePixels2d (const image::ImageConstPtr &pInBinImg, const ipsdk::ipUInt32 inNbPoints)
 wrapper function for Build the list of the coordinates of the pixels with a value of True in the input binary image More...
 

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

Attributes description

Attribute description for algorithm :

Name ToolTip Default Initializer
ipsdk::imaproc::attr::InBinImg [Input] binary image for processing operation X
ipsdk::imaproc::attr::InNbFeatures [Input] target number of features to be detected by algorithm X
ipsdk::imaproc::attr::OutPIPixels2d [Output] plan indexed collection of positions and intensities of 2d pixels ipsdk::imaproc::fromImage (_pOutPIPixels2d, _pInBinImg)

Global Rule description

Global rule description for algorithm :
ipsdk::imaproc::matchImagePlans (_pOutPIPixels2d,_pInBinImg,eImagePlansMatchPolicy::eIPMP_ZCT)

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

Associated library

IPSDKIPLGlobalMeasure

Header file

Code Example

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

Function Documentation

◆ locatePixels2d() [1/2]

IPSDKIPLGLOBALMEASURE_API ipsdk::imaproc::attr::Pixels2dPtr ipsdk::imaproc::glbmsr::locatePixels2d ( const image::ImageConstPtr pInBinImg)

wrapper function for Build the list of the coordinates of the pixels with a value of True in the input binary image

Exceptions
ipsdk::processor::IPSDKBaseProcessingExceptionon failure

◆ locatePixels2d() [2/2]

IPSDKIPLGLOBALMEASURE_API ipsdk::imaproc::attr::Pixels2dPtr ipsdk::imaproc::glbmsr::locatePixels2d ( const image::ImageConstPtr pInBinImg,
const ipsdk::ipUInt32  inNbPoints 
)

wrapper function for Build the list of the coordinates of the pixels with a value of True in the input binary image

Exceptions
ipsdk::processor::IPSDKBaseProcessingExceptionon failure

◆ multiSlice_locatePixels2d() [1/2]

IPSDKIPLGLOBALMEASURE_API ipsdk::imaproc::attr::PlanIndexedPixels2dPtr ipsdk::imaproc::glbmsr::multiSlice_locatePixels2d ( const image::ImageConstPtr pInBinImg)

wrapper function for Build the list of the coordinates of the pixels with a value of True in the input binary image

Exceptions
ipsdk::processor::IPSDKBaseProcessingExceptionon failure

◆ multiSlice_locatePixels2d() [2/2]

IPSDKIPLGLOBALMEASURE_API ipsdk::imaproc::attr::PlanIndexedPixels2dPtr ipsdk::imaproc::glbmsr::multiSlice_locatePixels2d ( const image::ImageConstPtr pInBinImg,
const ipsdk::ipUInt32  inNbPoints 
)

wrapper function for Build the list of the coordinates of the pixels with a value of True in the input binary image

Exceptions
ipsdk::processor::IPSDKBaseProcessingExceptionon failure