Skip to content
New issue

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

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

Already on GitHub? # to your account

Add segmentation into the CookieCutter mask #124

Open
sweverett opened this issue Mar 3, 2023 · 2 comments
Open

Add segmentation into the CookieCutter mask #124

sweverett opened this issue Mar 3, 2023 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@sweverett
Copy link
Collaborator

As the title says. We want to put segmentation information into the CookieCutter mask, but in a way that does not clobber with the OBA bit mask definition. This can probably be done by adding the number of bits reserved to the bit mask to the segmap numbers

@sweverett sweverett added the enhancement New feature or request label Mar 3, 2023
@sweverett sweverett self-assigned this Mar 3, 2023
@sweverett
Copy link
Collaborator Author

First pass: Add the actual segmentation values, plus the numbers used for the OBA bitmask. If the number of objects exceeds 2^16, replace w/ sentinel value (the code to recover the true value is the same amount of work as doing it for all, and we have to save 16 bit ints as a

second pass: remap all segmentation values into a this_obj, sky, and neighbor value in the bitmask

@sweverett
Copy link
Collaborator Author

After second thought, keeping all segmentation values will bump the mask requirement from a ui1 (8bit) to a ui2 (16 bit). While the first is overkill if we're not keeping all seg values, it is still likely more compressible.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant