morph oval face into rectangle face for fun. @param bitmap @param time_ms @return morphing bitmap
(final Bitmap image, long time_ms)
| 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); |
nothing calls this directly
no test coverage detected