public class SyntheticSequenceGenerator extends Algorithm
Modifier | Constructor and Description |
---|---|
protected |
SyntheticSequenceGenerator(long addr) |
|
SyntheticSequenceGenerator(Mat background,
Mat object,
double amplitude,
double wavelength,
double wavespeed,
double objspeed)
Creates an instance of SyntheticSequenceGenerator.
|
Modifier and Type | Method and Description |
---|---|
static SyntheticSequenceGenerator |
__fromPtr__(long addr) |
protected void |
finalize() |
void |
getNextFrame(Mat frame,
Mat gtMask)
Obtain the next frame in the sequence.
|
clear, empty, getDefaultName, getNativeObjAddr, save
protected SyntheticSequenceGenerator(long addr)
public SyntheticSequenceGenerator(Mat background, Mat object, double amplitude, double wavelength, double wavespeed, double objspeed)
background
- Background image for object.object
- Object image which will move slowly over the background.amplitude
- Amplitude of wave distortion applied to background.wavelength
- Length of waves in distortion applied to background.wavespeed
- How fast waves will move.objspeed
- How fast object will fly over background.public static SyntheticSequenceGenerator __fromPtr__(long addr)
public void getNextFrame(Mat frame, Mat gtMask)
frame
- Output frame.gtMask
- Output ground-truth (reference) segmentation mask object/background.Copyright © 2020. All rights reserved.