Does anyone know where the camera angle and location is?
The code I've written so far get's close, but at time it can be as much as a thirty second of a block off from the true edge.
Here's a starting image.

Then I rotate one pixel over and I get cobble even though I'm in the sand block.

Also, if I move over laterally, I get sand where I ought to get cobble.

P. S. I've put the code in a zip file attachment.
Here's a starting image.

Then I rotate one pixel over and I get cobble even though I'm in the sand block.

Also, if I move over laterally, I get sand where I ought to get cobble.

P. S. I've put the code in a zip file attachment.