Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

How to convert UVYV to HSL?

 I want to apply the color threshold function of NI-Vision in HSL mode.

How can I convert a UVYV image to a HSL image? Would this conversion be faster then a RGB-to-HSL conversion?

0 Kudos
Message 1 of 4
(5,010 Views)

Dear Andrea,

I understand you want to switch from somekind of colormap called UVYV to HSL ? Unfortunately I don't know how this UVYV colormap works.

I do suspect UVYV is not supported by our vision module, searching "uvyv" in the Vision assistant help I find nothing, while I do find useful funcions for RGB and HSL.

I searched also in Wikipedia but I didn't find UVYV connected to RGB or HSL.
If you have a mathematical description of UVYV likely you can extract the transformation to and from HSL and then wirite the associated code.

 

Best Regards.

 

FiloP
It doesn't matter how beautiful your theory is, it doesn't matter how smart you are. If it doesn't agree with experiment, it's wrong.
Richard P. Feynman
0 Kudos
Message 2 of 4
(4,989 Views)

Dear Jon,

 thank you for your reply.

I have found the description of the UYVY in http://www.fourcc.org/yuv.php#UYVY (it is similar to the UVY format).

 

I am interested in this argument because I am considering the acquisition of a TheImagingSource firewire-camera, that use the UYVY image format. I saw that these kind of cameras are supported by the NI-firewire-driver. I wonder about the actual image format of the images acquired by this camera-driver set and passed to other Vision VI.

 

 

 

 

0 Kudos
Message 3 of 4
(4,977 Views)

HI Andrea,

two points

 

1-If you can connect your Firewire Camera to the PC and see a meaningful image/video in MAX ( measurement and automation explorer) you can use the camera successflully also with LabVIEW or any other Development Environment supported by the Vision Module.

 

2-If you are interested in recording ad playing AVI files I strongly suggest you searching for AVI in our developer zone .

For instance I was able to find these documents:

AVI Read Write With Data

 

Also this document may be useful

Streaming Images to Disk with NI Vision

 

 

Have a good Day

 

Message Edited by Jon_Snow on 09-02-2008 05:15 AM
FiloP
It doesn't matter how beautiful your theory is, it doesn't matter how smart you are. If it doesn't agree with experiment, it's wrong.
Richard P. Feynman
0 Kudos
Message 4 of 4
(4,954 Views)