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

Emulation of Sub-Pixel Precision #5

Open
william-silversmith opened this issue Apr 8, 2019 · 0 comments
Open

Emulation of Sub-Pixel Precision #5

william-silversmith opened this issue Apr 8, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@william-silversmith
Copy link
Contributor

The Precomputed format does not support sub-pixel precision, and so has issues when computing offsets that are not divisible by two. For instance, a dataset voxel offset of five would display correctly at mip 0, but at mip 1, would be required to be offset by either two or three, which introduces a shift of half a pixel relative to the original data.

@nkemnitz believes that tinybrain should be able to emulate sub-pixel precision. I think this is possible because (a) most datasets are ringed by black making the shift due to the boundary seem unreasonable as perturbing the boundary by a small amount should have no effect on the registration of the tissue (b) it would be possible to shift the location of tissue by half a pixel by shifting the downsample window by one pixel on source mip level.

This does present some challenges to the downsample pipeline however as it would require downloading an expanded region per task in order to provide the necessary material for the shift. Additionally, multiple shifts per a task may be in order depending on the numbers involved. Each integer truncation changes the prime factorization of the resulting number. Some of this would be solved in igneous and some would be solved in tinybrain.

@william-silversmith william-silversmith added the enhancement New feature or request label Apr 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant