forked from scantailor/scantailor
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Constrain the area of the image we apply dewarping to
Originally, the idea was to make the dewarped image at the Select Content stage contain all the pixels in the crop area of original warped image. Unfortunately it turns out same areas of the warped image may be unsafe to dewarp. For instance, in the presence of perspective distortion, a vanishing point (if it's within the image) can't be mapped to dewarped coordinates. The solution is to constrain the area of the original image that will be dewarped to exlude unsafe areas.
- Loading branch information
Showing
2 changed files
with
80 additions
and
3 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