LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

rgb statistics of an 24bit bitmap

Hello
I try to analyse the RGB values (max, min, mean, ect) of a 24bit bmp. i found a way to represent the pixelvalues as 24bit values in an array.
then i convertet the array into a dynamic signal. since the 24bit consists of 3 Bytes which represent the values of each rgb-channel i need to splitt this 24 bit into bytes. I found a VI vich changes the color format into rgb. the problem now is that the resulting values are single scalar which i really cant analyse with the signal analysing tool. i always get the same values for mx, min and mean, that means only one scalar value ist analysed.
How can i achive that the whole 2bit signal is splittet into byte-pieces in signal form?
can somebody help me? 
Thank you very much!
 
Simon
Using Labview 7.1
0 Kudos
Message 1 of 3
(2,470 Views)
Hi Simon,

maybe you can stick to your RGB data without converting to 'dynamic signal'. Just have a look at the attached vi, it's just pure arithmetic to get the color channels.
Other simple method would be to put 'Color to RGB' into 2 auto-indexing for-loops (without conversion to dynamic in front) to split the color channels.

Message Edited by GerdW on 08-01-2006 01:57 PM

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 3
(2,469 Views)
Yes it works! thank you very much!
Using Labview 7.1
0 Kudos
Message 3 of 3
(2,461 Views)