@Namespace(value="cv::bioinspired") public static class opencv_bioinspired.TransientAreasSegmentationModule extends opencv_core.Algorithm
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
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator| Constructor and Description |
|---|
TransientAreasSegmentationModule(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clearAllBuffers()
\brief cleans all the buffers of the instance
|
opencv_bioinspired.SegmentationParameters |
getParameters()
\brief return the current parameters setup
|
void |
getSegmentationPicture(opencv_core.Mat transientAreas)
\brief access function
|
void |
getSegmentationPicture(opencv_core.UMat transientAreas) |
opencv_core.Size |
getSize()
\brief return the sze of the manage input and output images
|
BytePointer |
printSetup()
\brief parameters setup display method
|
void |
run(opencv_core.Mat inputToSegment) |
void |
run(opencv_core.Mat inputToSegment,
int channelIndex)
\brief main processing method, get result using methods getSegmentationPicture()
|
void |
run(opencv_core.UMat inputToSegment) |
void |
run(opencv_core.UMat inputToSegment,
int channelIndex) |
void |
setup() |
void |
setup(BytePointer segmentationParameterFile,
boolean applyDefaultSetupOnFailure)
\brief try to open an XML segmentation parameters file to adjust current segmentation instance setup
|
void |
setup(opencv_bioinspired.SegmentationParameters newParameters)
\brief try to open an XML segmentation parameters file to adjust current segmentation instance setup
|
void |
setup(opencv_core.FileStorage fs) |
void |
setup(opencv_core.FileStorage fs,
boolean applyDefaultSetupOnFailure)
\brief try to open an XML segmentation parameters file to adjust current segmentation instance setup
|
void |
setup(String segmentationParameterFile,
boolean applyDefaultSetupOnFailure) |
void |
write(BytePointer fs)
\brief write xml/yml formated parameters information
|
void |
write(opencv_core.FileStorage fs)
\brief write xml/yml formated parameters information
|
void |
write(String fs) |
clear, empty, getDefaultName, position, read, save, saveaddress, asBuffer, asByteBuffer, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, free, hashCode, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, physicalBytes, position, put, realloc, setNull, sizeof, toString, totalBytes, withDeallocator, zeropublic TransientAreasSegmentationModule(Pointer p)
Pointer.Pointer(Pointer).@ByVal public opencv_core.Size getSize()
public void setup(@opencv_core.Str BytePointer segmentationParameterFile, @Cast(value="const bool") boolean applyDefaultSetupOnFailure)
- 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 filenameapplyDefaultSetupOnFailure - : set to true if an error must be thrown on errorpublic void setup()
public void setup(@opencv_core.Str String segmentationParameterFile, @Cast(value="const bool") boolean applyDefaultSetupOnFailure)
public void setup(@ByRef opencv_core.FileStorage fs, @Cast(value="const bool") boolean applyDefaultSetupOnFailure)
- 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 parametersapplyDefaultSetupOnFailure - : set to true if an error must be thrown on errorpublic void setup(@ByRef opencv_core.FileStorage fs)
public void setup(@ByVal opencv_bioinspired.SegmentationParameters newParameters)
- 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@ByVal public opencv_bioinspired.SegmentationParameters getParameters()
@opencv_core.Str public BytePointer printSetup()
public void write(@opencv_core.Str BytePointer fs)
fs - : the filename of the xml file that will be open and writen with formatted parameters informationpublic void write(@opencv_core.Str String fs)
public void write(@ByRef opencv_core.FileStorage fs)
write in class opencv_core.Algorithmfs - : a cv::Filestorage object ready to be filledpublic void run(@ByVal opencv_core.Mat inputToSegment, int channelIndex)
inputToSegment - : the image to process, it must match the instance buffer size !channelIndex - : the channel to process in case of multichannel imagespublic void run(@ByVal opencv_core.Mat inputToSegment)
public void run(@ByVal opencv_core.UMat inputToSegment, int channelIndex)
public void run(@ByVal opencv_core.UMat inputToSegment)
public void getSegmentationPicture(@ByVal opencv_core.Mat transientAreas)
public void getSegmentationPicture(@ByVal opencv_core.UMat transientAreas)
public void clearAllBuffers()
Copyright © 2017. All rights reserved.