The Artima Developer Community
Sponsored Link

Java Answers Forum
Java OpenCV GetPixel SetPixel

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
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
Reply to this message Reply
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)

Topic: JSR 385 and Units of Measure - Unit or unitless code? Previous Topic   Next Topic Topic: Save applet as jpg

Sponsored Links



Google
  Web Artima.com   

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