The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: red color in l*a*b
Replies: 1   Last Post: Mar 4, 2014 6:51 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]

Posts: 13,022
Registered: 12/26/06
red color in l*a*b
Posted: Mar 4, 2014 6:51 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

"elaf " <> wrote in message <lf5dji$78v$>...
> Hi
> I have a program that read image and the convert it to l*a*b
> then display just the red color in the image
> my question : how can I calculate the average of red color in this image?

Red kind of roams around in lab color space. You'd be better off using hsv. Just use

hsv = rgb2hsv(rgbImage);

and threshold the hue channel. Red pixels will have hue less than about .1 or so and more than about 0.95 or so.

Date Subject Author
Read red color in l*a*b
Read red color in l*a*b

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.