LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Extract RGB value

i was wondering if anyone know how to extract or analysis 
RGB value from an image.
i don't know how to start with this topic.
any help is much appreciated.
thanks
Shing
0 Kudos
Message 1 of 8
(5,984 Views)

Although i have not done it...

Have you try , the "Graphics and sound" > "Graphics Formats" functions?

You can read a file, unflatten pixmap and at "Picture Functions" convert it to RGB values with "Color to RGB"

0 Kudos
Message 2 of 8
(5,968 Views)

Are you trying to get RGB values for pixels in an image (ie: jpg or png, etc)?

Or are you trying to get the RGB value of a solid color as in the color of a control or indicator?

0 Kudos
Message 3 of 8
(5,950 Views)
thank you for your reply quickly Pnt and Joelabview !!
i want to grab the image from vision and get the RGB value
from it  and show in the front pannel .
i have try sound and grapic ,but i think it is not really work.
have any other method to do it ?
Thanks
Shing
 
 
 
0 Kudos
Message 4 of 8
(5,940 Views)
If you are doing vision using thw vision development module there is an extract color plane vi which will extract RGB or Hue, saturation, lum, value or intensity as well.
 
Paul
Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
0 Kudos
Message 5 of 8
(5,918 Views)
hi , thanks all of your help...paul , mike , Ravens Fan
now i can extract the RGB value from the image by vision
but i don't know how to  differentiate between different colour
 if those color are in the same image.
which icon that i can use for this application ?
or any other method ?
thanks
shing
0 Kudos
Message 6 of 8
(5,907 Views)

Hi shingy,

you can use the "IMAQ RGB2Color 2" function to convert your RGB value to HSV. Then you can differentiate the color by the H value.

Mike

0 Kudos
Message 7 of 8
(5,903 Views)
hi ,
thank you very much mike .
I know what you are talking about and get your idea
since within H can show which color by angle.
i go ahead to try it . thank you !!
shing
0 Kudos
Message 8 of 8
(5,891 Views)