OpenCV  4.1.0
Open Source Computer Vision
Public Member Functions | Static Public Member Functions | List of all members
cv::bioinspired::TransientAreasSegmentationModule Class Referenceabstract

class which provides a transient/moving areas segmentation module More...

#include <opencv2/bioinspired/transientareassegmentationmodule.hpp>

Inheritance diagram for cv::bioinspired::TransientAreasSegmentationModule:
cv::Algorithm

Public Member Functions

virtual void clearAllBuffers ()=0
 cleans all the buffers of the instance
 
virtual SegmentationParameters getParameters ()=0
 return the current parameters setup
 
virtual void getSegmentationPicture (OutputArray transientAreas)=0
 access function
 
virtual Size getSize ()=0
 return the sze of the manage input and output images
 
virtual const String printSetup ()=0
 parameters setup display method
 
virtual void run (InputArray inputToSegment, const int channelIndex=0)=0
 main processing method, get result using methods getSegmentationPicture()
 
virtual void setup (String segmentationParameterFile="", const bool applyDefaultSetupOnFailure=true)=0
 try to open an XML segmentation parameters file to adjust current segmentation instance setup
 
virtual void setup (cv::FileStorage &fs, const bool applyDefaultSetupOnFailure=true)=0
 try to open an XML segmentation parameters file to adjust current segmentation instance setup
 
virtual void setup (SegmentationParameters newParameters)=0
 try to open an XML segmentation parameters file to adjust current segmentation instance setup
 
virtual void write (String fs) const =0
 write xml/yml formated parameters information
 
virtual void write (cv::FileStorage &fs) const CV_OVERRIDE=0
 write xml/yml formated parameters information
 
- Public Member Functions inherited from cv::Algorithm
 Algorithm ()
 
virtual ~Algorithm ()
 
virtual void clear ()
 Clears the algorithm state.
 
virtual bool empty () const
 Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read.
 
virtual String getDefaultName () const
 
virtual void read (const FileNode &fn)
 Reads algorithm parameters from a file storage.
 
virtual void save (const String &filename) const
 
void write (const Ptr< FileStorage > &fs, const String &name=String()) const
 simplified API for language bindingsThis is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 

Static Public Member Functions

static Ptr
< TransientAreasSegmentationModule
create (Size inputSize)
 allocator
 
- Static Public Member Functions inherited from cv::Algorithm
template<typename _Tp >
static Ptr< _Tp > load (const String &filename, const String &objname=String())
 Loads algorithm from the file.
 
template<typename _Tp >
static Ptr< _Tp > loadFromString (const String &strModel, const String &objname=String())
 Loads algorithm from a String.
 
template<typename _Tp >
static Ptr< _Tp > read (const FileNode &fn)
 Reads algorithm from the file node.
 

Additional Inherited Members

- Protected Member Functions inherited from cv::Algorithm
void writeFormat (FileStorage &fs) const
 

Detailed Description

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:

Member Function Documentation

virtual void cv::bioinspired::TransientAreasSegmentationModule::clearAllBuffers ( )
pure virtual
Python:
None=cv.bioinspired_TransientAreasSegmentationModule.clearAllBuffers()

cleans all the buffers of the instance

static Ptr<TransientAreasSegmentationModule> cv::bioinspired::TransientAreasSegmentationModule::create ( Size  inputSize)
static
Python:
retval=cv.bioinspired.TransientAreasSegmentationModule_create(inputSize)

allocator

Parameters
inputSize: size of the images input to segment (output will be the same size)
virtual SegmentationParameters cv::bioinspired::TransientAreasSegmentationModule::getParameters ( )
pure virtual

return the current parameters setup

virtual void cv::bioinspired::TransientAreasSegmentationModule::getSegmentationPicture ( OutputArray  transientAreas)
pure virtual
Python:
transientAreas=cv.bioinspired_TransientAreasSegmentationModule.getSegmentationPicture([, transientAreas])

access function

Returns
the last segmentation result: a boolean picture which is resampled between 0 and 255 for a display purpose
virtual Size cv::bioinspired::TransientAreasSegmentationModule::getSize ( )
pure virtual
Python:
retval=cv.bioinspired_TransientAreasSegmentationModule.getSize()

return the sze of the manage input and output images

virtual const String cv::bioinspired::TransientAreasSegmentationModule::printSetup ( )
pure virtual
Python:
retval=cv.bioinspired_TransientAreasSegmentationModule.printSetup()

parameters setup display method

Returns
a string which contains formatted parameters information
virtual void cv::bioinspired::TransientAreasSegmentationModule::run ( InputArray  inputToSegment,
const int  channelIndex = 0 
)
pure virtual
Python:
None=cv.bioinspired_TransientAreasSegmentationModule.run(inputToSegment[, channelIndex])

main processing method, get result using methods getSegmentationPicture()

Parameters
inputToSegment: the image to process, it must match the instance buffer size !
channelIndex: the channel to process in case of multichannel images
virtual void cv::bioinspired::TransientAreasSegmentationModule::setup ( String  segmentationParameterFile = "",
const bool  applyDefaultSetupOnFailure = true 
)
pure virtual
Python:
None=cv.bioinspired_TransientAreasSegmentationModule.setup([, segmentationParameterFile[, applyDefaultSetupOnFailure]])

try to open an XML segmentation parameters file to adjust current segmentation instance setup

  • if the xml file does not exist, then default setup is applied
  • warning, Exceptions are thrown if read XML file is not valid
    Parameters
    segmentationParameterFile: the parameters filename
    applyDefaultSetupOnFailure: set to true if an error must be thrown on error
virtual void cv::bioinspired::TransientAreasSegmentationModule::setup ( cv::FileStorage fs,
const bool  applyDefaultSetupOnFailure = true 
)
pure virtual
Python:
None=cv.bioinspired_TransientAreasSegmentationModule.setup([, segmentationParameterFile[, applyDefaultSetupOnFailure]])

try to open an XML segmentation parameters file to adjust current segmentation instance setup

  • if the xml file does not exist, then default setup is applied
  • warning, Exceptions are thrown if read XML file is not valid
    Parameters
    fs: the open Filestorage which contains segmentation parameters
    applyDefaultSetupOnFailure: set to true if an error must be thrown on error
virtual void cv::bioinspired::TransientAreasSegmentationModule::setup ( SegmentationParameters  newParameters)
pure virtual
Python:
None=cv.bioinspired_TransientAreasSegmentationModule.setup([, segmentationParameterFile[, applyDefaultSetupOnFailure]])

try to open an XML segmentation parameters file to adjust current segmentation instance setup

  • if the xml file does not exist, then default setup is applied
  • warning, Exceptions are thrown if read XML file is not valid
    Parameters
    newParameters: a parameters structures updated with the new target configuration
virtual void cv::bioinspired::TransientAreasSegmentationModule::write ( String  fs) const
pure virtual
Python:
None=cv.bioinspired_TransientAreasSegmentationModule.write(fs)

write xml/yml formated parameters information

Parameters
fs: the filename of the xml file that will be open and writen with formatted parameters information
virtual void cv::bioinspired::TransientAreasSegmentationModule::write ( cv::FileStorage fs) const
pure virtual
Python:
None=cv.bioinspired_TransientAreasSegmentationModule.write(fs)

write xml/yml formated parameters information

Parameters
fs: a cv::Filestorage object ready to be filled

Reimplemented from cv::Algorithm.


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