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

download mesh cutouts #580

Open
BoyuLyu opened this issue Mar 27, 2023 · 4 comments
Open

download mesh cutouts #580

BoyuLyu opened this issue Mar 27, 2023 · 4 comments

Comments

@BoyuLyu
Copy link

BoyuLyu commented Mar 27, 2023

Do you know if we can download part of the mesh similar to the segmentation? Such as obtaining the cutout given a bounding box.

@william-silversmith
Copy link
Contributor

Hi HHHit, this is not currently implemented, but it is possible for multi-resolution meshes since the lower levels are stored as a grid of meshes for random access.

@BoyuLyu
Copy link
Author

BoyuLyu commented Mar 27, 2023

Does that mean I can download the mesh of only one part of a neuron using the multi-resolution mesh? How to do it?
I learnt that the multi-resolution mesh can be accessed using
cv.mesh.get(example_cell_id, lod=lod)[example_cell_id]
But how to confine the bounding box?

@william-silversmith
Copy link
Contributor

This is something that I didn't plan on implementing b/c I wasn't sure anyone would use it. Neuroglancer does this already to implement multi-level zoom for meshes. CloudVolume just downloads all of the LOD meshes and fuses them.

I'm a bit busy atm, so you'll have to consult and modify the CloudVolume code and/or the Neuroglancer multires spec in order to do this. Here's the code where CloudVolume downloads and parses the different mesh fragments.

https://github.com/seung-lab/cloud-volume/blob/master/cloudvolume/datasource/precomputed/mesh/multilod.py#L133-L152

@BoyuLyu
Copy link
Author

BoyuLyu commented Mar 27, 2023 via email

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

2 participants