Class cv::bioinspired::TransientAreasSegmentationModule#

class which provides a transient/moving areas segmentation module View details

Collaboration diagram for cv::bioinspired::TransientAreasSegmentationModule:

Public Member Functions#

Public Member Functions inherited from cv::Algorithm

Return

Name

Description

Algorithm()

~Algorithm()

void

clear()

Clears the algorithm state.

bool

empty()

Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read.

String

getDefaultName()

void

read(const FileNode & fn)

Reads algorithm parameters from a file storage.

void

save(const String & filename)

void

write(
    const Ptr< FileStorage > & fs,
    const String & name = String() )

void

write(FileStorage & fs)

Stores algorithm parameters in a file storage.

void

write(
    FileStorage & fs,
    const String & name )

Static Public Member Functions#

Static Public Member Functions inherited from cv::Algorithm

Return

Name

Description

static Ptr< _Tp >

load(
    const String & filename,
    const String & objname = String() )

Loads algorithm from the file.

static Ptr< _Tp >

loadFromString(
    const String & strModel,
    const String & objname = String() )

Loads algorithm from a String.

static Ptr< _Tp >

read(const FileNode & fn)

Reads algorithm from the file node.

Additional Inherited Members#

Protected Member Functions inherited from cv::Algorithm

Return

Name

Description

void

writeFormat(FileStorage & fs)

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:

  • a first one which filters the noise and local variations of the input motion energy

  • a second (more powerfull low pass spatial filter) which gives the neighborhood motion energy the segmentation consists in the comparison of these both outputs, if the local motion energy is higher to the neighborhood otion energy, then the area is considered as moving and is segmented

  • a stronger third low pass filter helps decision by providing a smooth information about the “motion context” in a wider area

Member Function Documentation#

clearAllBuffers()#

void cv::bioinspired::TransientAreasSegmentationModule::clearAllBuffers()

Python:

cv.bioinspired.TransientAreasSegmentationModule.clearAllBuffers()

cleans all the buffers of the instance

getParameters()#

SegmentationParameters cv::bioinspired::TransientAreasSegmentationModule::getParameters()

return the current parameters setup

getSegmentationPicture()#

void cv::bioinspired::TransientAreasSegmentationModule::getSegmentationPicture(OutputArray transientAreas)

Python:

cv.bioinspired.TransientAreasSegmentationModule.getSegmentationPicture([, transientAreas]) -> transientAreas

access function return the last segmentation result: a boolean picture which is resampled between 0 and 255 for a display purpose

getSize()#

Size cv::bioinspired::TransientAreasSegmentationModule::getSize()

Python:

cv.bioinspired.TransientAreasSegmentationModule.getSize() -> retval

return the sze of the manage input and output images

printSetup()#

String cv::bioinspired::TransientAreasSegmentationModule::printSetup()

Python:

cv.bioinspired.TransientAreasSegmentationModule.printSetup() -> retval

parameters setup display method

Returns

a string which contains formatted parameters information

run()#

void cv::bioinspired::TransientAreasSegmentationModule::run(
InputArray inputToSegment,
const int channelIndex = 0 )

Python:

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

setup()#

void cv::bioinspired::TransientAreasSegmentationModule::setup(
cv::FileStorage & fs,
const bool applyDefaultSetupOnFailure = true )

Python:

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

fs

: the open Filestorage which contains segmentation parameters

applyDefaultSetupOnFailure

: set to true if an error must be thrown on error

setup()#

void cv::bioinspired::TransientAreasSegmentationModule::setup(SegmentationParameters newParameters)

Python:

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

newParameters

: a parameters structures updated with the new target configuration

setup()#

void cv::bioinspired::TransientAreasSegmentationModule::setup(
String segmentationParameterFile = “”,
const bool applyDefaultSetupOnFailure = true )

Python:

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

segmentationParameterFile

: the parameters filename

applyDefaultSetupOnFailure

: set to true if an error must be thrown on error

write()#

void cv::bioinspired::TransientAreasSegmentationModule::write(cv::FileStorage & fs)

Python:

cv.bioinspired.TransientAreasSegmentationModule.write(fs)

write xml/yml formated parameters information

Parameters

  • fs — : a cv::Filestorage object ready to be filled

write()#

void cv::bioinspired::TransientAreasSegmentationModule::write(String fs)

Python:

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

create()#

static Ptr< TransientAreasSegmentationModule > cv::bioinspired::TransientAreasSegmentationModule::create(Size inputSize)

Python:

cv.bioinspired.TransientAreasSegmentationModule.create(inputSize) -> retval
cv.bioinspired.TransientAreasSegmentationModule_create(inputSize) -> retval

allocator

Parameters

  • inputSize — : size of the images input to segment (output will be the same size)

Source file#

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