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?