![]() |
IPSDK
4_1_0_2
IPSDK : Image Processing Software Development Kit
|
algorithm allowing to generate a 2d image using a formula string More...
| IPSDKIPLARITHMETIC_API image::ImagePtr | ipsdk::imaproc::arithm::formula2dImg (const std::string &inImageFormula2d, const ipsdk::imaproc::arithm::FormulaInOptImages &formulaInOptImages) |
| wrapper function for algorithm allowing to generate a 2d image using a formula string More... | |
| IPSDKIPLARITHMETIC_API void | ipsdk::imaproc::arithm::formula2dImg (const std::string &inImageFormula2d, const ipsdk::imaproc::arithm::FormulaInOptImages &formulaInOptImages, const image::ImagePtr &pOutImg) |
| wrapper function for algorithm allowing to generate a 2d image using a formula string More... | |
| IPSDKIPLARITHMETIC_API void | ipsdk::imaproc::arithm::formula2dImg (const std::string &inImageFormula2d, const ipsdk::imaproc::arithm::FormulaInOptImages &formulaInOptImages, const image::Border2dPolicyConstPtr &pInOptConvolBorder2d, const image::ImagePtr &pOutImg) |
| wrapper function for algorithm allowing to generate a 2d image using a formula string More... | |
algorithm allowing to generate a 2d image using a formula string
This algorithm allows to generate an image from a formula string. It can be used into several cases such as:
A detailled description of image formula framework can be found at Image Formula.
The used image border policy during processing is controlled by parameter
(see Border policy for more details).
All input are optional for this algorithm, each input is associated to a string image identifier (see ipsdk::image::tools::eFormulaImageId):









Shape of all provided images must be the same.
All referenced input images must be provided for processing (if for example
appears in formula string, the user should provide
input image).
Input images
,
and
are generic input images associated to an arithmetic (eImageFormulaResultType::eMFRT_Arithmetic) result type. These images must share same image buffer type.
Input images
,
and
are binary input images associated to a logical (eImageFormulaResultType::eMFRT_Logic) result type. These images must be associated to a binary image buffer type (eImageBufferType::eIBT_Binary).
Input images
,
and
are label input images associated to an arithmetic (eImageFormulaResultType::eMFRT_Arithmetic) result type. These images must share same image buffer type (eImageBufferType::eIBT_Label16 or eImageBufferType::eIBT_Label32).
If the output image is provided, its shape must be the same as input optional images (if any) and its image buffer type must complies with formula result type (see Result type):
If the output image is not provided, its shape is determined using the input optional images shape. If no input optional images are requested for formula processing, the user can provide
image as a model for output shape. In case where the output image is not provided, the output image will be set to floating point in case of arithmetic formula result type and to binary in case of logical formula result type.
Following codes allow to use an image formula to generate a circular centered mask image:
Following codes allow to use image formula to merge two images data without using an intermediate mask image :
Following codes allow to use an image formula to apply a mean filter with a rectangular structuring element on an input image
Following codes allow to use image formula to apply a median filter with a circular structuring element on an input image.
Following codes allow to use image statistics to bound the grey level image in a given range:
Attribute description for algorithm :
| Name | ToolTip | Default Initializer |
|---|---|---|
| ipsdk::imaproc::attr::InImageFormula2d | [Input] Image formula 2d used for image generation | X |
| ipsdk::imaproc::attr::InOptImg1 | [Input Optional] first input image for operation | X |
| ipsdk::imaproc::attr::InOptImg2 | [Input Optional] second input image for operation | X |
| ipsdk::imaproc::attr::InOptImg3 | [Input Optional] third input image for operation | X |
| ipsdk::imaproc::attr::InOptBinImg1 | [Input Optional] first binary image for operation | X |
| ipsdk::imaproc::attr::InOptBinImg2 | [Input Optional] second binary image for operation | X |
| ipsdk::imaproc::attr::InOptBinImg3 | [Input Optional] third binary image for operation | X |
| ipsdk::imaproc::attr::InOptLabImg1 | [Input Optional] first label image for operation | X |
| ipsdk::imaproc::attr::InOptLabImg2 | [Input Optional] second label image for operation | X |
| ipsdk::imaproc::attr::InOptLabImg3 | [Input Optional] third label image for operation | X |
| ipsdk::imaproc::attr::InOptConvolBorder2d | [Input Optional] Border preparation policy for 2d convolution algorithm | X |
| ipsdk::imaproc::attr::OutImg | [Output] image for processing operation | customOutput (_pOutImg, outputFormula(_pInImageFormula2d,_pInOptImg1,_pInOptImg2,_pInOptImg3,_pInOptBinImg1,_pInOptBinImg2,_pInOptBinImg3,_pInOptLabImg1,_pInOptLabImg2,_pInOptLabImg3)) |
Global rule description for algorithm :
validateFormulaAndImages (_pInImageFormula2d,_pInOptImg1,_pInOptImg2,_pInOptImg3,_pInOptBinImg1,_pInOptBinImg2,_pInOptBinImg3,_pInOptLabImg1,_pInOptLabImg2,_pInOptLabImg3,_pOutImg)
| IPSDKIPLARITHMETIC_API image::ImagePtr ipsdk::imaproc::arithm::formula2dImg | ( | const std::string & | inImageFormula2d, |
| const ipsdk::imaproc::arithm::FormulaInOptImages & | formulaInOptImages | ||
| ) |
wrapper function for algorithm allowing to generate a 2d image using a formula string
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
| IPSDKIPLARITHMETIC_API void ipsdk::imaproc::arithm::formula2dImg | ( | const std::string & | inImageFormula2d, |
| const ipsdk::imaproc::arithm::FormulaInOptImages & | formulaInOptImages, | ||
| const image::ImagePtr & | pOutImg | ||
| ) |
wrapper function for algorithm allowing to generate a 2d image using a formula string
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
| IPSDKIPLARITHMETIC_API void ipsdk::imaproc::arithm::formula2dImg | ( | const std::string & | inImageFormula2d, |
| const ipsdk::imaproc::arithm::FormulaInOptImages & | formulaInOptImages, | ||
| const image::Border2dPolicyConstPtr & | pInOptConvolBorder2d, | ||
| const image::ImagePtr & | pOutImg | ||
| ) |
wrapper function for algorithm allowing to generate a 2d image using a formula string
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
1.8.14