View Single Post
  #1   Spotlight this post!  
Unread 06-04-2012, 15:43
tilky's Avatar
tilky tilky is offline
Registered User
AKA: Ryan Thielke
FRC #3137
Team Role: Programmer
 
Join Date: Nov 2011
Rookie Year: 2011
Location: Connetquot
Posts: 188
tilky is an unknown quantity at this point
incorrect subtraction in get color pixel value

for whatever reason, when i get the color pixel value of a pixel and convert it to rgb, if i subtract 20 from it, it comes out to some strange number (247 for what i was doing). I finally figured out that you need to convert the red green and blue values to singles in order to be able to do any math on the numbers and get the right answer. Does anyone have an explanation of this?
Reply With Quote