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

Feature: Add cuboids_from_id functionality #28

Open
wants to merge 6 commits into
base: integration
Choose a base branch
from

Conversation

dxenes1
Copy link
Contributor

@dxenes1 dxenes1 commented Mar 19, 2021

For applications in proofreading and meshing it's useful to have a way to get the cuboids that specifically belong to one ID. This functionality existed as an intermediate product of indexing and bounding boxes, so I just yanked some of that code to create a cuboid_from_id() function that returns the list of cuboid corners that contain a particular ID.

Essentially the function lives in the object_ind.py function and its inputs are a BossResource, resolution, and ID. It returns a dict object with a single fixed keyword, cuboids and the value is a list of tuples containing cuboid corners in X,Y,Z format.

EDIT:
Output are now cuboid bounds in XYZ, making it easier to pass the output dictionary object directly into get_cutout() requests in intern.

boss PR: jhuapl-boss/boss#78

spdb/spatialdb/object_indices.py Outdated Show resolved Hide resolved
@dxenes1
Copy link
Contributor Author

dxenes1 commented Aug 2, 2022

ready for merge pending approval!

@sandyhider
Copy link
Member

@dxenes1 It still says draft PR, that isn't get case correct? It also looks like one of the circleci tests have failed.

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

3 participants