Forum

Colour analysis question

hiya

i have an a video which i would like to re edit in order of the overall colour of each frame.

i was thinkin that i may need to render the film to stills and perform an analysis using the pipet.

This project is a bit beyond my patching skills at the moment.

Anyone got any tips of nodes i should be looking at, or even if this kinda thing is possible currently?

regards

What do you mean by rededit the colour?
For colour manipulations, shaders (fx files) are good, but clarify what your trying to achieve?

hi

cheers for the swift reply.

i would like to re edit the order of the frames of the video.

Instead of them appearing in chronological order i would like them to appear in order of colour. i.e. an analysis of the overall colour balance of each frame then the frames to be reordered from blue through to green.

I presumed rather than be able to do this with a video file - i would need to render my video as a series of stills - then analyse for overall colour balance of each individual pic - then change the order of the stills to reflect to colour.

does this make sense?

cheers

Ahh I understand, sounds like stills and pipet and then save the info into a database/spread is the way to go, should be quite mind mashing, good luck!

how long is the reordered videosequence. maybe you can analyse the color with a relatively low resolution with pipet and use the result to reorder a buffer (ex9.texture) (this with full video resolution. the length of the buffer depends on your graphic cards ram and the videoresolution. i think youre able to do this realtime…

Instead of them appearing in chronological order i would like them to appear in order of colour. i.e. an analysis of the overall colour balance of each frame then the frames to be reordered from blue through to green.

i think the most difficult part will be an intelligent algorithm to get that “overall” colour.
the rest will be some
colorsplit (e.g.: HSV (Color) Split )
get Hue and Sort (Spreads)
get FormerIndex and link to Index of some SetSlice…

“i think the most difficult part will be an intelligent algorithm to get that “overall” colour.” -hm pipet has those width and height to get the average color of an area… can somone explain what it does exactly? means that this measuring area is a circle? or a square?

depending on what effect you like to achieve and on your videomaterial thats maybe allready acurate enough…

i did a patch to demostrate the whole process with a texturebuffer node. it also uses my colorbuffer module, for buffering the colorvalue for each frame. maybe its a starting help for you…

sortmoviebycolor.zip (9.0 kB)

hiya

it was me on a friends laptop with the questions…

awesome help guys. looks like maybe ill be able to do it with video instead of stills. Ill see how many frames i can fit into a 256mb video card and take it from there.

@electro - thanks so much for the patch - im starting to see how this can work - this is a great way to learn…

ill take a look at it all properly when i finish work this evening

thanks all again

rand