I may be wrong, but I suspect this isn't going to be practicable as a
CIFilter.
Core Image Filter work by running identical code on each and every
one of the input image's pixels, and there's no way of creating a
persistant variable to keep track of values between iterations, to my
knowledge.
Alex
On 21 Jan 2010, at 15:23, Benjamin King wrote:
I'm trying to write my first Core Image filter to find the "median"
color for a single row/column of pixels, very similar to the built-
in CIRowAverage filter.
To find the median value in a set, I need to sort the set from
lowest to highest color values and then find the value in the
middle if the set is odd, or average the 2 middle values if the set
is even.
Since this is my first attempt at graphics programming on the GPU I
don't know if it makes sense for this problem (sorting)?
Any advise?
Thanks.
Benjamin King
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list (Quartzcomposer-
[email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/the_voder%
40yahoo.co.uk
This email sent to [email protected]
_______________________________________________
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]