Resolve "enh(viz): rework extrusion tool"
Description
This introduces a mask in the volume rendering, that is used to mark cropped regions instead of marking these regions with a special intensity value. This solves the problem of the computation of the gradient on the edges of these cropped regions and also provides smoother edges. A few extra changes were brought on the way: new toolbar icons for the cropping tool, cleaned properly the extrusions when a new image is loaded.
Closes #922 (closed)
How to test it?
- Run SightViewer and slice an image
- Load a new image when extrusions are active and observe the new loaded image is clean and does not show any extrusion
Some results
Illustration of the benefit of the approach. We can see the broken gradient on the sliced part, and on top of that, the filtering on the mask helps to get a smoother cut.
Before | After |
---|---|
Here is a visual validation performed in ngfx
about the computation of the proxy geometry:
Reference cropped image | Proxy geometry |
---|---|