OpenCV453
|
モジュール | |
Structured forests for fast edge detection | |
名前空間 | |
namespace | cv |
"black box" representation of the file storage associated with a file on disk. | |
列挙型 | |
enum | ThinningTypes { THINNING_ZHANGSUEN = 0 , THINNING_GUOHALL = 1 } |
enum | cv::ximgproc::LocalBinarizationMethods { cv::ximgproc::BINARIZATION_NIBLACK = 0 , cv::ximgproc::BINARIZATION_SAUVOLA = 1 , cv::ximgproc::BINARIZATION_WOLF = 2 , cv::ximgproc::BINARIZATION_NICK = 3 } |
Specifies the binarization method to use in cv::ximgproc::niBlackThreshold [詳解] | |
関数 | |
CV_EXPORTS_W void | cv::ximgproc::niBlackThreshold (InputArray _src, OutputArray _dst, double maxValue, int type, int blockSize, double k, int binarizationMethod=BINARIZATION_NIBLACK, double r=128) |
Performs thresholding on input images using Niblack's technique or some of the popular variations it inspired. [詳解] | |
CV_EXPORTS_W void | cv::ximgproc::thinning (InputArray src, OutputArray dst, int thinningType=THINNING_ZHANGSUEN) |
Applies a binary blob thinning operation, to achieve a skeletization of the input image. [詳解] | |
CV_EXPORTS_W void | cv::ximgproc::anisotropicDiffusion (InputArray src, OutputArray dst, float alpha, float K, int niters) |
Performs anisotropic diffusion on an image. [詳解] | |
CV_EXPORTS_W void | cv::ximgproc::edgePreservingFilter (InputArray src, OutputArray dst, int d, double threshold) |
Smoothes an image using the Edge-Preserving filter. [詳解] | |
CV_EXPORTS Matx23d | cv::ximgproc::PeiLinNormalization (InputArray I) |
Calculates an affine transformation that normalize given image using Pei&Lin Normalization. [詳解] | |
CV_EXPORTS_W void | cv::ximgproc::PeiLinNormalization (InputArray I, OutputArray T) |
Specifies the binarization method to use in cv::ximgproc::niBlackThreshold
CV_EXPORTS_W void cv::ximgproc::anisotropicDiffusion | ( | InputArray | src, |
OutputArray | dst, | ||
float | alpha, | ||
float | K, | ||
int | niters | ||
) |
Performs anisotropic diffusion on an image.
The function applies Perona-Malik anisotropic diffusion to an image. This is the solution to the partial differential equation:
Suggested functions for c(x,y,t) are:
or
src | Source image with 3 channels. |
dst | Destination image of the same size and the same number of channels as src . |
alpha | The amount of time to step forward by on each iteration (normally, it's between 0 and 1). |
K | sensitivity to the edges |
niters | The number of iterations |
CV_EXPORTS_W void cv::ximgproc::edgePreservingFilter | ( | InputArray | src, |
OutputArray | dst, | ||
int | d, | ||
double | threshold | ||
) |
Smoothes an image using the Edge-Preserving filter.
The function smoothes Gaussian noise as well as salt & pepper noise. For more details about this implementation, please see [ReiWoe18] Reich, S. and Wörgötter, F. and Dellen, B. (2018). A Real-Time Edge-Preserving Denoising Filter. Proceedings of the 13th International Joint Conference on Computer Vision, Imaging and Computer Graphics Theory and Applications (VISIGRAPP): Visapp, 85-94, 4. DOI: 10.5220/0006509000850094.
src | Source 8-bit 3-channel image. |
dst | Destination image of the same size and type as src. |
d | Diameter of each pixel neighborhood that is used during filtering. Must be greater or equal 3. |
threshold | Threshold, which distinguishes between noise, outliers, and data. |
CV_EXPORTS_W void cv::ximgproc::niBlackThreshold | ( | InputArray | _src, |
OutputArray | _dst, | ||
double | maxValue, | ||
int | type, | ||
int | blockSize, | ||
double | k, | ||
int | binarizationMethod = BINARIZATION_NIBLACK , |
||
double | r = 128 |
||
) |
Performs thresholding on input images using Niblack's technique or some of the popular variations it inspired.
The function transforms a grayscale image to a binary image according to the formulae:
The threshold value is determined based on the binarization method chosen. For classic Niblack, it is the mean minus
times standard deviation of
neighborhood of
.
The function can't process the image in-place.
_src | Source 8-bit single-channel image. |
_dst | Destination image of the same size and the same type as src. |
maxValue | Non-zero value assigned to the pixels for which the condition is satisfied, used with the THRESH_BINARY and THRESH_BINARY_INV thresholding types. |
type | Thresholding type, see cv::ThresholdTypes. |
blockSize | Size of a pixel neighborhood that is used to calculate a threshold value for the pixel: 3, 5, 7, and so on. |
k | The user-adjustable parameter used by Niblack and inspired techniques. For Niblack, this is normally a value between 0 and 1 that is multiplied with the standard deviation and subtracted from the mean. |
binarizationMethod | Binarization method to use. By default, Niblack's technique is used. Other techniques can be specified, see cv::ximgproc::LocalBinarizationMethods. |
r | The user-adjustable parameter used by Sauvola's technique. This is the dynamic range of standard deviation. |
CV_EXPORTS Matx23d cv::ximgproc::PeiLinNormalization | ( | InputArray | I | ) |
Calculates an affine transformation that normalize given image using Pei&Lin Normalization.
Assume given image where
is a normalized image and
is an affine transformation distorting this image by translation, rotation, scaling and skew. The function returns an affine transformation matrix corresponding to the transformation
described in [PeiLin95]. For more details about this implementation, please see [PeiLin95] Soo-Chang Pei and Chao-Nan Lin. Image normalization for pattern recognition. Image and Vision Computing, Vol. 13, N.10, pp. 711-723, 1995.
I | Given transformed image. |
CV_EXPORTS_W void cv::ximgproc::PeiLinNormalization | ( | InputArray | I, |
OutputArray | T | ||
) |
これはオーバーロードされたメンバ関数です。利便性のために用意されています。元の関数との違いは引き数のみです。
CV_EXPORTS_W void cv::ximgproc::thinning | ( | InputArray | src, |
OutputArray | dst, | ||
int | thinningType = THINNING_ZHANGSUEN |
||
) |
Applies a binary blob thinning operation, to achieve a skeletization of the input image.
The function transforms a binary blob image into a skeletized form using the technique of Zhang-Suen.
src | Source 8-bit single-channel image, containing binary blobs, with blobs having 255 pixel values. |
dst | Destination image of the same size and the same type as src. The function can work in-place. |
thinningType | Value that defines which thinning algorithm should be used. See cv::ximgproc::ThinningTypes |