forked from labsyspharm/ashlar
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Account for rotation more accurately in geometry calculations
* Generally, work from centers rather upper-left corners. When were were only correcting for shift it didn't matter, but rotations are much easier to handle if everything rotates about its center! * Also change the coarse/fine rotation logic so that the fine rotation correction starts from the coarse angle, calculating a small correction to add to it. The per-tile rotation detection is much more stable for very small angles, so this approach works much better when the overall angle is large. In the several test cases I examined, the fine correction was always 0 degrees (i.e. the coarse angle estimation was extremely accurate already).
- Loading branch information
Showing
2 changed files
with
26 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters