remap function

VARP remap(
  1. VARP src,
  2. VARP map1,
  3. VARP map2,
  4. int interpolation, {
  5. int borderMode = BORDER_CONSTANT,
  6. int borderValue = 0,
})

src need float, NC4HW4, dims = 4

Implementation

VARP remap(
  VARP src,
  VARP map1,
  VARP map2,
  int interpolation, {
  int borderMode = BORDER_CONSTANT,
  int borderValue = 0,
}) {
  final pOut = c.mnn_cv_remap(src.ptr, map1.ptr, map2.ptr, interpolation, borderMode, borderValue);
  final rval = VARP.fromPointer(pOut);
  return rval;
}