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: Linear image



I must admit to not fully understanding samplerTransform, and why calling it twice would be a problem. The page here:
http://developer.apple.com/documentation/GraphicsImaging/Conceptual/ CoreImaging/ci_gslang_ext/chapter_6_section_3.html#//apple_ref/doc/ uid/TP30001185-CH206-BCIEGAIJ


is not very clearly worded on which space what coordinates are in, and when you should try to convert them. A short page describing coordinate systems in QC and/or Core Image, and what functions convert between which spaces, would really help, and if I get to understand it sufficiently, I'll try to write such a page on the wiki.

    --Sam

On Jun 11, 2005, at 10:42 PM, Ralph Brunner wrote:

Hi,

note that the kernel code below has a bug, in that the sampler transform is applied twice. This will fail in interesting ways if the sampler transform is not identity (when Core Image tiles the evaluation for example).

A different implementation could look like this:

kernel vec4 linearImage(sampler image, float y)
{
     vec2 xy = vec2(destCoord().x, y);

     return sample(image, samplerTransform(image, xy));
}

- Ralph

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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>)



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.