02-12-2008 05:53 PM
02-13-2008 12:23 AM
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
02-13-2008 09:58 AM
Mike I am not sure how to use the gray level formula you provided all I have is an array of integers.
But here is some more clarification of what i am trying to do and have done because I read my previous post and it seemed confusing. Sorry about that that was due to frustration.
I am loading and clipping a jpeg that is a monochrome image. I want to turn this clipped image into an array that maps out the gray level (0-255) of each pixel in a 2 D array and I don't have IMAQ Image to Array function. How would I do this with just the graphics palette included in the development edition of Labview?
I tried using the unflatten pixmap vi but the 8 bit output array is not what I am looking for the numbers are not 0-255 or seem to represent gray because it gives a color image when I display it. How do I convert each number in the array to its 0-255 grayscale representation? Attached are two pictures that show what I have. As far as Identifying the edges I do have a vi that does this that I created from a program I made previously it just requires the grayscale 0-255 image array and thats what has me stressed .
02-13-2008 10:09 AM
Hi Chris S.,
here is an example for you. The formula is integrated. Hope it helps.
Mike
02-13-2008 11:47 AM
02-13-2008 02:17 PM
Hi daveTW,
my vi work in this way i want. Because Chris only want a 2D Array of grayscale values.
Mike
02-13-2008 07:43 PM
07-21-2008 09:46 AM
07-22-2008 02:47 AM - edited 07-22-2008 02:50 AM
Hi Anfego,
attached you will find a picture of the improved code.
Mike
07-22-2008 03:30 AM