It looks like you're new here. If you want to get involved, click one of these buttons!
How would I go about...
I have a 3D printer using a DLP projector. The projector illumination falls off around the edges of the build area. I am creating an image that will map the amount of falloff across the entire image and I want to apply this image as a correction filter to a series of images (the layer slices). This way, the resin 'sees' an even illumination across the the entire slice and my accuracy and curing is even.
One thing that I will need to account for is any black pixels in the target image need to stay black. I think creating a mask is needed to do this.
As for the parts of the image that do get affected, it would seem that I would need to somehow compare each pixel in the two images and then apply an inverse adjustment from the filter image to the target image.
Is there a function like Shaders or PImage::mask() that will do this?