Custom Core Image filter help
Custom Core Image filter help
- Subject: Custom Core Image filter help
- From: Daniel Thorpe <email@hidden>
- Date: Mon, 18 Feb 2008 12:42:51 +0000
Hello everyone, I'm a complete newbie when it comes to Core Image, so
I'm hoping some experienced people might be able to help...
I'm thinking about writing an image processing operation as a core
image filter, but I'm just not sure if it's actually possible - and
hopefully someone here can tell me if it is, or not.
I'm trying to compute discrete orthogonal image moments, using
Tchebichef polynomials, and essentially, the output image is the same
size as the input image, and each output pixel, T(m,n) is defined
mathematically as:
T(m,n) = SUM_x { SUM_y { t(m, x) * t(n,y) * f(x,y) }}
where, m and n are output coordinates, x and y iterate over the input
image, f.
So, in other words, each output pixel is the sum over all the input
pixels, of the product, of each input pixel and the values of two
Tchebichef polynomials. These polynomials can be pre-computed, and are
essentially just another image, so t(m,x) means the mth order
polynomial at position x.
I'm not sure if this can be done in Core Image because the kernel will
need to loop over the entire input image domain... and to use the for
control statement, "the loop condition must be inferred at the time
the code compiles" - which leads me to think that such a kernel will
not work for different sized images?
Any thoughts you all have are much appreciated!
Cheers
Dan
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden