@Namespace(value="cv") @Properties(inherit=opencv_shape.class) public class ShapeTransformer extends Algorithm
/** \brief Abstract base class for shape transformation algorithms.
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
ShapeTransformer(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
float |
applyTransformation(GpuMat input) |
float |
applyTransformation(GpuMat input,
GpuMat output) |
float |
applyTransformation(Mat input) |
float |
applyTransformation(Mat input,
Mat output)
\brief Apply a transformation, given a pre-estimated transformation parameters.
|
float |
applyTransformation(UMat input) |
float |
applyTransformation(UMat input,
UMat output) |
void |
estimateTransformation(GpuMat transformingShape,
GpuMat targetShape,
DMatchVector matches) |
void |
estimateTransformation(Mat transformingShape,
Mat targetShape,
DMatchVector matches)
\brief Estimate the transformation parameters of the current transformer algorithm, based on point matches.
|
void |
estimateTransformation(UMat transformingShape,
UMat targetShape,
DMatchVector matches) |
void |
warpImage(GpuMat transformingImage,
GpuMat output) |
void |
warpImage(GpuMat transformingImage,
GpuMat output,
int flags,
int borderMode,
Scalar borderValue) |
void |
warpImage(Mat transformingImage,
Mat output) |
void |
warpImage(Mat transformingImage,
Mat output,
int flags,
int borderMode,
Scalar borderValue)
\brief Apply a transformation, given a pre-estimated transformation parameters, to an Image.
|
void |
warpImage(UMat transformingImage,
UMat output) |
void |
warpImage(UMat transformingImage,
UMat output,
int flags,
int borderMode,
Scalar borderValue) |
clear, empty, getDefaultName, position, read, save, save, write, write, writeaddress, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, hashCode, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, parseBytes, physicalBytes, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, toString, totalBytes, totalPhysicalBytes, withDeallocator, zeropublic ShapeTransformer(Pointer p)
Pointer.Pointer(Pointer).public void estimateTransformation(@ByVal Mat transformingShape, @ByVal Mat targetShape, @ByRef DMatchVector matches)
transformingShape - Contour defining first shape.targetShape - Contour defining second shape (Target).matches - Standard vector of Matches between points.public void estimateTransformation(@ByVal UMat transformingShape, @ByVal UMat targetShape, @ByRef DMatchVector matches)
public void estimateTransformation(@ByVal GpuMat transformingShape, @ByVal GpuMat targetShape, @ByRef DMatchVector matches)
public float applyTransformation(@ByVal Mat input, @ByVal(nullValue="cv::OutputArray(cv::noArray())") Mat output)
input - Contour (set of points) to apply the transformation.output - Output contour.public float applyTransformation(@ByVal UMat input, @ByVal(nullValue="cv::OutputArray(cv::noArray())") UMat output)
public float applyTransformation(@ByVal GpuMat input, @ByVal(nullValue="cv::OutputArray(cv::noArray())") GpuMat output)
public void warpImage(@ByVal Mat transformingImage, @ByVal Mat output, int flags, int borderMode, @Const @ByRef(nullValue="cv::Scalar()") Scalar borderValue)
transformingImage - Input image.output - Output image.flags - Image interpolation method.borderMode - border style.borderValue - border value.public void warpImage(@ByVal UMat transformingImage, @ByVal UMat output, int flags, int borderMode, @Const @ByRef(nullValue="cv::Scalar()") Scalar borderValue)
public void warpImage(@ByVal GpuMat transformingImage, @ByVal GpuMat output, int flags, int borderMode, @Const @ByRef(nullValue="cv::Scalar()") Scalar borderValue)
Copyright © 2020. All rights reserved.