|Erase part of the cube|
It is possible to exclude part of the cube from the computation of continuum and moments in two different ways. After clicking the icon, a dialog asks to choose between:
use the lowest level of the contours to mask the region outside the contour
define a polygon on the image to mask the part inside the polygon
To use the first option, contours have to be already defined on the image.
In the second case, one can define a polygon by clicking on the vertices. Once the polygon is defined, another dialog will ask to erase the part inside the polygon or cancel the action.
The masked part is put to NaN in the cube and in all the derived continuum and moments.