-
Notifications
You must be signed in to change notification settings - Fork 13
Downloading annotation layer with Python library, but downloaded annotation is not the same size as the actual image layer? #909
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
Comments
I've tested the download on all of our annotations and the size that is being downloaded is not the original size...it is some multiple of 32 |
Hi and thanks for your report! You are rightly confused… Some context: volume annotations in webknossos are internally stored in 32³-voxel chunks. This means that some of these chunks “protrude” from the dataset bounding box if the bounding box is not itself divisible by 32 in a dimension. Furthermore, these chunks are saved sparsely, so only where a brush stroke has occurred, a chunk is stored. Now the confusing part is what happens in I would assume that the array data is actually complete and correct. It is only the bounding box metadata that differs from what you expected. I believe you could just call You could also use We understand that this is confusing and there should probably be a convenience function for this. We will have a look and discuss this internally. Trouble is that some of our datasets are multiple teravoxels in size, but only smaller areas are annotated, so we are reluctant to always set the bbox to the full input dataset’s. I hope this helps! |
Thank you very much for your prompt response. This makes a lot of sense and now my annotations are aligned! |
Hello,
I've been using the following code to programmatically download our annotations from our WebKnossos instance. However, I've run into an issue, where the size of the downloaded annotation cutout is not the same size as the underlying image cutout. I'm not sure why the size is different as everything that appears on the UI corresponds to the original image layer size.
Size of our cutout uploaded to WK: 816 × 816 × 6
However, using this code, the size downloaded is 832 x 640 x 6.
Shape is 832 x 640 x 6 ??
Python
webknossos 0.10.24
Webknossos U.I version 22.09.0

The text was updated successfully, but these errors were encountered: