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);
}
Aggregations