Gradient artifact with Mask Volume effect from Editor Extra Effects?


(Hollister Herhold) #1

This is on MacOS, nightly build from October 22. A little old, but not ancient.

I’m seeing a strange “gradient” effect when using Mask Volume in Editor Extra Effects. Rather than a sharp cutoff from the inside to the outside of the masked volume, there’s this odd gradient from the normal values in the “kept” volume to the zero values outside. I’ve attached a screenshot - this gradient was NOT present in my original data. Any ideas what’s causing this? It’s kind of annoying because I use a threshold effect after masking and it causes an “envelope” to appear around my entire volume, caused by this gradient artifact.

Thanks in advance for any ideas! I’ll check to see if this also happens in 4.8…

21%20PM


(Andras Lasso) #2

By default, linear image interpolation is used in slice viewers: each displayed pixel is computed as a weighted average of voxels surrounding that 3D position. So, unless the slice is positioned exactly in the center of a voxel, you always see blending of two neighbor slices. Since masking creates huge intensity change at the boundary, the effect of this interpolation becomes more visible. So, what you see is normal and should not be a problem.

You can disable slice interpolation or position slice viewer in the center of the voxel (for example, by holding down shift button while moving the mouse in an orthogonal view).


(Hollister Herhold) #3

Hi Andras, thanks for the reply.

I’m not sure that slice interpolation is the issue - I turn it off and I still see this gradient. Let me outline what I did from the beginning and maybe that will help:

  1. Load in a big microCT volume. Specimen is fossil insect in amber.
  2. Outline specimen area in slices to prep for “Fill between slices”.
  3. Use fill between slices to create segment containing only insect.
  4. Use Mask Volume to mask off anything not containing insect.
  5. Use threshold to “select” insect.

This is where I see these “gradient” areas at the border created by Fill Between Slices.

What do you think?

Thanks in advance for your time!!!

-Hollister


(Andras Lasso) #4

Can you share the scene (or reproduce it on a sample data set and share that scene)?


(Hollister Herhold) #5

Ugh. I had a test scene that I thought reproduced what I was seeing, and I was writing up the procedure and now I can’t reproduce it.

I do have one question - does “Mask Volume” in Segment Editor Extra Effects operate differently depending on whether or not interpolation is enabled for the master volume in question? Or is interpolation just for viewing in slice viewers?

Thank you, and sorry for the confusion!

-Hollister


(Murat Maga) #6

My understanding is that it is onle for viewing in slice viewers: