Scenario 1. I set R=210, G=180, B=57, all constant while making a 100x100 bufferedImage and Saving it to disc. I tested that with a reader function. Everything worked fine, Each pixel gave the exact values as expected.
Scenario 2. I set R and G Same as above. For B, I set values taken from an integer Array like (123, 48, 210.....) . While testing with the reader function i) It is NOT the values I set for B that I am getting back ii) Instead being constant R and G values are also changing and displaying Random(?). What could be the reason for this surprising behavior? Thanks in advance (Java, OpenCV(2+), Netbeans)