LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Load Jpeg and convert to 8 bit grayscale array?

Hi muks,

what do you mean?

Mike

Message 11 of 23
(3,593 Views)
Mike,
          Extracting the luminance plane for example from a jpeg image should convert it into a gray scale 8 bit image right?
Message 12 of 23
(3,565 Views)
Hi muks,
i don´t understand what you want to tell me. Can you explain please?
Mike


Message Edited by MikeS81 on 07-25-2008 08:22 AM
Message 13 of 23
(3,561 Views)

Hi Chris,

to convert a RGB value to a grayscale value use this formula: "gray = 0.299R+0.587G+0.114B". To detect your edge see something like "Sobel-Operator", "Prewitt-Operator", or .... .

Mike




I was just  saying that extracting a  single plane from a n RGB image should convert it into  a gray scale image.
Message 14 of 23
(3,552 Views)
Hello Mike, thank you very much for the quick response. I tried the code and it does not work for me. The truth is that my problem is other, but I thought it could be the solution.  
 
Although my problem is this: I've created a matrix of 640x480 floating point and I need it to show it in grey scale.  I found an example from NI where a palette of gray is created and used with Flatten Pixmap box, but this example use the function Join which is it not available in the 7.1 version, this is the one that I work with.  If anyone knows how to solve this problem, I'll really appreciate it. 
 
Best regards,


Anfego
0 Kudos
Message 15 of 23
(3,533 Views)
Hi Anfego,
which example do you mean? Can you show it please?
Mike
Message 16 of 23
(3,523 Views)

my problem is this: I've created a matrix of 640x480 floating point and I need it to show it in grey scale.

Did you try  array  to  image function ? can you post your  array?
Message 17 of 23
(3,517 Views)
Hi, those are example what Im talking about.
Download All
0 Kudos
Message 18 of 23
(3,498 Views)
Hi Anfego,
see the attached example please.
 
Hope it helps.
Mike
Message 19 of 23
(3,491 Views)
Thank you so much, Mike, it is perfect.


Cheer!!! XD
0 Kudos
Message 20 of 23
(3,466 Views)