getLandmarks method Null safety
Get anthropometric landmarks. Only frontal samples.
return
- The vector of anthropometric points in the original image.
Implementation
List<double> getLandmarks(){
final exception = _getException();
final get = _dll_handle.lookupFunction<_RSgetLandmarks_c, _RSgetLandmarks_dart>
(_c_namespace + 'RawSample_getLandmarks');
PointerBuffer<Float> buffer = PointerBuffer<Float>.empty(sizeOf<Float>());
get(
this._impl,
buffer.ptr.cast(),
Pointer.fromFunction(WrapBytesWrite.writeFloatListFunc),
exception);
checkException(exception, _dll_handle);
Float32List list = buffer.dataPtr<Float>().asTypedList(buffer.length);
List<double> returnVal = List<double>.from(list);
buffer.dispose();
return returnVal;
}