Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

average RGB and Lab of imane none-zero pixels

Hi
 
Can anyone pleas tell me how to calcualate the average R, G, and B (l, a, b) of the image on the non-zero pixels (nota R, G, B of all image, because I am interested to get only the color values of beef).
 
best regards
kreshnik
0 Kudos
Message 1 of 9
(5,327 Views)
Hi kreshnik,
what is your aim behind this? Why do you need the average of this pixels?
Mike
0 Kudos
Message 2 of 9
(5,236 Views)
Hi Mike
 
I have some images and I would like to see the differences in the colour of beef.
 
best regards
kreshnik
0 Kudos
Message 3 of 9
(5,145 Views)

Hi kreshnik,

i think in your case it would be more expressive to create a histogram or color histogram.

Mike

0 Kudos
Message 4 of 9
(5,137 Views)

Hi Mike

Average R, G, and B of beef (or L, a, and b) show more in comparison to histogram, especially since I have color calibrated these images with Macbeth. Why is LabView so poor in relevant documentation compared to Matlab for example when it comes to use of different functions, I mean examples of use? At least this is my impression :).

 

Can you show me the histogram method of yours and the figures that I would be able to relate my conlucions on any statistical difference on color?

 

regards

kreshnik

0 Kudos
Message 5 of 9
(5,135 Views)

Hi kreshnik,

see the attached example.
Hope it helps.

Mike

0 Kudos
Message 6 of 9
(5,132 Views)

Thanks Mike

I get however a problem at the IMAQ color hsitogram function when I wanna execute the program. It says like there is an invalid image type ?!?

regards

kreshnik

0 Kudos
Message 7 of 9
(5,108 Views)
Hi kreshnik,
you can make it without IMAQ. It should make the same. See the attachment please.
Mike
0 Kudos
Message 8 of 9
(5,105 Views)

Hi Mike ,

 

I am interested in plotting the histogram of the colors R,G and B of a picture.

I had a look at your program and I did test it. The values of R that comes in (same for G and B) are completely different with what gets out.

Are you just trying to add 1 to this values, if yes than the program should be like the one I am attaching, if not can you please explain

I am interested in understanding that.

 

Thanks

0 Kudos
Message 9 of 9
(4,542 Views)