Add tile masking for coarse offsets computation
Precision in estimating coarse offsets for em-datasets can often be improved with custom boolean masks for desired tile-pairs. This is particularly true for tile pairs at the edge or near region of interest, where charging and spatial deformations frequently occur. Below, the image on the left illustrates a stitched tile pair after coarse offset estimation done without a custom mask. Conversely, the image on the right demonstrates a stitched tile pair using a coarse offset estimated with the mask shown at the bottom of the middle row.
Updated code follows similar approach as in warp.py module, where tile_masks are also an option in render_tiles function.
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).
View this failed invocation of the CLA check for more information.
For the most up to date status, view the checks section at the bottom of the pull request.