MCPcopy Create free account
hub / github.com/KAlO2/PerfectShow / square

Method square

src/com/cloudream/ishow/algorithm/FaceDetector.java:1103–1109  ·  view source on GitHub ↗

morph oval face into rectangle face for fun. @param bitmap @param time_ms @return morphing bitmap

(final Bitmap image, long time_ms)

Source from the content-addressed store, hash-verified

1101 * @return morphing bitmap
1102 */
1103 public Bitmap square(final Bitmap image, long time_ms)
1104 {
1105 // points are the feature points detected from this bitmap
1106 Bitmap result = image.copy(Bitmap.Config.ARGB_8888, true);
1107 nativeSquare(result, points, time_ms);
1108 return result;
1109 }
1110
1111 private static native PointF[] nativeDetectFaceSingle(String image_path, String data_path);
1112 private static native PointF[] nativeDetectFaceSingle2(final Bitmap image, String data_path);

Callers

nothing calls this directly

Calls 1

nativeSquareMethod · 0.95

Tested by

no test coverage detected