IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit

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

IPSDKIPLGLOBALMEASURE_API ipsdk::image::ImagePtr ipsdk::imaproc::glbmsr::seqProjectionImg (const ipsdk::image::ImageConstPtr &pInImg, const ipsdk::imaproc::attr::eProjStatType &eInProjStatType)
 wrapper function for measure of common statistics indicators in the image (mean, max, etc.) computed along the sequence More...
 
IPSDKIPLGLOBALMEASURE_API void ipsdk::imaproc::glbmsr::seqProjectionImg (const ipsdk::image::ImageConstPtr &pInImg, const ipsdk::imaproc::attr::eProjStatType &eInProjStatType, const ipsdk::image::ImagePtr &pOutImg)
 wrapper function for measure of common statistics indicators in the image (mean, max, etc.) computed along the sequence More...
 

Detailed Description

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

Depending on the type of indicator specified by the user, (see ipsdk::imaproc::attr::eProjStatType), values of the output image are given by one of the following formula:

with sizeT the number of images in the input sequence

Output image must have same dimensions in x and y that images of input sequence

Attributes description

Attribute description for algorithm :

Name ToolTip Default Initializer
ipsdk::imaproc::attr::InSeqImg [Input] sequence image for processing operation X
ipsdk::imaproc::attr::InProjStatType [Input] Predefined types for a statistical projection algorithm X
ipsdk::imaproc::attr::OutSingleImg [Output] single image duplicateSingleInOut (_pOutSingleImg, _pInSeqImg)

Global Rule description

Global rule description for algorithm :
ipsdk::imaproc::matchSize (eMatchImageSizeType::eMIST_XYZC,_pInSeqImg,_pOutSingleImg)

Example of Python code :

Example imports

import PyIPSDK
import PyIPSDK.IPSDKIPLGlobalMeasure as glbmsr

Code Example

# opening of input images
inImg = PyIPSDK.loadTiffImageFile(inputImgPath, PyIPSDK.eTiffDirectoryMode.eTDM_Temporal)
# computation of sequence projection image
outImg = glbmsr.seqProjectionImg(inImg, PyIPSDK.eProjStatType.ePST_Mean)

Example of C++ code :

Example informations

Associated library

IPSDKIPLGlobalMeasure

Header file

Code Example

// compute minimum sequence projection for input image
// --------------------------------------------
boost::shared_ptr<MemoryImage> pOutImgMin(boost::make_shared<MemoryImage>());
pOutImgMin->init(*pOutputImageGeometry);
ImagePtr pOutRefImgMin = computeSeqProjectionMinImg<inType, outType>(pInImg);
// compute maximum sequence projection for input image
// --------------------------------------------
boost::shared_ptr<MemoryImage> pOutImgMax(boost::make_shared<MemoryImage>());
pOutImgMax->init(*pOutputImageGeometry);
ImagePtr pOutRefImgMax = computeSeqProjectionMaxImg<inType, outType>(pInImg);
// compute sum sequence projection for input image
// --------------------------------------------
boost::shared_ptr<MemoryImage> pOutImgSum(boost::make_shared<MemoryImage>());
pOutImgSum->init(*pOutputImageGeometry);
ImagePtr pOutRefImgSum = computeSeqProjectionSumImg<inType, outType>(pInImg);
// compute mean sequence projection for input image
// --------------------------------------------
boost::shared_ptr<MemoryImage> pOutImgMean(boost::make_shared<MemoryImage>());
pOutImgMean->init(*pOutputImageGeometry);
ImagePtr pOutRefImgMean = computeSeqProjectionMeanImg<inType, outType>(pInImg);
// compute variance sequence projection for input image
// --------------------------------------------
boost::shared_ptr<MemoryImage> pOutImgVar(boost::make_shared<MemoryImage>());
pOutImgVar->init(*pOutputImageGeometry);
ImagePtr pOutRefImgVar = computeSeqProjectionVarImg<inType, outType>(pInImg);
// compute standard deviation sequence projection for input image
// --------------------------------------------
boost::shared_ptr<MemoryImage> pOutImgStdDev(boost::make_shared<MemoryImage>());
pOutImgStdDev->init(*pOutputImageGeometry);
ImagePtr pOutRefImgStdDev = computeSeqProjectionStdDevImg<inType, outType>(pInImg);
// compute median sequence projection for input image
// --------------------------------------------
boost::shared_ptr<MemoryImage> pOutImgMedian(boost::make_shared<MemoryImage>());
pOutImgMedian->init(*pOutputImageGeometry);
ImagePtr pOutRefImgMedian = computeSeqProjectionMedianImg<inType, outType>(pInImg);
See also
SeqProjectionImgLvl1
SeqProjectionImgLvl2

Function Documentation

◆ seqProjectionImg() [1/2]

IPSDKIPLGLOBALMEASURE_API ipsdk::image::ImagePtr ipsdk::imaproc::glbmsr::seqProjectionImg ( const ipsdk::image::ImageConstPtr pInImg,
const ipsdk::imaproc::attr::eProjStatType eInProjStatType 
)

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

Exceptions
ipsdk::processor::IPSDKBaseProcessingExceptionon failure

◆ seqProjectionImg() [2/2]

IPSDKIPLGLOBALMEASURE_API void ipsdk::imaproc::glbmsr::seqProjectionImg ( const ipsdk::image::ImageConstPtr pInImg,
const ipsdk::imaproc::attr::eProjStatType eInProjStatType,
const ipsdk::image::ImagePtr pOutImg 
)

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

Exceptions
ipsdk::processor::IPSDKBaseProcessingExceptionon failure