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

New subtract_tilted_background #1

Merged
merged 5 commits into from Sep 9, 2020

Conversation

scottbreitenstein
Copy link
Contributor

I rewrote subtract_tilted_background so it now samples every point around a perimeter with width equal to the width of the corner boxes. I made a new function, perimeter_mask, to enable this. The new function works just as fast despite fitting many more points, and the result is now consistent from one run to the next because the randomness is removed. I updated the notebook to show the perimeter mask function.

…all the corner squares rather than a random selection.
along the perimeter (not just the ones at the absolute edge). To
support this, I made a new function perimeter_mask, which works just
like corner_mask and even takes the same arguments, but returns all
the pixels around the border in a strip as wide as the corner squares
would be.

Since the function doesn't grab random pixels anymore, the results are
consistent from one run to the next.
…_background is fixed and the notebook has been updated. Consistent results.
@scottprahl scottprahl merged commit 312c8f6 into scottprahl:master Sep 9, 2020
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

Successfully merging this pull request may close these issues.

None yet

2 participants