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 Offset, Direction, and Split Probability Support to PottsLocation Split Method #16

Open
wants to merge 20 commits into
base: develop
Choose a base branch
from

Conversation

Jannetty
Copy link
Member

@Jannetty Jannetty commented Sep 18, 2024

  • Overloaded split so providing a three-integer percent offset moves split location from location center to location specified by offset
  • Implemented getSplitPoint function that finds splitpoint given offsets
  • Overloaded split so a split direction can be specified
  • Added boolean that specifies whether voxel lists returned from split should be balanced and connected. Only balances and connects when offset and direction are not specified
  • Overloaded split so a probability of returning one voxel list vs another can be specified
  • Wrote override for getSplitpoint in PottsLocation2D that adds a 0 for the z offset
  • Wrote and amended tests

@Jannetty Jannetty changed the base branch from main to develop September 18, 2024 16:40
@Jannetty Jannetty changed the title Add support for 3-integer percent offsets in PottsLocation split method to customize split location Add support for percent offsets and direction in PottsLocation split method to customize split location/direction Sep 19, 2024
@Jannetty Jannetty marked this pull request as draft September 19, 2024 18:46
@Jannetty Jannetty marked this pull request as ready for review September 19, 2024 22:47
@Jannetty Jannetty changed the title Add support for percent offsets and direction in PottsLocation split method to customize split location/direction Add Offset, Direction, and Split Probability Support to PottsLocation Split Method Sep 19, 2024
@Jannetty Jannetty marked this pull request as draft September 24, 2024 18:13
@Jannetty Jannetty marked this pull request as ready for review September 24, 2024 22:21
@Jannetty Jannetty force-pushed the jannetty/overload-PottsLocation-getCenter branch from 1ec7a16 to 65c98d1 Compare September 25, 2024 04:02
@Jannetty
Copy link
Member Author

The force push above was me rebasing to develop

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.

2 participants