LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Convert Series of Images to color AVI Video

Solved!
Go to solution

Hi 

 

I have a series of colour images saved in a folder as .png files and i followed the following tutorial to generate a .avi file from the images:

 

https://forums.ni.com/t5/Example-Code/Convert-folder-of-images-to-AVI/ta-p/3522842?profile.language=...

 

It works but it generates a grayscale video... I believe the image is being read in gray scale and saved as a gray scale video frame.  I was wondering how do i read the image in colour mode?

 

attached is an example of what the images look like

 

Thanks

0 Kudos
Message 1 of 4
(2,711 Views)
Solution
Accepted by zak9001

Um, read the Images in color and write the RGB images into an AVI?  Isn't that obvious?  Looking at your code ... oops, I can't look at your code, because you failed to attach it, so I can't tell you how I might fix it.  But now that you know the (obvious) thing that is wrong (which you clearly knew before you asked for help), I'm sure you'll be able for fix it yourself ...

 

Bob Schor

0 Kudos
Message 2 of 4
(2,681 Views)

figured it out , had to change image type from U8 greyscale to U32 RGB

 

Thanks

0 Kudos
Message 3 of 4
(2,649 Views)

Yep.  Once you turn a color image into an 8-bit Grey (thereby going from a 4-byte representation of the pixel down to a 1-byte pixel), you've thrown away more than 99.8% of the "information" and are left with "shades of grey".

 

Bob Schor

0 Kudos
Message 4 of 4
(2,619 Views)