I have a program that requires grayscale format videos.
The correct video format that I require looks like this when imported with VideoReader

I have received a video file that imports with VideoReader as follows:

So I want to change the VideoFromat to Grayscale. I found this code and ran it:
and while it does output a Grayscale video, the quality has been severely reduced (a lot of the detail is 'blurred' together and there looks like a lot of artifacts in the video). A part of the same frame shows what I mean:

I have also loaded the original video file into ImageJ as Grayscale and saved it as "Uncompressed AVI", and the same kind of thing happens.
So my question is
(a) why is this occurring?
(b) what would be the best way to perform the conversion I am after?
Thanks
BitsPerPixelandVideoFormatfields. I will upload a short sample, thanks. I am not sure about the gamma value change, but the converted video definitely looks vastly reduced in quality. - Steve HatcherVideoFormatandBitsPerPixelfields. - Steve Hatcher