MpInteractiveSegmenterLegacySegmentImage function

MpStatus MpInteractiveSegmenterLegacySegmentImage(
  1. MpInteractiveSegmenterLegacyPtr segmenter,
  2. MpImagePtr image,
  3. Pointer<MpRegionOfInterest> roi,
  4. Pointer<MpImageProcessingOptions> image_processing_options,
  5. Pointer<MpImageSegmenterResult> result,
  6. Pointer<Pointer<Char>> error_msg,
)

Implementation

MpStatus MpInteractiveSegmenterLegacySegmentImage(
  MpInteractiveSegmenterLegacyPtr segmenter,
  MpImagePtr image,
  ffi.Pointer<MpRegionOfInterest> roi,
  ffi.Pointer<MpImageProcessingOptions> image_processing_options,
  ffi.Pointer<MpImageSegmenterResult> result,
  ffi.Pointer<ffi.Pointer<ffi.Char>> error_msg,
) {
  return MpStatus.fromValue(
    _MpInteractiveSegmenterLegacySegmentImage(
      segmenter,
      image,
      roi,
      image_processing_options,
      result,
      error_msg,
    ),
  );
}