I'm doing a java project to do with stereo vision. I'm having problems with regards to getting a colour value from a particular pixel in an image. I need to compare particular pixels between 2 images so to do this i have stored the pixels value in a 2D array using the line of code:
pixels[j] = bufferedImage.getRGB(i,j); (pixels is an integer 2d array)
But this stores a strange value which i dont understand: -5394273
This pixel's value in photoshop is:
R-82
G-60
B-73
# - 523c49 (it's a very dark purple).
What am I doing wrong? Is there another function i could use insetad of getRGB()? I can read the image in as a grayscale image in if that would make things easier.
Thanks for any advice.
pixels[j] = bufferedImage.getRGB(i,j); (pixels is an integer 2d array)
But this stores a strange value which i dont understand: -5394273
This pixel's value in photoshop is:
R-82
G-60
B-73
# - 523c49 (it's a very dark purple).
What am I doing wrong? Is there another function i could use insetad of getRGB()? I can read the image in as a grayscale image in if that would make things easier.
Thanks for any advice.
