public class TransientAreasSegmentationModule extends Algorithm
Modifier | Constructor and Description |
---|---|
protected |
TransientAreasSegmentationModule(long addr) |
Modifier and Type | Method and Description |
---|---|
static TransientAreasSegmentationModule |
__fromPtr__(long addr) |
void |
clearAllBuffers()
cleans all the buffers of the instance
|
static TransientAreasSegmentationModule |
create(Size inputSize)
allocator
|
protected void |
finalize() |
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
|
Size |
getSize()
return the sze of the manage input and output images
|
String |
printSetup()
parameters setup display method
|
void |
run(Mat inputToSegment)
main processing method, get result using methods getSegmentationPicture()
|
void |
run(Mat inputToSegment,
int channelIndex)
main processing method, get result using methods getSegmentationPicture()
|
void |
setup()
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
|
void |
setup(String segmentationParameterFile)
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
|
void |
setup(String segmentationParameterFile,
boolean 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
|
void |
write(String fs)
write xml/yml formated parameters information
|
clear, empty, getDefaultName, getNativeObjAddr, save
protected TransientAreasSegmentationModule(long addr)
public static TransientAreasSegmentationModule __fromPtr__(long addr)
public static TransientAreasSegmentationModule create(Size inputSize)
inputSize
- : size of the images input to segment (output will be the same size)public Size getSize()
public String printSetup()
public void clearAllBuffers()
public void getSegmentationPicture(Mat transientAreas)
transientAreas
- automatically generatedpublic void run(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(Mat inputToSegment)
inputToSegment
- : the image to process, it must match the instance buffer size !public void setup(String segmentationParameterFile, boolean applyDefaultSetupOnFailure)
segmentationParameterFile
- : the parameters filenameapplyDefaultSetupOnFailure
- : set to true if an error must be thrown on error
public void setup(String segmentationParameterFile)
segmentationParameterFile
- : the parameters filename
public void setup()
public void write(String fs)
fs
- : the filename of the xml file that will be open and writen with formatted parameters informationGenerated on Wed Oct 9 2019 23:24:43 UTC / OpenCV 4.1.2