CHAPTER 3: Writing Pixel Bender Filters
Input images and sampling
Even though the size of the pixels has changed, all coordinates are still given in the world coordinate system. For example, the values returned by outCoord() for a 4 x 3 pixel image now look like this:
Within a kernel, all coordinates are given in the world coordinate space. This includes: X
The return value of the outCoord() function.
X
The coordinates passed to the sampling functions.
X
The regions passed to and returned from the region functions, including needed(), changed(), generated(), and dod().
32