init method

void init(
  1. InputArray image,
  2. Rect boundingBox
)

Implementation

void init(InputArray image, Rect boundingBox) {
  cvAssert(boundingBox.x >= 0, "boundingBox.x must be >= 0");
  cvAssert(boundingBox.y >= 0, "boundingBox.y must be >= 0");
  cvAssert(
    boundingBox.right <= image.cols,
    "boundingBox.right=${boundingBox.right} must be <= image.cols=${image.cols}",
  );
  cvAssert(
    boundingBox.bottom <= image.rows,
    "boundingBox.bottom=${boundingBox.bottom} must be <= image.rows=${image.rows}",
  );

  cvRun(() => cvideo.cv_TrackerMIL_init(ref, image.ref, boundingBox.ref, ffi.nullptr));
}