![]() |
IPSDK
4_1_0_2
IPSDK : Image Processing Software Development Kit
|
unsharp mask filtering of input 2d image More...
| IPSDKIPLFILTERING_API image::ImagePtr | ipsdk::imaproc::filter::unsharpMask2dImg (const image::ImageConstPtr &pInImg, const ipReal32 inBlurWeight, const ipReal32 inStdDev) |
| wrapper function for unsharp mask filtering of input 2d image More... | |
| IPSDKIPLFILTERING_API image::ImagePtr | ipsdk::imaproc::filter::unsharpMask2dImg (const image::ImageConstPtr &pInImg, const ipReal32 inBlurWeight, const ipReal32 inStdDev, const attr::GaussianCoverageConstPtr &pInOptSmoothingGaussianCoverage) |
| wrapper function for unsharp mask filtering of input 2d image More... | |
| IPSDKIPLFILTERING_API void | ipsdk::imaproc::filter::unsharpMask2dImg (const image::ImageConstPtr &pInImg, const ipReal32 inBlurWeight, const ipReal32 inStdDev, const attr::GaussianCoverageConstPtr &pInOptSmoothingGaussianCoverage, const image::ImagePtr &pOutImg) |
| wrapper function for unsharp mask filtering of input 2d image More... | |
unsharp mask filtering of input 2d image
Unsharp mask filter is an image sharpening filter which uses a blurred (so unsharped) image to create a mask of the original image. This unsharp mask is then combined with original image to enhance high frequencies (edges) of input image. An undesirable side effect of this filter is an increase of noise in output image.
Given a gaussian smoothing operation on an input image
using standard deviation
:
(see Gaussian Smoothing 2d for more informations)
Unsharp mask filtering of input image with blur weight
is given by :
Here is an example of a unsharp mask operation applied to an 8-bits grey levels input image (with
and
) :
(image by Ru_dagon (Own work) [GFDL (http://www.gnu.org/copyLeft/fdl.html), CC-BY-SA-3.0 (http://creativecommons.org/licenses/by-sa/3.0/ ), via Wikimedia Commons])
Attribute description for algorithm :
| Name | ToolTip | Default Initializer |
|---|---|---|
| ipsdk::imaproc::attr::InImg | [Input] image for processing operation | X |
| ipsdk::imaproc::attr::InBlurWeight | [Input] weight factor used for blur combination operation | X |
| ipsdk::imaproc::attr::InStdDev | [Input] standard deviation used for operation along all axis | X |
| ipsdk::imaproc::attr::InOptSmoothingGaussianCoverage | [Input Optional] Parameter allowing to specify a gaussian distribution coverage for processing | X |
| ipsdk::imaproc::attr::OutWk1Img | [Output] Temporary working image for algorithm | ipsdk::imaproc::duplicateInOut (_pOutWk1Img, _pInImg) |
| ipsdk::imaproc::attr::OutImg | [Output] image for processing operation | ipsdk::imaproc::duplicateInOut (_pOutImg, _pInImg) |
Global rule description for algorithm :
ipsdk::imaproc::matchSizeAndType (_pInImg,_pOutImg) &&
ipsdk::imaproc::matchSizeAndType (_pOutImg,_pOutWk1Img) &&
ipsdk::imaproc::noInSitu (_pInImg,_pOutWk1Img) &&
ipsdk::imaproc::noInSitu (_pOutImg,_pOutWk1Img)
| IPSDKIPLFILTERING_API image::ImagePtr ipsdk::imaproc::filter::unsharpMask2dImg | ( | const image::ImageConstPtr & | pInImg, |
| const ipReal32 | inBlurWeight, | ||
| const ipReal32 | inStdDev | ||
| ) |
wrapper function for unsharp mask filtering of input 2d image
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
| IPSDKIPLFILTERING_API image::ImagePtr ipsdk::imaproc::filter::unsharpMask2dImg | ( | const image::ImageConstPtr & | pInImg, |
| const ipReal32 | inBlurWeight, | ||
| const ipReal32 | inStdDev, | ||
| const attr::GaussianCoverageConstPtr & | pInOptSmoothingGaussianCoverage | ||
| ) |
wrapper function for unsharp mask filtering of input 2d image
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
| IPSDKIPLFILTERING_API void ipsdk::imaproc::filter::unsharpMask2dImg | ( | const image::ImageConstPtr & | pInImg, |
| const ipReal32 | inBlurWeight, | ||
| const ipReal32 | inStdDev, | ||
| const attr::GaussianCoverageConstPtr & | pInOptSmoothingGaussianCoverage, | ||
| const image::ImagePtr & | pOutImg | ||
| ) |
wrapper function for unsharp mask filtering of input 2d image
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
1.8.14