my problem is the following: I have to check within 10bit DPX files if the image content had gone through an 8bit bottleneck before.
bitdepth (identify -format %z filename) will tell me that my DPX file is a 10bit container and identify -format %k filename would give me the number of unique colors within this picture. 8bit pictures should have about 1/4th of the number of unique colors compared to 10bit.
But only by using my rusty brain I can somehow say it looks like an 8bit content if the number of unique colors is below a certain level when looking on the actual image and making a guess on how many colors there probably should be...
So my initial thought was that when only 8bit content is packed into the 10bit container it would look like in the following table.
Code: Select all
codevalue 8bit 10bit
-------------------------
x a a
x+1 0 b
x+2 0 c
x+3 0 d
x+4 c e
... ... ...
Another thought was to use histogram:histogram.gif to plot a histogram. I hoped to find "gaps" in the plots of the 8bit images. Unfortunately both histograms for true 10bit and 8bit look exactly the same...
Any ideas would be most welcome!
Thanks, Andreas