![]() |
IPSDK
4_1_0_2
IPSDK : Image Processing Software Development Kit
|
algorithm allowing to invert 2d image intensity More...
| IPSDKIPLINTENSITYTRANSFORM_API image::ImagePtr | ipsdk::imaproc::itrans::invert2dImg (const image::ImageConstPtr &pInImg) |
| wrapper function for algorithm allowing to invert 2d image intensity More... | |
| IPSDKIPLINTENSITYTRANSFORM_API void | ipsdk::imaproc::itrans::invert2dImg (const image::ImageConstPtr &pInImg, const image::ImagePtr &pOutImg) |
| wrapper function for algorithm allowing to invert 2d image intensity More... | |
algorithm allowing to invert 2d image intensity
Given an input image
, output image
as follow :
where
is defined from input image extrema.
This transformation allows to preserve image range since :


Here is an example of 2d image greyscale inversion applied to a 8-bits grey level image :
During this transformation, image histogram is mirrored around mean input range
:
In this case algorithm is independently applied plan by plan (ie image extrema are computed and applied plan by plan), for a 3d version of this algorithm see Greyscale inversion of 3d image.
Attribute description for algorithm :
| Name | ToolTip | Default Initializer |
|---|---|---|
| ipsdk::imaproc::attr::InImg | [Input] image for processing operation | X |
| ipsdk::imaproc::attr::OutImg | [Output] image for processing operation | duplicateInOut (_pOutImg, _pInImg) |
Global rule description for algorithm :
ipsdk::imaproc::matchSizeAndType (_pInImg,_pOutImg)
| IPSDKIPLINTENSITYTRANSFORM_API image::ImagePtr ipsdk::imaproc::itrans::invert2dImg | ( | const image::ImageConstPtr & | pInImg | ) |
wrapper function for algorithm allowing to invert 2d image intensity
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
| IPSDKIPLINTENSITYTRANSFORM_API void ipsdk::imaproc::itrans::invert2dImg | ( | const image::ImageConstPtr & | pInImg, |
| const image::ImagePtr & | pOutImg | ||
| ) |
wrapper function for algorithm allowing to invert 2d image intensity
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
1.8.14