stitchit.tools.lensdistort
command to correct for the distortion. e.g. see what imagesc(stitchit.tools.lensdistort(ImageData,0.2))
looks like. You will need to experiment and see the function help: note that k
can be vector.lensDistort
. You will also want to add the fields affineMat
and stitchingVoxelSize
to handle shear and to get exact numbers for the stitching accuracy. File an issue if you need help with this now. Docs to come.lensDistort
value in the yml
if needed. Once the acquisition is done you can verify that indeed you can see the lensDistort
value in the recipe yml file. Stitch the data with chessboard stitching. e.g.imrotate
by -0.75 degrees: