LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

what does the IMAQ Cast Image VI do exactly?

Solved!
Go to solution

Hi everyone,

 

I want to convert a RGB image to grayscale. By now I can do this, using the IMAQ Cast Image VI. But now I was wondering what exacly does this VI do? How does it make a grayscale image from the RGB image? What is happening under the hood?

 

Hope someone can tell me, since I really can't find it. Thanks in advance ^^.

0 Kudos
Message 1 of 5
(3,323 Views)

Simply does typecasting. 

Converts the current image type to the image type specified by Image Type

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 2 of 5
(3,312 Views)

thanks you very much for answering, but actually I wanted to know how the VI does this. Would you happen to know that to?

 

Thanks in advance.

0 Kudos
Message 3 of 5
(3,296 Views)
Solution
Accepted by topic author Doubutsu
For each type conversion there is specific operation. In your case The VI sets the destination value to the average of the three color components of the source.
For more:
http://zone.ni.com/reference/en-XX/help/370281P-01/imaqvision/casting_images/
Thanks
uday
Message 4 of 5
(3,286 Views)

thanks a lot, I guess that was where I was searching for.

0 Kudos
Message 5 of 5
(3,250 Views)