Using Bio-Formats I am able to import an MOV video, select an ROI, and then extract a histogram from each channel of a frame. However, it appears as though data is missing for certain intensities that is clearly unnatural. Would this be due to compression of the video? Am I importing the video incorrectly or approaching extracting frame histogram data incorrectly?
I am having a hard time validating this data as I’m unsure of how to extract a frame from a video outside of ImageJ that won’t experience some form of compression/interpolation/data manipulation. Any recommendations?
Edit: I have read up a bit on the Codec, and it is in fact typically lossy. Could that be the explanation for the gaps in the histogram data?
Some information about the MOV file:
Codec: H264 - MPEG-4 AVC (part 10) (avc1)
Color primaries: ITU-R BT.709
Color transfer function: sRGB
Color space: ITU-R BT.601 Range
A sample of the red channel of the first frame is as follows:
|0|3018| |---|---| |1|0| |2|7462| |3|0| |4|36132| |5|0| |6|134412| |7|0| |8|282970| |9|341702| |10|0| |11|260602| |12|156634| |13|0| |14|93602| |15|34572|