@Namespace(value="cv::bioinspired") @Properties(inherit=opencv_bioinspired.class) public class TransientAreasSegmentationModule extends 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, Pointer.ReferenceCounter
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
|
static TransientAreasSegmentationModule |
create(Size inputSize)
\brief allocator
|
SegmentationParameters |
getParameters()
\brief return the current parameters setup
|
void |
getSegmentationPicture(GpuMat transientAreas) |
void |
getSegmentationPicture(Mat transientAreas)
\brief access function
return the last segmentation result: a boolean picture which is resampled between 0 and 255 for a display purpose
|
void |
getSegmentationPicture(UMat transientAreas) |
Size |
getSize()
\brief return the sze of the manage input and output images
|
BytePointer |
printSetup()
\brief parameters setup display method
|
void |
run(GpuMat inputToSegment) |
void |
run(GpuMat inputToSegment,
int channelIndex) |
void |
run(Mat inputToSegment) |
void |
run(Mat inputToSegment,
int channelIndex)
\brief main processing method, get result using methods getSegmentationPicture()
|
void |
run(UMat inputToSegment) |
void |
run(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(FileStorage fs) |
void |
setup(FileStorage fs,
boolean applyDefaultSetupOnFailure)
\brief try to open an XML segmentation parameters file to adjust current segmentation instance setup
|
void |
setup(SegmentationParameters newParameters)
\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(FileStorage fs)
\brief write xml/yml formated parameters information
|
void |
write(String fs) |
clear, empty, getDefaultName, position, read, save, save, write, write
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, hashCode, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, parseBytes, physicalBytes, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, toString, totalBytes, totalPhysicalBytes, withDeallocator, zero
public TransientAreasSegmentationModule(Pointer p)
Pointer.Pointer(Pointer)
.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 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 FileStorage fs)
public void setup(@ByVal 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 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 FileStorage fs)
public void run(@ByVal 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 getSegmentationPicture(@ByVal Mat transientAreas)
public void clearAllBuffers()
@opencv_core.Ptr public static TransientAreasSegmentationModule create(@ByVal Size inputSize)
inputSize
- : size of the images input to segment (output will be the same size)Copyright © 2020. All rights reserved.