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

Add "linear scan" function #54

Open
oubiwann opened this issue Jun 20, 2021 · 0 comments
Open

Add "linear scan" function #54

oubiwann opened this issue Jun 20, 2021 · 0 comments
Milestone

Comments

@oubiwann
Copy link
Member

oubiwann commented Jun 20, 2021

Treat the image data as a boustrophedon

  • start at the beginning of the data
  • when the max width is hit, starting reading the adjacent point, one row down
  • when the min width is hit, go down another row, and repeat

To repeat indefinitely, one could:

  1. simply reverse direction at the end / beginning, or
  2. find all points in the image which have a value the same as the last / first point, and for each of those points, save the neighbouring points in a list, then randomly select from those when one gets to the end / beginning

Depends on:

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