# Getting Different Intensity Values in MATLAB and Java Program output

I am working in digital image processing field, i have set of mammogram images in .bmp format, when i am opening anyone image using MATLAB then i am getting intensity value as 0 for a particular location (i,j), but when i am opening this image from java program using BufferedImage then i am getting intensity value as 59 for same location (i,j). Please tell what is reason behind it.

• Maybe because Java uses 0-based indexing while matlab uses 1-based indexing? Anyway, I doubt this question is suitable for this site. – pichenettes May 10 '13 at 7:48

Color image, in which case you have three indices in MATLAB, e.g. I(i,j,k) where k is 1, 2 or 3