testUnpackLandmarks function

  1. @visibleForTesting
List<List<double>> testUnpackLandmarks(
  1. Float32List flat,
  2. int inW,
  3. int inH,
  4. List<double> padding, {
  5. bool clamp = true,
  6. bool normalizeZ = false,
})

Test-only: exposes the private landmark-unpacking logic for unit tests.

Implementation

@visibleForTesting
List<List<double>> testUnpackLandmarks(
  Float32List flat,
  int inW,
  int inH,
  List<double> padding, {
  bool clamp = true,
  bool normalizeZ = false,
}) => _unpackLandmarks(
  flat,
  inW,
  inH,
  padding,
  clamp: clamp,
  normalizeZ: normalizeZ,
);