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      ([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]

Reply via email to