File tree Expand file tree Collapse file tree 2 files changed +343
-20
lines changed
generator/src/java/org/visp/utils Expand file tree Collapse file tree 2 files changed +343
-20
lines changed Original file line number Diff line number Diff line change 77import org .visp .core .VpHomogeneousMatrix ;
88import org .visp .core .VpImagePoint ;
99import org .visp .core .VpImageUChar ;
10+ import org .visp .core .VpImageRGBa ;
1011import org .visp .core .VpCameraParameters ;
1112
1213public class Converters {
@@ -57,6 +58,14 @@ public static long[] array_vpImageUChar_to_array_native(VpImageUChar[] images) {
5758 return native_images ;
5859 }
5960
61+ public static long []array_vpImageRGBa_to_array_native (VpImageRGBa [] images ) {
62+ long [] native_images = new long [images .length ];
63+ for (int i = 0 ; i < images .length ; i ++) {
64+ native_images [i ] = images [i ].nativeObj ;
65+ }
66+ return native_images ;
67+ }
68+
6069 public static long [][] matrix_vpColVector_to_matrix_native (VpColVector [][] matrix ) {
6170 long [][] native_matrix = new long [matrix .length ][];
6271 for (int i = 0 ; i < matrix .length ; i ++) {
You can’t perform that action at this time.
0 commit comments