Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crop: Add "boundary" option with a "threshold" option #30

Open
bernd-wechner opened this issue Jul 19, 2023 · 0 comments
Open

Crop: Add "boundary" option with a "threshold" option #30

bernd-wechner opened this issue Jul 19, 2023 · 0 comments

Comments

@bernd-wechner
Copy link

I guess, if you really want to conjure, one of the most needed crop features, most missing from tools is this one.

Use case: scanned an image on a flatbed scanner. Want the bounding box crop.

Implementation. Scan the framing pixels if they are uniform within the threshold (however measured) Repeat for each edge, examining the next row/column of pixels in, and while uniform within threshold continue. Stop when threshold exceeded. Thus produced, a bounding box is defined, crop to that.

Ideally, mark it as a rectangle in response to threshold selections.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant