GScalar.fromScalar constructor

GScalar.fromScalar(
  1. Scalar s
)

Implementation

factory GScalar.fromScalar(Scalar s) {
  final p = calloc<cvg.GScalar>();
  cvRun(() => cgapi.gapi_GScalar_New_FromScalar(s.ref, p));
  return GScalar.fromPointer(p);
}