@Namespace(value="cv::saliency") @NoOffset @Properties(inherit=opencv_saliency.class) public class ObjectnessBING extends Objectness
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
ObjectnessBING() |
ObjectnessBING(long size)
Native array allocator.
|
ObjectnessBING(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
computeSaliency(GpuMat image,
GpuMat saliencyMap) |
boolean |
computeSaliency(Mat image,
Mat saliencyMap)
\brief Compute the saliency
|
boolean |
computeSaliency(UMat image,
UMat saliencyMap) |
static ObjectnessBING |
create() |
double |
getBase() |
int |
getNSS() |
FloatPointer |
getobjectnessValues()
\brief Return the list of the rectangles' objectness value,
|
int |
getW() |
ObjectnessBING |
position(long position) |
void |
read() |
void |
setBase(double val) |
void |
setBBResDir(BytePointer resultsDir)
\brief This is a utility function that allows to set an arbitrary path in which the algorithm will save the
optional results
|
void |
setBBResDir(String resultsDir) |
void |
setNSS(int val) |
void |
setTrainingPath(BytePointer trainingPath)
\brief This is a utility function that allows to set the correct path from which the algorithm will load
the trained model.
|
void |
setTrainingPath(String trainingPath) |
void |
setW(int val) |
void |
write() |
clear, empty, getDefaultName, read, save, save, write, write, write
address, 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, zero
public ObjectnessBING(Pointer p)
Pointer.Pointer(Pointer)
.public ObjectnessBING(long size)
Pointer.position(long)
.public ObjectnessBING()
public ObjectnessBING position(long position)
@opencv_core.Ptr public static ObjectnessBING create()
@Cast(value="bool") public boolean computeSaliency(@ByVal Mat image, @ByVal Mat saliencyMap)
Saliency
computeSaliency
in class Saliency
image
- The image.saliencyMap
- The computed saliency map.@Cast(value="bool") public boolean computeSaliency(@ByVal UMat image, @ByVal UMat saliencyMap)
computeSaliency
in class Saliency
@Cast(value="bool") public boolean computeSaliency(@ByVal GpuMat image, @ByVal GpuMat saliencyMap)
computeSaliency
in class Saliency
public void read()
public void write()
@StdVector public FloatPointer getobjectnessValues()
in the same order as the *vector\
public void setTrainingPath(@opencv_core.Str BytePointer trainingPath)
trainingPath
- trained model pathpublic void setTrainingPath(@opencv_core.Str String trainingPath)
public void setBBResDir(@opencv_core.Str BytePointer resultsDir)
(ie writing on file the total number and the list of rectangles returned by objectess, one for each row).
resultsDir
- results' folder pathpublic void setBBResDir(@opencv_core.Str String resultsDir)
public double getBase()
public void setBase(double val)
public int getNSS()
public void setNSS(int val)
public int getW()
public void setW(int val)
Copyright © 2020. All rights reserved.