Java Answers Forum - Java OpenCV GetPixel SetPixel

The Artima Developer Community
Sponsored Link

Java Answers Forum
Java OpenCV GetPixel SetPixel

0 replies on 1 page.

Welcome Guest
Sign In

Flat View: This topic has 0 replies on 1 page
Padma Nabhan

Posts: 1
Nickname: nabhan
Registered: Mar, 2019

Java OpenCV GetPixel SetPixel Posted: Mar 16, 2019 5:19 PM
Advertisement
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)


Sponsored Links



Web Artima.com

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use

AltStyle によって変換されたページ (->オリジナル) /