|
|
@@ -44,7 +44,9 @@ public class ImageController {
|
|
|
}
|
|
|
|
|
|
private void transformMatToArrayOfFloat(Mat mat, float[] floats) {
|
|
|
- if (mat.width() != 8 || mat.height() != 1) throw new RuntimeException("Matrix dimension is not 1x8");
|
|
|
+ if (mat.width() != 8 || mat.height() != 1) {
|
|
|
+ throw new RuntimeException("Matrix dimension is not 1x8");
|
|
|
+ }
|
|
|
for (int i = 0; i < 8; i++) {
|
|
|
floats[i] = (float) mat.get(0, i)[0];
|
|
|
}
|