OpenCV for Unity
2.6.3
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 | |
Size | getSize () |
return the sze of the manage input and output images More... | |
void | setup (string segmentationParameterFile, bool applyDefaultSetupOnFailure) |
try to open an XML segmentation parameters file to adjust current segmentation instance setup More... | |
void | setup (string segmentationParameterFile) |
try to open an XML segmentation parameters file to adjust current segmentation instance setup More... | |
void | setup () |
try to open an XML segmentation parameters file to adjust current segmentation instance setup More... | |
string | printSetup () |
parameters setup display method More... | |
void | write (string fs) |
write xml/yml formated parameters information More... | |
void | run (Mat inputToSegment, int channelIndex) |
main processing method, get result using methods getSegmentationPicture() More... | |
void | run (Mat inputToSegment) |
main processing method, get result using methods getSegmentationPicture() More... | |
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 More... | |
void | clearAllBuffers () |
cleans all the buffers of the instance More... | |
Public Member Functions inherited from OpenCVForUnity.CoreModule.Algorithm | |
IntPtr | getNativeObjAddr () |
virtual void | clear () |
Clears the algorithm state. More... | |
virtual bool | empty () |
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read. More... | |
void | save (string filename) |
virtual string | getDefaultName () |
Public Member Functions inherited from OpenCVForUnity.DisposableObject | |
void | Dispose () |
void | ThrowIfDisposed () |
Static Public Member Functions | |
static new TransientAreasSegmentationModule | __fromPtr__ (IntPtr addr) |
static TransientAreasSegmentationModule | create (Size inputSize) |
allocator More... | |
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.DisposableOpenCVObject | |
DisposableOpenCVObject () | |
DisposableOpenCVObject (IntPtr ptr) | |
DisposableOpenCVObject (bool isEnabledDispose) | |
DisposableOpenCVObject (IntPtr ptr, bool isEnabledDispose) | |
Protected Member Functions inherited from OpenCVForUnity.DisposableObject | |
DisposableObject () | |
DisposableObject (bool isEnabledDispose) | |
Additional Inherited Members | |
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) |
|
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
string OpenCVForUnity.BioinspiredModule.TransientAreasSegmentationModule.printSetup | ( | ) |
parameters setup display method
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.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.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.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 | ( | ) |
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 |