Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: coordinate systems (was: Re: Linear image)



On Jun 12, 2005, at 6:21 PM, Sam Kass wrote:
Thanks, this helps a lot. So, just to clarify one thing... If I have an image and want to sample 1 pixel to the right of the current location, I would add 1.0 to x in working coordinates, and run it through samplerTransform to get sampler coordinates. It looks like I've been doing this wrong all along, and it's just happened to work since I never did anything too complex with the image inputs and outputs.

yes, that would be the way. For total correctness you'd also need to add a method describing the region-of-interest of the kernel (the destination region grown by one pixel to the right in this case), otherwise you'd see seams when operating on large images,


    John



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/email@hidden

This email sent to email@hidden
References: 
 >Re: Linear image (From: Ralph Brunner <email@hidden>)
 >Re: Linear image (From: Sam Kass <email@hidden>)
 >Re: Linear image (From: Pierre-Olivier Latour <email@hidden>)
 >Re: Linear image (From: John Harper <email@hidden>)
 >coordinate systems (was: Re: Linear image) (From: Sam Kass <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.