Anyone?Is it possible using JavaScript in a Core Image Filter patch, to apply a kernel function to only a part of an input image?
I don't know about it being possible with JS. But I can go a step lower.
CoreImage Filters apply to an entire image. You can set an ROI (Region of Interest) to make work on a rectangular subregion of the image though. You can also set a DOD (Domain of Definition) to control which parts of the image are valid/defined.
You can set a filter's "shape" with the CIFilterShape class, which appears to just represent a rectangular region (and only one region, not multiple rectangles).
So it doesn't look like the underlying CoreImage functionality supports having filters operate selectively on several non-contiguous regions of an input image. Thus, I think it's unlikely that JS will add that automatically. It would have to be a multipass filter step, to process each piece.
An alternative might be to use a mask, and have the filter's code honour the mask. It'll do some extra work on the masked out regions (that ultimately have no effect), but it might be faster than doing multipass stuff in JS/by hand in QC.
Or maybe there's a way to have more than one rectangle, but I've not seen that anywhere...
-- [ christopher wright ] [email protected] http://kineme.net/
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Do not post admin requests to the list. They will be ignored. Quartzcomposer-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/quartzcomposer-dev/archive%40mail-archive.com This email sent to [email protected]

