Go to Post What happens on your team is not everyone's business!!!! - Bruneau1727 [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Spotlight this post!  
Unread 28-01-2013, 09:49
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,752
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: White Ring Light

HSL is a 3D color space as is RGB. RGB are generally viewed as a cube with a red, a blue, and a green axis. That puts black in the 0,0,0 corner and white in the 255,255,255 corner.

HSL has one circular component and two linear components, so it is pretty naturally thought of as a cylinder. But, the issue is that not all of those HSL values are really unique. If L is zero, the color is black, it doesn't matter what hue is, and saturation means nothing if there is nothing to blend with but black. So another visual that is more compact is to think of it as a snow cone with another paper cone put on top. This is really just taking all of the similar colors and shrinking them inwards so that the cylinder has been deformed to have a peaked top and bottom.

Anyway, when L is at an extreme, the other values really don't matter. Thus white light can have any hue, is by definition going to have a very low saturation, and will have an L that is almost 255. So, it is possible to use HSL to threshold, but since you really only care about L, it is generally faster and clearer to extract the L plane and do a monochrome threshold. It is even faster to ask the camera to simply give you a monochrome image, and you may have luck with that.

As for whether this is better than a green light, I'd say that it isn't better, but it may be good enough. If you have the time, I'd encourage you to experiment with both.

Greg McKaskle
Reply With Quote
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 14:39.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi