H
Harry
Hello,
I am using a 2-dimensional matrix for image manipulation and recognition.
The x-axes is image.width pixels long and the y-axes image.height.
All fields have a RGB integer value.
To store this value from the image into the matrix I am using the
bitmap.getPixel(x,y) method because manipulating values in the matrix is
much faster than using the bitmap.setPixel(x,y,color) method.
My problem is, that the getPixel function is also very slow.
Is there a way to get the RGB values from the picture more easily?
Thanks,
Harry
P.S: the matrix looks like:
[RGB_11,RGB_12,....,RGB_1n]
[RGB_21,RGB_22,....,RGB_2n]
....
[RGB_n1,RGB_n2,....,RGB_nn]
I am using a 2-dimensional matrix for image manipulation and recognition.
The x-axes is image.width pixels long and the y-axes image.height.
All fields have a RGB integer value.
To store this value from the image into the matrix I am using the
bitmap.getPixel(x,y) method because manipulating values in the matrix is
much faster than using the bitmap.setPixel(x,y,color) method.
My problem is, that the getPixel function is also very slow.
Is there a way to get the RGB values from the picture more easily?
Thanks,
Harry
P.S: the matrix looks like:
[RGB_11,RGB_12,....,RGB_1n]
[RGB_21,RGB_22,....,RGB_2n]
....
[RGB_n1,RGB_n2,....,RGB_nn]