image = | highPass3dImg (inImg3d,inHalfKnlSize) |
high pass filter on 3d image
High-pass filters keep high frequencies of the input image and reduce low frequencies. They are usually used to make the image appear sharper. This current implementation of high-pass filter is equivalent to a 3d convolution, using a cubic kernel of given half size ( ), whose all elements equal to -1, except the central element, whose value equals to
.
A mirror policy is used to apply filter to borders. Input and output images must have same size (see Border policy for more details).
See High-pass 2d for an illustration of high-pass filter on a 2d image