logo       

Re: Nullify blue: msg#00668

lib.opencv

Subject: Re: Nullify blue

Greetings,

Not much of an expert in vision, but my two cents...

in RGB, it's quite impossible to determine what's "blue" and what's not,
since a certain combination of R, G & B might be low on the B but still
looks "blue" to the eye of the viewer. this is why its quite impossible to
determine "what is blue" (i.e. it is not only 0,0,255).

HSV mimic the human eye and gives blue a different representation namely,
from X to Y (no the Hue scale) it's all variant of blue (~195-295). the
level of S and V represent the how blue the color is (light, dark,
saturated, etc)

google for HSV color space to understand more, once you see the scheme you
will understnad it much better.

cheers,




On 1/30/06, Luiz Curado <lutitus@xxxxxxxxxxxx> wrote:
>
> Please,
>
> Can you explain to me why HSV space is better than RGB for this?
>
> Regards,
>
> Luiz Reginaldo
>
> Yoram Mizrachi <yorammizrachi@xxxxxxxxx> escreveu:
> v\:* {behavior:url(#default#VML);} o\:*
> {behavior:url(#default#VML);} w\:* {behavior:url(#default#VML);} .shape
> {behavior:url(#default#VML);} st1\:*{behavior:url(#default#ieooui)
> } Thanks Dave,
>
> Helped me a lot, indeed HSV is much better for "blues" identification
>
> Cheers,
> Yoram
>
>
>
>
> ---------------------------------
>
> From: OpenCV@xxxxxxxxxxxxxxx [mailto:OpenCV@xxxxxxxxxxxxxxx] On Behalf
> Of Dave Grossman
> Sent: Monday, January 23, 2006 9:42 PM
> To: OpenCV@xxxxxxxxxxxxxxx
> Subject: RE: [OpenCV] Nullify blue
>
>
> You should be working in HSV space, not BGR space.
>
>
> ---------------------------------
>
> From: OpenCV@xxxxxxxxxxxxxxx [mailto:OpenCV@xxxxxxxxxxxxxxx] On Behalf
> Of Yoram Mizrachi
> Sent: Monday, January 23, 2006 7:24 AM
> To: OpenCV@xxxxxxxxxxxxxxx
> Subject: [OpenCV] Nullify blue
> Greetings,
>
> I need to translate all "blue" variant in a picture into black
> (RGB=000). I'm working in BGR mode (the default) and was wondering what
> should be good values for each of the channels (R, G and B) to identify any
> variant of blue.
> Does anyone aware of a formula or "finger" numbers I can work with?
>
> For example:
> If (B > 200) && (R < 100) ?.
>
> Thanks in advance,
>
>
> Yoram Mizrachi
>
>
>
>
> Change settings: http://www.yahoogroups.com/mygroups, select
> Get Emails (get all posts)
> Daily Digest (one summary email per day)
> Read on the web (read posts on the web only)Or Unsubscribe by mailing
> OpenCV-unsubscribe@xxxxxxxxxxxxxxx
>
>
>
>
>
> ---------------------------------
> YAHOO! GROUPS LINKS
>
>
> Visit your group "OpenCV" on the web.
>
> To unsubscribe from this group, send an email to:
> OpenCV-unsubscribe@xxxxxxxxxxxxxxx
>
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
>
>
> ---------------------------------
>
>
>
>
>
>
>
> ---------------------------------
> Yahoo! doce lar. Faça do Yahoo! sua homepage.
>
> [Non-text portions of this message have been removed]
>
>
>
> Change settings: http://www.yahoogroups.com/mygroups, select
> Get Emails (get all posts)
> Daily Digest (one summary email per day)
> Read on the web (read posts on the web only)Or Unsubscribe by mailing
> OpenCV-unsubscribe@xxxxxxxxxxxxxxx
>
>
>
>
> SPONSORED LINKS
> Open source
> software<http://groups.yahoo.com/gads?t=ms&k=Open+source+software&w1=Open+source+software&w2=Computer+vision&c=2&s=47&.sig=otrYILVEQ0AH3ZQy9bV3Vw>
> Computer
> vision<http://groups.yahoo.com/gads?t=ms&k=Computer+vision&w1=Open+source+software&w2=Computer+vision&c=2&s=47&.sig=fHht503sktp4aSIlRHnj5w>
> ------------------------------
> YAHOO! GROUPS LINKS
>
>
> - Visit your group "OpenCV <http://groups.yahoo.com/group/OpenCV>"
> on the web.
>
> - To unsubscribe from this group, send an email to:
>
> OpenCV-unsubscribe@xxxxxxxxxxxxxxx<OpenCV-unsubscribe@xxxxxxxxxxxxxxx?subject=Unsubscribe>
>
> - Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> Service <http://docs.yahoo.com/info/terms/>.
>
>
> ------------------------------
>



--
Yoram Mizrachi
CTO, NexPerience


[Non-text portions of this message have been removed]



Change settings: http://www.yahoogroups.com/mygroups, select
Get Emails (get all posts)
Daily Digest (one summary email per day)
Read on the web (read posts on the web only)Or Unsubscribe by mailing
OpenCV-unsubscribe@xxxxxxxxxxxxxxx



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise