hanfrunz
22nd February 2004, 17:57
Hello,
i don't know if this is the right forum for my questions, but may one of the mods decide.
I have written a filter named "colorstat", that analyses a RGB32 video. It creates a big (statistic[0xFFFFFF])array of all possible colors. It counts the apperance of each color. In the destructor of the filter a big textfile is written, which looks like that:
65 ; 87 ;245 ; 887654
34 ; 111 ; 78; 554
...
the first three values are RGB and the big number is the count of this color. So 887654 pixels have the color 65/87/245.
Now i'd like to create a ICC-Profile with these informations. So i could use iccview (http://www.iccview.de/index_eng.htm) to visualize it.
And with a second avisynth-filter which not exists right now, i could transform any videofootage to this specific colorspace and maybe it looks like the first video.
I hope i can simulate diffenrent filmlooks with this method. Let's say i analyse the first minutes of "the matrix" with is's green colors, then use the profile to my own dv-holiday-video and get a matrix look.
Does that make any sense? Is it possible? What else could i do with the stats? Could maybe used for a new codec with colormaps like in GIFs?
hanfrunz
i don't know if this is the right forum for my questions, but may one of the mods decide.
I have written a filter named "colorstat", that analyses a RGB32 video. It creates a big (statistic[0xFFFFFF])array of all possible colors. It counts the apperance of each color. In the destructor of the filter a big textfile is written, which looks like that:
65 ; 87 ;245 ; 887654
34 ; 111 ; 78; 554
...
the first three values are RGB and the big number is the count of this color. So 887654 pixels have the color 65/87/245.
Now i'd like to create a ICC-Profile with these informations. So i could use iccview (http://www.iccview.de/index_eng.htm) to visualize it.
And with a second avisynth-filter which not exists right now, i could transform any videofootage to this specific colorspace and maybe it looks like the first video.
I hope i can simulate diffenrent filmlooks with this method. Let's say i analyse the first minutes of "the matrix" with is's green colors, then use the profile to my own dv-holiday-video and get a matrix look.
Does that make any sense? Is it possible? What else could i do with the stats? Could maybe used for a new codec with colormaps like in GIFs?
hanfrunz