View Single Post
  #2   Spotlight this post!  
Unread 23-03-2012, 17:13
LukeS LukeS is offline
4272 mentor, 1024 alumnus
AKA: Luke Shumaker
FRC #4272
Team Role: Mentor
 
Join Date: Mar 2009
Rookie Year: 2009
Location: Indianapolis, IN
Posts: 60
LukeS is an unknown quantity at this point
Re: Rectangle corner extraction in JavaCV with source

Code:
cvSplit(image, b, g, r, null); // b and r are reversed for some reason
The reason b and r are "switched" is that the image is in BGR24, not RGB. The raw feed from the camera is YUV420, which FFmpeg converts to BGR24. Why BGR24? I don't know.

From what I've read, color filtering will work better in HSL/HSV, and am currently trying to figure out how to do that.
Reply With Quote