Search in sources :

Example 1 with SparseFlowObjectTracker

use of boofcv.alg.tracker.sfot.SparseFlowObjectTracker in project BoofCV by lessthanoptimal.

the class TestSfot_to_TrackObjectQuad method create.

@Override
public TrackerObjectQuad<GrayU8> create(ImageType<GrayU8> imageType) {
    Class ct = ImageDataType.typeToSingleClass(imageType.getDataType());
    Class dt = GImageDerivativeOps.getDerivativeType(ct);
    ImageGradient gradient = FactoryDerivative.sobel(ct, dt);
    SfotConfig config = new SfotConfig();
    SparseFlowObjectTracker tracker = new SparseFlowObjectTracker(config, ct, dt, gradient);
    return new Sfot_to_TrackObjectQuad(tracker, ct);
}
Also used : SfotConfig(boofcv.alg.tracker.sfot.SfotConfig) SparseFlowObjectTracker(boofcv.alg.tracker.sfot.SparseFlowObjectTracker) ImageGradient(boofcv.abst.filter.derivative.ImageGradient)

Aggregations

ImageGradient (boofcv.abst.filter.derivative.ImageGradient)1 SfotConfig (boofcv.alg.tracker.sfot.SfotConfig)1 SparseFlowObjectTracker (boofcv.alg.tracker.sfot.SparseFlowObjectTracker)1