For the heck of it, I just tried your kennel out and it worked as expected on my end (sampling one pixel over on the x axis). I've got the kernel stuck in the middle of a pipeline though, including a crop. I wonder if you crop the incoming image, or the outgoing image, if that would help things (using CICrop).
Topic:
Media Technologies
SubTopic:
Photos & Camera
Tags: