Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Getting null value for image pixel

I have an image and when I try to get the pixel value using

srcImage.get(x,y,buffer) and if the buffer is of a double data type I get null values in many cases and when the data type is changed to byte[] I don't get null.

My image is in YCrCb format. Any possible reason for this problem?

click to hide/show revision 2
retagged

updated 2017-08-03 04:09:42 -0600

berak gravatar image

Getting null value for image pixel

I have an image and when I try to get the pixel value using

srcImage.get(x,y,buffer) and if the buffer is of a double data type I get null values in many cases and when the data type is changed to byte[] I don't get null.

My image is in YCrCb format. Any possible reason for this problem?