Ah, I see. I'll give this a try. Does this processing add any significant time to the image capture timeline?
Also, what does the X tolerance actually do? I see the range is 32 < X < 1023, but how does the result change as X takes different values in this range?