![]() |
IPSDK
4_1_0_2
IPSDK : Image Processing Software Development Kit
|
algorithm allowing to generate a 3d image using a formula string More...
| IPSDKIPLARITHMETIC_API image::ImagePtr | ipsdk::imaproc::arithm::formula3dImg (const std::string &inImageFormula3d, const ipsdk::imaproc::arithm::FormulaInOptImages &formulaInOptImages) |
| wrapper function for algorithm allowing to generate a 3d image using a formula string More... | |
| IPSDKIPLARITHMETIC_API void | ipsdk::imaproc::arithm::formula3dImg (const std::string &inImageFormula3d, const ipsdk::imaproc::arithm::FormulaInOptImages &formulaInOptImages, const image::ImagePtr &pOutImg) |
| wrapper function for algorithm allowing to generate a 3d image using a formula string More... | |
| IPSDKIPLARITHMETIC_API void | ipsdk::imaproc::arithm::formula3dImg (const std::string &inImageFormula3d, const ipsdk::imaproc::arithm::FormulaInOptImages &formulaInOptImages, const image::Border3dPolicyConstPtr &pInOptConvolBorder3d, const image::ImagePtr &pOutImg) |
| wrapper function for algorithm allowing to generate a 3d image using a formula string More... | |
algorithm allowing to generate a 3d 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:
Please refers to Processing samples for additional presentation of image formula applications in 2d case.
Attribute description for algorithm :
| Name | ToolTip | Default Initializer |
|---|---|---|
| ipsdk::imaproc::attr::InImageFormula3d | [Input] Image formula 3d used for image generation | X |
| ipsdk::imaproc::attr::InOptImg3d1 | [Input Optional] first input image 3d for operation | X |
| ipsdk::imaproc::attr::InOptImg3d2 | [Input Optional] second input image 3d for operation | X |
| ipsdk::imaproc::attr::InOptImg3d3 | [Input Optional] third input image 3d for operation | X |
| ipsdk::imaproc::attr::InOptBinImg3d1 | [Input Optional] first binary image 3d for operation | X |
| ipsdk::imaproc::attr::InOptBinImg3d2 | [Input Optional] second binary image 3d for operation | X |
| ipsdk::imaproc::attr::InOptBinImg3d3 | [Input Optional] third binary image 3d for operation | X |
| ipsdk::imaproc::attr::InOptLabImg3d1 | [Input Optional] first label image 3d for operation | X |
| ipsdk::imaproc::attr::InOptLabImg3d2 | [Input Optional] second label image 3d for operation | X |
| ipsdk::imaproc::attr::InOptLabImg3d3 | [Input Optional] third label image 3d for operation | X |
| ipsdk::imaproc::attr::InOptConvolBorder3d | [Input Optional] Border preparation policy for 3d convolution algorithm | X |
| ipsdk::imaproc::attr::OutImg | [Output] image for processing operation | customOutput (_pOutImg, outputFormula(_pInImageFormula3d,_pInOptImg3d1,_pInOptImg3d2,_pInOptImg3d3,_pInOptBinImg3d1,_pInOptBinImg3d2,_pInOptBinImg3d3,_pInOptLabImg3d1,_pInOptLabImg3d2,_pInOptLabImg3d3)) |
Global rule description for algorithm :
validateFormulaAndImages (_pInImageFormula3d,_pInOptImg3d1,_pInOptImg3d2,_pInOptImg3d3,_pInOptBinImg3d1,_pInOptBinImg3d2,_pInOptBinImg3d3,_pInOptLabImg3d1,_pInOptLabImg3d2,_pInOptLabImg3d3,_pOutImg)
| IPSDKIPLARITHMETIC_API image::ImagePtr ipsdk::imaproc::arithm::formula3dImg | ( | const std::string & | inImageFormula3d, |
| const ipsdk::imaproc::arithm::FormulaInOptImages & | formulaInOptImages | ||
| ) |
wrapper function for algorithm allowing to generate a 3d image using a formula string
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
| IPSDKIPLARITHMETIC_API void ipsdk::imaproc::arithm::formula3dImg | ( | const std::string & | inImageFormula3d, |
| const ipsdk::imaproc::arithm::FormulaInOptImages & | formulaInOptImages, | ||
| const image::ImagePtr & | pOutImg | ||
| ) |
wrapper function for algorithm allowing to generate a 3d image using a formula string
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
| IPSDKIPLARITHMETIC_API void ipsdk::imaproc::arithm::formula3dImg | ( | const std::string & | inImageFormula3d, |
| const ipsdk::imaproc::arithm::FormulaInOptImages & | formulaInOptImages, | ||
| const image::Border3dPolicyConstPtr & | pInOptConvolBorder3d, | ||
| const image::ImagePtr & | pOutImg | ||
| ) |
wrapper function for algorithm allowing to generate a 3d image using a formula string
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
1.8.14