![]() |
IPSDK
4_1_0_2
IPSDK : Image Processing Software Development Kit
|
local energy on a 3d image More...
| IPSDKIPLSTATS_API image::ImagePtr | ipsdk::imaproc::stats::localEnergy3dImg (const image::ImageConstPtr &pInImg3d, const ipUInt32 inHalfKnlSizeX, const ipUInt32 inHalfKnlSizeY, const ipUInt32 inHalfKnlSizeZ) |
| wrapper function for local energy on a 3d image More... | |
| IPSDKIPLSTATS_API image::ImagePtr | ipsdk::imaproc::stats::localEnergy3dImg (const image::ImageConstPtr &pInImg3d, const ipUInt32 inHalfKnlSizeX, const ipUInt32 inHalfKnlSizeY, const ipUInt32 inHalfKnlSizeZ, const ipUInt32 inOptNbClasses) |
| wrapper function for local energy on a 3d image More... | |
| IPSDKIPLSTATS_API void | ipsdk::imaproc::stats::localEnergy3dImg (const image::ImageConstPtr &pInImg3d, const ipUInt32 inHalfKnlSizeX, const ipUInt32 inHalfKnlSizeY, const ipUInt32 inHalfKnlSizeZ, const ipUInt32 inOptNbClasses, const image::ImagePtr &pOutImg) |
| wrapper function for local energy on a 3d image More... | |
local energy on a 3d image
This algorithm computes for each pixel of the output image associated local energy on a box neighbourhood of the input image.
Given an input image
, box kernel half sizes
,
and
and a number of classes
, the output image values are given by :
where:
equals to
, with
the number of pixels in the kernel whose values belong to the interval of the
bin of the histogram computed on the box kernel, with the following parameters:
,
= minimum value of the whole input image,
= maximum value of the whole input image.The number of classes is an optional parameter of the algorithm. Its default value equals to 16. If the number of classes specified by the user exceeds the maximum allowed number of classes given the input image data type and dynamic range, it is automatically adjusted. For instance:
.The borders of the input image are handled by padding pixels with a mirror reflection of the border pixels in the input image (see Border policy for more details).
Here is an example of an output image computed from the LocalEnergy3dImg algorithm on a 8-bits grey level, with a kernel of size 3x4x5 pixels and 8 classes:
Attribute description for algorithm :
| Name | ToolTip | Default Initializer |
|---|---|---|
| ipsdk::imaproc::attr::InImg3d | [Input] 3d image for operation | X |
| ipsdk::imaproc::attr::InHalfKnlSizeX | [Input] half kernel size along X axis for operation | X |
| ipsdk::imaproc::attr::InHalfKnlSizeY | [Input] half kernel size along Y axis for operation | X |
| ipsdk::imaproc::attr::InHalfKnlSizeZ | [Input] half kernel size along Z axis for operation | X |
| ipsdk::imaproc::attr::InOptNbClasses | [Input Optional] number of classes | X |
| ipsdk::imaproc::attr::OutRealImg | [Output] image for processing operation (data contained in image buffer are reals) | ipsdk::imaproc::duplicateInOut (_pOutRealImg, _pInImg3d, image::eImageBufferType::eIBT_Real32) |
Global rule description for algorithm :
ipsdk::imaproc::matchSize (_pInImg3d,_pOutRealImg)
| IPSDKIPLSTATS_API image::ImagePtr ipsdk::imaproc::stats::localEnergy3dImg | ( | const image::ImageConstPtr & | pInImg3d, |
| const ipUInt32 | inHalfKnlSizeX, | ||
| const ipUInt32 | inHalfKnlSizeY, | ||
| const ipUInt32 | inHalfKnlSizeZ | ||
| ) |
wrapper function for local energy on a 3d image
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
| IPSDKIPLSTATS_API image::ImagePtr ipsdk::imaproc::stats::localEnergy3dImg | ( | const image::ImageConstPtr & | pInImg3d, |
| const ipUInt32 | inHalfKnlSizeX, | ||
| const ipUInt32 | inHalfKnlSizeY, | ||
| const ipUInt32 | inHalfKnlSizeZ, | ||
| const ipUInt32 | inOptNbClasses | ||
| ) |
wrapper function for local energy on a 3d image
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
| IPSDKIPLSTATS_API void ipsdk::imaproc::stats::localEnergy3dImg | ( | const image::ImageConstPtr & | pInImg3d, |
| const ipUInt32 | inHalfKnlSizeX, | ||
| const ipUInt32 | inHalfKnlSizeY, | ||
| const ipUInt32 | inHalfKnlSizeZ, | ||
| const ipUInt32 | inOptNbClasses, | ||
| const image::ImagePtr & | pOutImg | ||
| ) |
wrapper function for local energy on a 3d image
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
1.8.14