cv.facedetect + exportimage + jit.tiffany

peterhorvath's icon

hello,

the effect i'm after is similar to a photo mosaic. but i'm interested in calculating the average rgb of a downsampled pixel from a qt object and replacing the pixel with an image. i'm generating images in a directory based on facedetect and attaching average rgb metadata to each image. i want to replace the pixels of a downsampled jit.grab with the closest image from the directory.

thanks in advance!
peter

peterhorvath's icon

i found [jit.eclipse] to be useful and is actually doing mostly what i need.

the issue now is creating a matrix of images from a directory based on the rgb value of each pixel from the qt.grab. i have the rgb metadata for each file, but the part where i'm stuck is perhaps at a [jit.op] operation to stitch together the images based on the live qt.grab.

cheers!

peterhorvath's icon

btw here is my patch for reference

Max Patch
Copy patch and select New From Clipboard in Max.