@Namespace(value="cv::text") @Properties(inherit=opencv_text.class) public class ERFilter extends Algorithm
Extracts the component tree (if needed) and filter the extremal regions (ER's) by using a given classifier.
Modifier and Type | Class and Description |
---|---|
static class |
ERFilter.Callback
\brief Callback with the classifier is made a class.
|
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
ERFilter(Algorithm pointer)
Downcast constructor.
|
ERFilter(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
Algorithm |
asAlgorithm() |
static Algorithm |
asAlgorithm(ERFilter pointer) |
int |
getNumRejected() |
void |
run(GpuMat image,
ERStatVector regions) |
void |
run(Mat image,
ERStatVector regions)
\brief The key method of ERFilter algorithm.
|
void |
run(UMat image,
ERStatVector regions) |
void |
setCallback(ERFilter.Callback cb)
set/get methods to set the algorithm properties,
|
void |
setMaxArea(float maxArea) |
void |
setMinArea(float minArea) |
void |
setMinProbability(float minProbability) |
void |
setMinProbabilityDiff(float minProbabilityDiff) |
void |
setNonMaxSuppression(boolean nonMaxSuppression) |
void |
setThresholdDelta(int thresholdDelta) |
clear, empty, getDefaultName, getPointer, position, read, save, save, write, write, write
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public ERFilter(Pointer p)
Pointer(Pointer)
.public ERFilter(Algorithm pointer)
public Algorithm asAlgorithm()
asAlgorithm
in class Algorithm
@Namespace @Name(value="static_cast<cv::Algorithm*>") public static Algorithm asAlgorithm(ERFilter pointer)
public void run(@ByVal Mat image, @ByRef ERStatVector regions)
Takes image on input and returns the selected regions in a vector of ERStat only distinctive ERs which correspond to characters are selected by a sequential classifier
image
- Single channel image CV_8UC1
regions
- Output for the 1st stage and Input/Output for the 2nd. The selected Extremal Regions
are stored here.
Extracts the component tree (if needed) and filter the extremal regions (ER's) by using a given classifier.
public void run(@ByVal UMat image, @ByRef ERStatVector regions)
public void run(@ByVal GpuMat image, @ByRef ERStatVector regions)
public void setCallback(@opencv_core.Ptr ERFilter.Callback cb)
public void setThresholdDelta(int thresholdDelta)
public void setMinArea(float minArea)
public void setMaxArea(float maxArea)
public void setMinProbability(float minProbability)
public void setMinProbabilityDiff(float minProbabilityDiff)
public void setNonMaxSuppression(@Cast(value="bool") boolean nonMaxSuppression)
public int getNumRejected()
Copyright © 2024. All rights reserved.