IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
X projection 2d : Statistic measurement along the y axis

measure of common statistics indicators in the image (mean, max, etc.) computed along the Y axis More...

IPSDKIPLGLOBALMEASURE_API ipsdk::imaproc::attr::DoublesPtr ipsdk::imaproc::glbmsr::xProjection2d (const ipsdk::image::ImageConstPtr &pInSubImg2d, const ipsdk::imaproc::attr::eProjStatType &eInProjStatType)
 wrapper function for measure of common statistics indicators in the image (mean, max, etc.) computed along the Y direction More...
 

Detailed Description

measure of common statistics indicators in the image (mean, max, etc.) computed along the Y axis

The computed statistics for each column can be : minimum, maximum, sum, mean, variance, standard deviation or median (see ipsdk::imaproc::attr::eProjStatType).

The output is a vector whose size equals to the number of columns of the input image.

Here is an example of a 8-bits grey level image and all the X projections operations which can be applied :

mandrill_xProjection2dRes.png

Attributes description

Attribute description for algorithm :

Name ToolTip Default Initializer
ipsdk::imaproc::attr::InSubImg2d [Input] grey level 2d sub image for operation X
ipsdk::imaproc::attr::InProjStatType [Input] Predefined types for a statistical projection algorithm X
ipsdk::imaproc::attr::OutProjStat [Output] Vector containing the measure of common statistics indicators in the image (mean, max, etc.) along a given direction ipsdk::processor::allocate (_pOutProjStat)

Global Rule description

Global rule description for algorithm :
ipsdk::processor::none ()

Example of Python code :

Example imports

import PyIPSDK
import PyIPSDK.IPSDKIPLGlobalMeasure as glbmsr

Code Example

# opening of input image
inImg = PyIPSDK.loadTiffImageFile(inputImgPath)
# x projection measurement
xProjection2dResult = glbmsr.xProjection2d(inImg, PyIPSDK.eProjStatType.ePST_Mean)
# retrieve measurement results
meanValues = xProjection2dResult.coll
print("Mean value for projected image along Y axis for x=50 is " + str(meanValues[50]))

Example of C++ code :

Example informations

Associated library

IPSDKIPLGlobalMeasure

Header file

Code Example

// compute X minimum projection for input image
// --------------------------------------------
// compute X maximum projection for input image
// --------------------------------------------
// compute X sum projection for input image
// --------------------------------------------
// compute X mean projection for input image
// --------------------------------------------
// compute X variance projection for input image
// --------------------------------------------
// compute X standard deviation projection for input image
// --------------------------------------------
// compute X median projection for input image
// --------------------------------------------
See also
XProjection2dLvl1

Function Documentation

◆ xProjection2d()

IPSDKIPLGLOBALMEASURE_API ipsdk::imaproc::attr::DoublesPtr ipsdk::imaproc::glbmsr::xProjection2d ( const ipsdk::image::ImageConstPtr pInSubImg2d,
const ipsdk::imaproc::attr::eProjStatType eInProjStatType 
)

wrapper function for measure of common statistics indicators in the image (mean, max, etc.) computed along the Y direction

Exceptions
ipsdk::processor::IPSDKBaseProcessingExceptionon failure