OpenCV for Unity 2.6.4
Enox Software / Please refer to OpenCV official document ( http://docs.opencv.org/4.10.0/index.html ) for the details of the argument of the method.
|
class which provides a transient/moving areas segmentation module More...
Public Member Functions | |
void | clearAllBuffers () |
cleans all the buffers of the instance | |
void | getSegmentationPicture (Mat transientAreas) |
access function return the last segmentation result: a boolean picture which is resampled between 0 and 255 for a display purpose | |
Size | getSize () |
return the sze of the manage input and output images | |
double double height | getSizeAsValueTuple () |
Vec2d | getSizeAsVec2d () |
return the sze of the manage input and output images | |
string | printSetup () |
parameters setup display method | |
void | run (Mat inputToSegment) |
main processing method, get result using methods getSegmentationPicture() | |
void | run (Mat inputToSegment, int channelIndex) |
main processing method, get result using methods getSegmentationPicture() | |
void | setup () |
try to open an XML segmentation parameters file to adjust current segmentation instance setup | |
void | setup (string segmentationParameterFile) |
try to open an XML segmentation parameters file to adjust current segmentation instance setup | |
void | setup (string segmentationParameterFile, bool applyDefaultSetupOnFailure) |
try to open an XML segmentation parameters file to adjust current segmentation instance setup | |
void | write (string fs) |
write xml/yml formated parameters information | |
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 TransientAreasSegmentationModule | __fromPtr__ (IntPtr addr) |
static TransientAreasSegmentationModule | create (in Vec2d inputSize) |
allocator | |
static TransientAreasSegmentationModule | create (in(double width, double height) inputSize) |
allocator | |
static TransientAreasSegmentationModule | create (Size inputSize) |
allocator | |
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) |
Public Attributes | |
double | width |
return the sze of the manage input and output images | |
Protected Member Functions | |
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.CoreModule.Algorithm | |
Package Attributes inherited from OpenCVForUnity.DisposableOpenCVObject | |
Properties inherited from OpenCVForUnity.DisposableObject | |
bool | IsDisposed [get, protected set] |
bool | IsEnabledDispose [get, set] |
class which provides a transient/moving areas segmentation module
perform a locally adapted segmentation by using the retina magno input data Based on Alexandre BENOIT thesis: "Le système visuel humain au secours de la vision par ordinateur"
3 spatio temporal filters are used:
|
static |
void OpenCVForUnity.BioinspiredModule.TransientAreasSegmentationModule.clearAllBuffers | ( | ) |
cleans all the buffers of the instance
|
static |
allocator
inputSize | : size of the images input to segment (output will be the same size) |
|
static |
allocator
inputSize | : size of the images input to segment (output will be the same size) |
|
static |
allocator
inputSize | : size of the images input to segment (output will be the same size) |
|
protectedvirtual |
Reimplemented from OpenCVForUnity.CoreModule.Algorithm.
void OpenCVForUnity.BioinspiredModule.TransientAreasSegmentationModule.getSegmentationPicture | ( | Mat | transientAreas | ) |
access function return the last segmentation result: a boolean picture which is resampled between 0 and 255 for a display purpose
Size OpenCVForUnity.BioinspiredModule.TransientAreasSegmentationModule.getSize | ( | ) |
return the sze of the manage input and output images
double double height OpenCVForUnity.BioinspiredModule.TransientAreasSegmentationModule.getSizeAsValueTuple | ( | ) |
Vec2d OpenCVForUnity.BioinspiredModule.TransientAreasSegmentationModule.getSizeAsVec2d | ( | ) |
return the sze of the manage input and output images
string OpenCVForUnity.BioinspiredModule.TransientAreasSegmentationModule.printSetup | ( | ) |
parameters setup display method
void OpenCVForUnity.BioinspiredModule.TransientAreasSegmentationModule.run | ( | Mat | inputToSegment | ) |
main processing method, get result using methods getSegmentationPicture()
inputToSegment | : the image to process, it must match the instance buffer size ! |
channelIndex | : the channel to process in case of multichannel images |
void OpenCVForUnity.BioinspiredModule.TransientAreasSegmentationModule.run | ( | Mat | inputToSegment, |
int | channelIndex ) |
main processing method, get result using methods getSegmentationPicture()
inputToSegment | : the image to process, it must match the instance buffer size ! |
channelIndex | : the channel to process in case of multichannel images |
void OpenCVForUnity.BioinspiredModule.TransientAreasSegmentationModule.setup | ( | ) |
try to open an XML segmentation parameters file to adjust current segmentation instance setup
segmentationParameterFile | : the parameters filename |
applyDefaultSetupOnFailure | : set to true if an error must be thrown on error |
void OpenCVForUnity.BioinspiredModule.TransientAreasSegmentationModule.setup | ( | string | segmentationParameterFile | ) |
try to open an XML segmentation parameters file to adjust current segmentation instance setup
segmentationParameterFile | : the parameters filename |
applyDefaultSetupOnFailure | : set to true if an error must be thrown on error |
void OpenCVForUnity.BioinspiredModule.TransientAreasSegmentationModule.setup | ( | string | segmentationParameterFile, |
bool | applyDefaultSetupOnFailure ) |
try to open an XML segmentation parameters file to adjust current segmentation instance setup
segmentationParameterFile | : the parameters filename |
applyDefaultSetupOnFailure | : set to true if an error must be thrown on error |
void OpenCVForUnity.BioinspiredModule.TransientAreasSegmentationModule.write | ( | string | fs | ) |
write xml/yml formated parameters information
fs | : the filename of the xml file that will be open and writen with formatted parameters information |
double OpenCVForUnity.BioinspiredModule.TransientAreasSegmentationModule.width |
return the sze of the manage input and output images