![]() |
IPSDK
4_1_0_2
IPSDK : Image Processing Software Development Kit
|
bilateral filter on 3d image More...
| IPSDKIPLFILTERING_API image::ImagePtr | ipsdk::imaproc::filter::bilateral3dImg (const image::ImageConstPtr &pInImg, const ipReal64 inSpaceSigma, const ipReal64 inRangeSigma) |
| wrapper function for bilateral filter on 3d image More... | |
| IPSDKIPLFILTERING_API image::ImagePtr | ipsdk::imaproc::filter::bilateral3dImg (const image::ImageConstPtr &pInImg, const ipUInt32 inHalfKnlSize, const ipReal64 inSpaceSigma, const ipReal64 inRangeSigma) |
| wrapper function for bilateral filter on 3d image More... | |
| IPSDKIPLFILTERING_API void | ipsdk::imaproc::filter::bilateral3dImg (const image::ImageConstPtr &pInImg, const ipUInt32 inHalfKnlSize, const ipReal64 inSpaceSigma, const ipReal64 inRangeSigma, const image::ImagePtr &pOutImg) |
| wrapper function for bilateral filter on 3d image More... | |
bilateral filter on 3d image
The bilateral filter is a non-linear smoothing filter that has good properties of edge-preserving. Each pixel value is replaced by a weighted average of the values of its neighbours. The weight is a product of two gaussian functions, one depending on the euclidian distance between the central pixel and its current neighbour, the other depending on the difference of the intensities of these 2 pixels.
On output image values are given by:
where:
is the weight function; ![$W(x, y, z, o_x, o_y, o_z)=f_S(o_x, o_y, o_z) \times f_R(|InImg[x, y, z]-InImg[{x+o_x, y+o_y, z+o_z}]|)$](form_437.png)
is the space function; 
is the range function; 
is defined by InOptHalfKnlSize attribute (if this attribute is not defined, then
equals to
)
is defined by InRangeSigma attribute
is defined by InSpaceSigma attributeInput and output images must have same size.
See Bilateral smoothing 2d for an illustration of bilateral filter applied to a 2d image.
Attribute description for algorithm :
| Name | ToolTip | Default Initializer |
|---|---|---|
| ipsdk::imaproc::attr::InImg3d | [Input] 3d image for operation | X |
| ipsdk::imaproc::attr::InRangeSigma | [Input] sigma for range gaussian function | X |
| ipsdk::imaproc::attr::InSpaceSigma | [Input] sigma for spatial gaussian function | X |
| ipsdk::imaproc::attr::InOptHalfKnlSize | [Input Optional] half kernel size (square or cubic kernel) | X |
| ipsdk::imaproc::attr::OutImg | [Output] image for processing operation | ipsdk::imaproc::duplicateInOut (_pOutImg, _pInImg3d) |
Global rule description for algorithm :
ipsdk::imaproc::matchSize (_pInImg3d,_pOutImg)
| IPSDKIPLFILTERING_API image::ImagePtr ipsdk::imaproc::filter::bilateral3dImg | ( | const image::ImageConstPtr & | pInImg, |
| const ipReal64 | inSpaceSigma, | ||
| const ipReal64 | inRangeSigma | ||
| ) |
wrapper function for bilateral filter on 3d image
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
| IPSDKIPLFILTERING_API image::ImagePtr ipsdk::imaproc::filter::bilateral3dImg | ( | const image::ImageConstPtr & | pInImg, |
| const ipUInt32 | inHalfKnlSize, | ||
| const ipReal64 | inSpaceSigma, | ||
| const ipReal64 | inRangeSigma | ||
| ) |
wrapper function for bilateral filter on 3d image
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
| IPSDKIPLFILTERING_API void ipsdk::imaproc::filter::bilateral3dImg | ( | const image::ImageConstPtr & | pInImg, |
| const ipUInt32 | inHalfKnlSize, | ||
| const ipReal64 | inSpaceSigma, | ||
| const ipReal64 | inRangeSigma, | ||
| const image::ImagePtr & | pOutImg | ||
| ) |
wrapper function for bilateral filter on 3d image
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
1.8.14