-
Notifications
You must be signed in to change notification settings - Fork 1
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
Viz: depth coded MinIP #32
Comments
Another interesting projection would be to just do a full RGBA 3D to 2D projection. Start with a brightfield, then from the deepest image to the top, for each pixel just modify accumulator by current slices color, letting transparency decide how much to mod the color by. This is just normal 3D imaging, with RGBA, i.e. software for this already exists. There's probably a 3D viewer that could interactively move the perspective around that volume. Surely the web has such a tool already. |
Not exactly what I need, but neat: numpy how to map an array to values in an LUT:
|
A different implementation might be: first a projection reduction phase. This is just like regular MinIP processing but there is additionally a 2D array of RGB values. Start from deepest part of stack. At each z-depth
Ties get assigned shallower depth's color b/c closer to "eye and we're coding depth illusion. After the projection reduction phase, we know what color each pixel should be but we need to then darken/lighten the color proportional to the MinIP value determined in grayscale. Then take the minimal intensity value in the grayscale MinIP projection and use it to darken/light the rainbow color that was accumulated during the projection reduction phase. Hopefully, that's depth coded microscopy stack. |
The scaled colormap might be as simple as *:
That maps it down to 8 values. So, we'd want to scale it to max_z_index
Not that I want to cm(foo) right now. I just want that cm, which is the value to store in RGB version of projection, at pixels that just re-min'd in grayscale version. |
Scikit-image has some things to say: Tinting gray-scale images |
Depth coding can also be used in a volumetric context: via: |
Depth coding is:
|
Novelty:
Algorithm:
Finally, just show the color accumulator image, with or without transparency (dunno).
Bonus, take those images saved to disk (depth coded with inverse intensity as opacity), start with a pure white brightfield then merge that with each colored z-index image. That's what it would look like with light shining through but color filtered to depth. Then animate that as a GIF/movie. Pair that with the depth colored 2D projection mugshot.
The text was updated successfully, but these errors were encountered: