Newbie needs to extract colour information from video.
Hello! I'm new to Max (and programming in general) but I'm learning the basics I think. However, for a patch I'm building I need to analyse the colour information in a video and then sort this information into different categories. Essentially, this colour information will drive synths in order to create an interesting accompaniment, but I don't know how to get the colour information in the first place.
In more detail, I need to find the (A)RGB data from each frame of the video. Then I've got to sort this information in two different ways, that is to drive two different synths in different ways.
I've got this patch to play video, and have begun to use jit.unpack to analyse different planes of the jitter window but I'm not 100% sure what I'm doing.
Any help would be hugely appreciated,
Cheers
Check the jit.3m object.
Gives the min/max and mean of ARGB for each frame.
I think you need to spend some quality time with the tutorials - especially those that involve getting data into and out of matrices (which is all the frame of video is).
Perhaps this will help
Great patch Max ! Very clear examples. Learnt a few new things off that one. Thanks.
Thanks for the replies, jit.3m is exactly what I'm looking for and that patch has helped explain a lot of things to me. Thanks!