OpenCV for Unity 3.0.2
Enox Software / Please refer to OpenCV official document ( http://docs.opencv.org/4.13.0/index.html ) for the details of the argument of the method.
Loading...
Searching...
No Matches
OpenCVForUnity.SaliencyModule.ObjectnessBING Class Reference

the Binarized normed gradients algorithm from [BING] More...

Public Member Functions

override bool computeSaliency (Mat image, Mat saliencyMap)
 Compute the saliency.
 
double getBase ()
 
int getNSS ()
 
MatOfFloat getobjectnessValues ()
 Return the list of the rectangles' objectness value,.
 
int getW ()
 
void setBase (double val)
 
void setBBResDir (string resultsDir)
 This is a utility function that allows to set an arbitrary path in which the algorithm will save the optional results.
 
void setNSS (int val)
 
void setTrainingPath (string trainingPath)
 This is a utility function that allows to set the correct path from which the algorithm will load the trained model.
 
void setW (int val)
 
- Public Member Functions inherited from OpenCVForUnity.SaliencyModule.Saliency
- Public Member Functions inherited from OpenCVForUnity.CoreModule.Algorithm
virtual void clear ()
 Clears the algorithm state.
 
virtual bool empty ()
 Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read.
 
virtual string getDefaultName ()
 
IntPtr getNativeObjAddr ()
 
void save (string filename)
 
- Public Member Functions inherited from OpenCVForUnity.DisposableObject
void Dispose ()
 
void ThrowIfDisposed ()
 

Static Public Member Functions

static new ObjectnessBING __fromPtr__ (IntPtr addr)
 
static ObjectnessBING create ()
 
- Static Public Member Functions inherited from OpenCVForUnity.SaliencyModule.Objectness
static new Objectness __fromPtr__ (IntPtr addr)
 
- Static Public Member Functions inherited from OpenCVForUnity.SaliencyModule.Saliency
static new Saliency __fromPtr__ (IntPtr addr)
 
- Static Public Member Functions inherited from OpenCVForUnity.CoreModule.Algorithm
static Algorithm __fromPtr__ (IntPtr addr)
 
- Static Public Member Functions inherited from OpenCVForUnity.DisposableObject
static IntPtr ThrowIfNullIntPtr (IntPtr ptr)
 

Protected Member Functions

override void Dispose (bool disposing)
 
- Protected Member Functions inherited from OpenCVForUnity.SaliencyModule.Objectness
- Protected Member Functions inherited from OpenCVForUnity.SaliencyModule.Saliency
override void Dispose (bool disposing)
 
- Protected Member Functions inherited from OpenCVForUnity.CoreModule.Algorithm
- Protected Member Functions inherited from OpenCVForUnity.DisposableOpenCVObject
 DisposableOpenCVObject ()
 
 DisposableOpenCVObject (bool isEnabledDispose)
 
 DisposableOpenCVObject (IntPtr ptr)
 
 DisposableOpenCVObject (IntPtr ptr, bool isEnabledDispose)
 
- Protected Member Functions inherited from OpenCVForUnity.DisposableObject
 DisposableObject ()
 
 DisposableObject (bool isEnabledDispose)
 

Additional Inherited Members

- Package Functions inherited from OpenCVForUnity.SaliencyModule.Objectness
- Package Functions inherited from OpenCVForUnity.SaliencyModule.Saliency
- Package Functions inherited from OpenCVForUnity.CoreModule.Algorithm
- Package Attributes inherited from OpenCVForUnity.DisposableOpenCVObject
- Properties inherited from OpenCVForUnity.DisposableObject
bool IsDisposed [get, protected set]
 
bool IsEnabledDispose [get, set]
 

Detailed Description

the Binarized normed gradients algorithm from [BING]

Member Function Documentation

◆ __fromPtr__()

static new ObjectnessBING OpenCVForUnity.SaliencyModule.ObjectnessBING.__fromPtr__ ( IntPtr addr)
static

◆ computeSaliency()

override bool OpenCVForUnity.SaliencyModule.ObjectnessBING.computeSaliency ( Mat image,
Mat saliencyMap )
virtual

Compute the saliency.

Parameters
imageThe image.
saliencyMapThe computed saliency map.
Returns
true if the saliency map is computed, false otherwise

Reimplemented from OpenCVForUnity.SaliencyModule.Saliency.

◆ create()

static ObjectnessBING OpenCVForUnity.SaliencyModule.ObjectnessBING.create ( )
static

◆ Dispose()

override void OpenCVForUnity.SaliencyModule.ObjectnessBING.Dispose ( bool disposing)
protectedvirtual

◆ getBase()

double OpenCVForUnity.SaliencyModule.ObjectnessBING.getBase ( )

◆ getNSS()

int OpenCVForUnity.SaliencyModule.ObjectnessBING.getNSS ( )

◆ getobjectnessValues()

MatOfFloat OpenCVForUnity.SaliencyModule.ObjectnessBING.getobjectnessValues ( )

Return the list of the rectangles' objectness value,.

in the same order as the vector<Vec4i> objectnessBoundingBox returned by the algorithm (in computeSaliencyImpl function). The bigger value these scores are, it is more likely to be an object window.

◆ getW()

int OpenCVForUnity.SaliencyModule.ObjectnessBING.getW ( )

◆ setBase()

void OpenCVForUnity.SaliencyModule.ObjectnessBING.setBase ( double val)

◆ setBBResDir()

void OpenCVForUnity.SaliencyModule.ObjectnessBING.setBBResDir ( string resultsDir)

This is a utility function that allows to set an arbitrary path in which the algorithm will save the optional results.

(ie writing on file the total number and the list of rectangles returned by objectess, one for each row).

Parameters
resultsDirresults' folder path

◆ setNSS()

void OpenCVForUnity.SaliencyModule.ObjectnessBING.setNSS ( int val)

◆ setTrainingPath()

void OpenCVForUnity.SaliencyModule.ObjectnessBING.setTrainingPath ( string trainingPath)

This is a utility function that allows to set the correct path from which the algorithm will load the trained model.

Parameters
trainingPathtrained model path

◆ setW()

void OpenCVForUnity.SaliencyModule.ObjectnessBING.setW ( int val)

The documentation for this class was generated from the following file: