@Namespace(value="cv") @Properties(inherit=opencv_shape.class) public class ShapeContextDistanceExtractor extends ShapeDistanceExtractor
proposed by Belongie et al. in "Shape Matching and Object Recognition Using Shape Contexts" (PAMI 2002). This implementation is packaged in a generic scheme, in order to allow you the implementation of the common variations of the original pipeline.
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
ShapeContextDistanceExtractor(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getAngularBins() |
float |
getBendingEnergyWeight() |
HistogramCostExtractor |
getCostExtractor() |
float |
getImageAppearanceWeight() |
void |
getImages(GpuMat image1,
GpuMat image2) |
void |
getImages(Mat image1,
Mat image2) |
void |
getImages(UMat image1,
UMat image2) |
float |
getInnerRadius() |
int |
getIterations() |
float |
getOuterRadius() |
int |
getRadialBins() |
boolean |
getRotationInvariant() |
float |
getShapeContextWeight() |
float |
getStdDev() |
ShapeTransformer |
getTransformAlgorithm() |
void |
setAngularBins(int nAngularBins)
\brief Establish the number of angular bins for the Shape Context Descriptor used in the shape matching
pipeline.
|
void |
setBendingEnergyWeight(float bendingEnergyWeight)
\brief Set the weight of the Bending Energy in the final value of the shape distance.
|
void |
setCostExtractor(HistogramCostExtractor comparer)
\brief Set the algorithm used for building the shape context descriptor cost matrix.
|
void |
setImageAppearanceWeight(float imageAppearanceWeight)
\brief Set the weight of the Image Appearance cost in the final value of the shape distance.
|
void |
setImages(GpuMat image1,
GpuMat image2) |
void |
setImages(Mat image1,
Mat image2)
\brief Set the images that correspond to each shape.
|
void |
setImages(UMat image1,
UMat image2) |
void |
setInnerRadius(float innerRadius)
\brief Set the inner radius of the shape context descriptor.
|
void |
setIterations(int iterations) |
void |
setOuterRadius(float outerRadius)
\brief Set the outer radius of the shape context descriptor.
|
void |
setRadialBins(int nRadialBins)
\brief Establish the number of radial bins for the Shape Context Descriptor used in the shape matching
pipeline.
|
void |
setRotationInvariant(boolean rotationInvariant) |
void |
setShapeContextWeight(float shapeContextWeight)
\brief Set the weight of the shape context distance in the final value of the shape distance.
|
void |
setStdDev(float sigma)
\brief Set the value of the standard deviation for the Gaussian window for the image appearance cost.
|
void |
setTransformAlgorithm(ShapeTransformer transformer)
\brief Set the algorithm used for aligning the shapes.
|
computeDistance, computeDistance, computeDistanceclear, 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 ShapeContextDistanceExtractor(Pointer p)
Pointer.Pointer(Pointer).public void setAngularBins(int nAngularBins)
nAngularBins - The number of angular bins in the shape context descriptor.public int getAngularBins()
public void setRadialBins(int nRadialBins)
nRadialBins - The number of radial bins in the shape context descriptor.public int getRadialBins()
public void setInnerRadius(float innerRadius)
innerRadius - The value of the inner radius.public float getInnerRadius()
public void setOuterRadius(float outerRadius)
outerRadius - The value of the outer radius.public float getOuterRadius()
public void setRotationInvariant(@Cast(value="bool") boolean rotationInvariant)
public void setShapeContextWeight(float shapeContextWeight)
shapeContextWeight - The weight of the shape context distance in the final distance value.public float getShapeContextWeight()
public void setImageAppearanceWeight(float imageAppearanceWeight)
imageAppearanceWeight - The weight of the appearance cost in the final distance value.public float getImageAppearanceWeight()
public void setBendingEnergyWeight(float bendingEnergyWeight)
bendingEnergyWeight - The weight of the Bending Energy in the final distance value.public float getBendingEnergyWeight()
public void setImages(@ByVal Mat image1, @ByVal Mat image2)
image1 - Image corresponding to the shape defined by contours1.image2 - Image corresponding to the shape defined by contours2.public void setIterations(int iterations)
public int getIterations()
public void setCostExtractor(@opencv_core.Ptr HistogramCostExtractor comparer)
comparer - Smart pointer to a HistogramCostExtractor, an algorithm that defines the cost
matrix between descriptors.@opencv_core.Ptr public HistogramCostExtractor getCostExtractor()
public void setStdDev(float sigma)
sigma - Standard Deviation.public float getStdDev()
public void setTransformAlgorithm(@opencv_core.Ptr ShapeTransformer transformer)
transformer - Smart pointer to a ShapeTransformer, an algorithm that defines the aligning
transformation.@opencv_core.Ptr public ShapeTransformer getTransformAlgorithm()
Copyright © 2020. All rights reserved.