08-03-2020 01:46 PM
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:
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
Solved! Go to Solution.
08-03-2020 03:20 PM
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
08-04-2020 04:12 AM
figured it out , had to change image type from U8 greyscale to U32 RGB
Thanks
08-04-2020 07:50 AM
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