I'm trying to write a patcher that processes a movie using a list of rectangle dims so that, for every frame of the movie, the pixel values within each rectangle are averaged out and then all replaced with that solid color. I will have the list of rectangles before starting the processing, but the count and placement of these rectangles will be different for every different movie (but consistent within a single movie that is being processed).
Say for instance I have a movie like the 320x240 bball.mov. I know for this movie I want to process 10 rectangular regions that are each 12x12 pixels scattered randomly around the matrix and I want to fill each of those regions with the solid color that is the average color within the region.
There must be a more clever way to do this! Using Gen (just starting to wrap my head around it)?
Anybody have any ideas for me? Thx in advance.