public final class Geometry
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static org.opencv.core.Mat |
componentDensity(org.opencv.core.Mat input,
int minSize)
Calculates a map of connected component density.
|
static org.opencv.core.Mat |
dct(org.opencv.core.Mat input)
Discrete Cosine transform.
|
static org.opencv.core.Mat |
dft(org.opencv.core.Mat input)
Discrete Fourier transform.
|
static org.opencv.core.Mat |
myMedianBlur(org.opencv.core.Mat input,
int xSize,
int ySize)
OpenCV does not support median filtering with non-quadratic kernels.
|
static org.opencv.core.Mat |
rectSum(org.opencv.core.Mat input,
int fixRow,
int fixCol,
int maxHeight,
int maxWidth)
Calculates the sum of elements within rectangles in the image.
|
static org.opencv.core.Mat |
reducedALCM(org.opencv.core.Mat input,
org.opencv.core.Size kSize,
int resolution)
Applies a steerable ellipsoid filter to create an adaptive local
connectivity map.
|
static org.opencv.core.Mat |
reducedRunlength(org.opencv.core.Mat input,
int resolution)
Computes a connectivity map based on run length from pixels in specific
directions.
|
static org.opencv.core.Mat |
removeLargeComponents(org.opencv.core.Mat input,
int maxWidth,
int maxHeight)
Remove large connected components in the image.
|
static org.opencv.core.Mat |
runlengthMap(org.opencv.core.Mat input,
double theta) |
static org.opencv.core.Mat |
thinning(org.opencv.core.Mat im)
Function for thinning the given binary image
|
public static org.opencv.core.Mat rectSum(org.opencv.core.Mat input, int fixRow, int fixCol, int maxHeight, int maxWidth)
input
- input imagefixRow
- row number of the fix pointfixCol
- column number of the fix pointmaxHeight
- maximum height of the rectanglesmaxWidth
- maximum width of the rectanglespublic static org.opencv.core.Mat componentDensity(org.opencv.core.Mat input, int minSize)
input
- input imageminSize
- bounding boxes below this size are ignoredpublic static org.opencv.core.Mat removeLargeComponents(org.opencv.core.Mat input, int maxWidth, int maxHeight)
input
- input imagemaxWidth
- maximum width of connected componentsmaxHeight
- maximum height of connected componentspublic static org.opencv.core.Mat dft(org.opencv.core.Mat input)
input
- input imagepublic static org.opencv.core.Mat dct(org.opencv.core.Mat input)
input
- input imagepublic static org.opencv.core.Mat thinning(org.opencv.core.Mat im)
im
- Binary image with range = 0-255http://opencv-code.com/quick-tips/implementation-of-thinning-algorithm-in-opencv/
public static org.opencv.core.Mat reducedALCM(org.opencv.core.Mat input, org.opencv.core.Size kSize, int resolution) throws java.lang.IllegalArgumentException
resolution
.input
- input imagekSize
- size of the kernel. Should have width>heightresolution
- angle resolution and width of the output image. >0.java.lang.IllegalArgumentException
- if resolution < 1 or height > widthjava.lang.NullPointerException
- if input
is nullpublic static org.opencv.core.Mat reducedRunlength(org.opencv.core.Mat input, int resolution) throws java.lang.IllegalArgumentException
resolution
.input
- input imageresolution
- angle resolution and width of the output image. >0.java.lang.IllegalArgumentException
- if resolution < 1java.lang.NullPointerException
- if input
is nullpublic static org.opencv.core.Mat runlengthMap(org.opencv.core.Mat input, double theta)
public static org.opencv.core.Mat myMedianBlur(org.opencv.core.Mat input, int xSize, int ySize)
input
- input imagexSize
- kernel size in x directionySize
- kernel size in y direction