public static final class SEEngine.SESeparation
extends com.neurotec.lang.NAbstractObjectPart
| Modifier and Type | Field and Description |
|---|---|
static int |
PARAMETER_USE_ADAPTIVE_ALG
Sets a parameter to use an adaptive algorithm for separation.
If value is NTrue the separation algorithm automatically adapts to changing lighting conditions. |
| Modifier and Type | Method and Description |
|---|---|
SEEngine.AccumulateBackgroundResult |
accumulateBackground(com.neurotec.images.NImage image)
Accumulates background for foreground/background separation process.
|
Dimension |
getImageSize()
Image size used in whole separation process.
The image size must be set before starting background accumulation (first step of foreground/background separation process). |
int |
getObjectModelSize()
Gets a minimum size of buffer needed to save a colour model aggregated
using Separate method.
|
int |
getObjectModelSize(int flags)
Gets a minimum size of buffer needed to save a colour model aggregated
using Separate method.
|
boolean |
getUseAdaptiveAlg()
Indicates whether to use adaptive algorithm.
|
int |
loadHolderModel(ByteBuffer buffer)
Loads holder model from memory buffer.
Foreground/background separation method separate is able to exclude a holder (a hand or a stick which holds the object) from the object and consider it as background. In the beginning, a colour model of the holder must be learnt. |
int |
loadHolderModel(com.neurotec.io.NBuffer buffer)
Loads holder model from memory buffer.
Foreground/background separation method separate is able to exclude a holder (a hand or a stick which holds the object) from the object and consider it as background. In the beginning, a colour model of the holder must be learnt. |
int |
loadHolderModel(com.neurotec.io.NBuffer buffer,
int flags)
Loads holder model from memory buffer.
Foreground/background separation method separate is able to exclude a holder (a hand or a stick which holds the object) from the object and consider it as background. In the beginning, a colour model of the holder must be learnt. |
int |
loadObjectModel(ByteBuffer buffer)
Loads separation model from memory buffer.
|
int |
loadObjectModel(com.neurotec.io.NBuffer buffer)
Loads separation model from NBuffer.
|
int |
loadObjectModel(com.neurotec.io.NBuffer buffer,
int flags)
Loads separation model from NBuffer.
|
void |
resetBackgroundModel()
Resets current background model.
Foreground/background separation method separate keeps an accumulated background model (built with cccumulateBackground method). |
void |
resetHolderModel()
Resets current holder model.
Foreground/background separation method separate is able to exclude a holder (a hand or a stick which holds the object) from the object and consider it as background. |
void |
resetObjectModel()
Resets current object model.
Foreground/background separation method separate builds a colour model of the object. |
com.neurotec.io.NBuffer |
saveObjectModel()
Writes object's colour model into memory buffer.
Foreground/background separation method separate builds a colour model of the object. |
int |
saveObjectModel(ByteBuffer buffer)
Writes object's colour model into memory buffer.
Foreground/background separation method separate builds a colour model of the object. |
int |
saveObjectModel(ByteBuffer buffer,
int flags)
Writes object's colour model into memory buffer.
Foreground/background separation method separate builds a colour model of the object. |
com.neurotec.io.NBuffer |
saveObjectModel(int flags) |
int |
saveObjectModel(com.neurotec.io.NBuffer buffer)
Writes object's colour model into NBuffer.
Foreground/background separation method separate builds a colour model of the object. |
int |
saveObjectModel(com.neurotec.io.NBuffer buffer,
int flags)
Writes object's colour model into NBuffer.
Foreground/background separation method separate builds a colour model of the object. |
SEEngine.SeparateResult |
separate(com.neurotec.images.NImage image)
Separates foreground (an object) from background and extracts image mask
which can be used in object learning (SELearning.AddToModel methods).
|
void |
setImageSize(Dimension value)
Image size used in whole separation process.
The image size must be set before starting background accumulation (first step of foreground/background separation process). |
void |
setUseAdaptiveAlg(boolean useAdaptiveAlg)
Indicates whether to use adaptive algorithm.
|
public static final int PARAMETER_USE_ADAPTIVE_ALG
public SEEngine.AccumulateBackgroundResult accumulateBackground(com.neurotec.images.NImage image)
image - An image of background. It is a current image of background
for accumulation. The image should have the same size as it was set via
setImageSize. Also, it should be 3 channels RGB colour image.public int getObjectModelSize()
public int getObjectModelSize(int flags)
flags - Flags controlling method. Reserved for future use. Must be 0.public SEEngine.SeparateResult separate(com.neurotec.images.NImage image)
image - An image of the object to be separated. It should be the
same size as value, returned by getImageSize. Also, the image should be a
3 channels RGB colour image.public int loadObjectModel(ByteBuffer buffer)
buffer - ByteBuffer which contains separation model.public int loadObjectModel(com.neurotec.io.NBuffer buffer)
buffer - NBuffer which contains separation model.public int loadObjectModel(com.neurotec.io.NBuffer buffer,
int flags)
buffer - NBuffer which contains separation model.flags - Flags controlling the method. Reserved for future use. Must be 0.public int saveObjectModel(ByteBuffer buffer)
buffer - A buffer where data of the colour model will be written.
The buffer must be allocated before calling this method. Buffer's size must
not be smaller than model's size (SEModel.getSize).public int saveObjectModel(ByteBuffer buffer, int flags)
buffer - A buffer where data of the colour model will be written.
The buffer must be allocated before calling this method. Buffer's size must
not be smaller than model's size (SEModel.getSize).flags - Flags controlling the method. Reserved for future use. Must
be 0.public int saveObjectModel(com.neurotec.io.NBuffer buffer)
buffer - A NBuffer where data of the colour model will be written.
The buffer must be allocated before calling this method. Buffer's size must
not be smaller than model's size (SEModel.getSize).public int saveObjectModel(com.neurotec.io.NBuffer buffer,
int flags)
buffer - A NBuffer where data of the colour model will be written.
The buffer must be allocated before calling this method. Buffer's size must
not be smaller than model's size (SEModel.getSize).flags - Flags controlling the method. Reserved for future use. Must
be 0.public com.neurotec.io.NBuffer saveObjectModel()
public com.neurotec.io.NBuffer saveObjectModel(int flags)
public int loadHolderModel(ByteBuffer buffer)
buffer - A data buffer containing a colour model of the holder.public int loadHolderModel(com.neurotec.io.NBuffer buffer)
buffer - NBuffer containing a colour model of the holder.public int loadHolderModel(com.neurotec.io.NBuffer buffer,
int flags)
buffer - NBuffer containing a colour model of the holder.flags - Flags controlling the method. Reserved for future use. Must
be 0.public void resetHolderModel()
public void resetBackgroundModel()
public void resetObjectModel()
public Dimension getImageSize()
public void setImageSize(Dimension value)
Image - size.public boolean getUseAdaptiveAlg()
public void setUseAdaptiveAlg(boolean useAdaptiveAlg)
A - boolean type value indicating whether to use adaptive algorithm.Copyright © 2016 Neurotechnology. All rights reserved.