@@ -74,7 +74,8 @@ class AKAZE extends CvStruct<cfeatures2d.AKAZE> {
74
74
75
75
/// AgastFeatureDetector is a wrapper around the cv::AgastFeatureDetector.
76
76
class AgastFeatureDetector extends CvStruct <cfeatures2d.AgastFeatureDetector > {
77
- AgastFeatureDetector ._(cfeatures2d.AgastFeatureDetectorPtr ptr, [bool attach = true ]) : super .fromPointer (ptr) {
77
+ AgastFeatureDetector ._(cfeatures2d.AgastFeatureDetectorPtr ptr, [bool attach = true ])
78
+ : super .fromPointer (ptr) {
78
79
if (attach) {
79
80
finalizer.attach (this , ptr.cast (), detach: this );
80
81
}
@@ -184,7 +185,8 @@ enum FastFeatureDetectorType {
184
185
185
186
/// FastFeatureDetector is a wrapper around the cv::FastFeatureDetector.
186
187
class FastFeatureDetector extends CvStruct <cfeatures2d.FastFeatureDetector > {
187
- FastFeatureDetector ._(cfeatures2d.FastFeatureDetectorPtr ptr, [bool attach = true ]) : super .fromPointer (ptr) {
188
+ FastFeatureDetector ._(cfeatures2d.FastFeatureDetectorPtr ptr, [bool attach = true ])
189
+ : super .fromPointer (ptr) {
188
190
if (attach) {
189
191
finalizer.attach (this , ptr.cast (), detach: this );
190
192
}
@@ -269,7 +271,9 @@ class GFTTDetector extends CvStruct<cfeatures2d.GFTTDetector> {
269
271
return ret;
270
272
}
271
273
272
- static final finalizer = OcvFinalizer <cfeatures2d.GFTTDetectorPtr >(cfeatures2d.addresses.cv_GFTTDetector_close);
274
+ static final finalizer = OcvFinalizer <cfeatures2d.GFTTDetectorPtr >(
275
+ cfeatures2d.addresses.cv_GFTTDetector_close,
276
+ );
273
277
274
278
void dispose () {
275
279
finalizer.detach (this );
@@ -542,27 +546,28 @@ class SimpleBlobDetectorParams extends CvStruct<cfeatures2d.SimpleBlobDetectorPa
542
546
return SimpleBlobDetectorParams ._(p);
543
547
}
544
548
545
- factory SimpleBlobDetectorParams .fromNative (cfeatures2d.SimpleBlobDetectorParams r) => SimpleBlobDetectorParams (
546
- blobColor: r.blobColor,
547
- filterByArea: r.filterByArea,
548
- filterByCircularity: r.filterByCircularity,
549
- filterByColor: r.filterByColor,
550
- filterByConvexity: r.filterByConvexity,
551
- filterByInertia: r.filterByInertia,
552
- maxArea: r.maxArea,
553
- maxCircularity: r.maxCircularity,
554
- maxConvexity: r.maxConvexity,
555
- maxInertiaRatio: r.maxInertiaRatio,
556
- maxThreshold: r.maxThreshold,
557
- minArea: r.minArea,
558
- minCircularity: r.minCircularity,
559
- minConvexity: r.minConvexity,
560
- minDistBetweenBlobs: r.minDistBetweenBlobs,
561
- minInertiaRatio: r.minInertiaRatio,
562
- minRepeatability: r.minRepeatability,
563
- minThreshold: r.minThreshold,
564
- thresholdStep: r.thresholdStep,
565
- );
549
+ factory SimpleBlobDetectorParams .fromNative (cfeatures2d.SimpleBlobDetectorParams r) =>
550
+ SimpleBlobDetectorParams (
551
+ blobColor: r.blobColor,
552
+ filterByArea: r.filterByArea,
553
+ filterByCircularity: r.filterByCircularity,
554
+ filterByColor: r.filterByColor,
555
+ filterByConvexity: r.filterByConvexity,
556
+ filterByInertia: r.filterByInertia,
557
+ maxArea: r.maxArea,
558
+ maxCircularity: r.maxCircularity,
559
+ maxConvexity: r.maxConvexity,
560
+ maxInertiaRatio: r.maxInertiaRatio,
561
+ maxThreshold: r.maxThreshold,
562
+ minArea: r.minArea,
563
+ minCircularity: r.minCircularity,
564
+ minConvexity: r.minConvexity,
565
+ minDistBetweenBlobs: r.minDistBetweenBlobs,
566
+ minInertiaRatio: r.minInertiaRatio,
567
+ minRepeatability: r.minRepeatability,
568
+ minThreshold: r.minThreshold,
569
+ thresholdStep: r.thresholdStep,
570
+ );
566
571
factory SimpleBlobDetectorParams .fromPointer (
567
572
ffi.Pointer <cfeatures2d.SimpleBlobDetectorParams > p, [
568
573
bool attach = true ,
@@ -711,7 +716,8 @@ class BFMatcher extends CvStruct<cfeatures2d.BFMatcher> {
711
716
finalizer.attach (this , ptr.cast (), detach: this );
712
717
}
713
718
}
714
- factory BFMatcher .fromPointer (cfeatures2d.BFMatcherPtr ptr, [bool attach = true ]) => BFMatcher ._(ptr, attach);
719
+ factory BFMatcher .fromPointer (cfeatures2d.BFMatcherPtr ptr, [bool attach = true ]) =>
720
+ BFMatcher ._(ptr, attach);
715
721
716
722
/// returns a new BFMatcher algorithm
717
723
///
0 commit comments