add keywords for all nodes

This commit is contained in:
2026-04-04 14:58:56 -07:00
parent 69f1d1bebd
commit a0d3b22f18
195 changed files with 437 additions and 198 deletions

View File

@@ -181,6 +181,8 @@ class GrainVisualization:
"Equivalent to Gwyddion's grain selection visualization (grain_makesel)."
)
KEYWORDS = ("ellipse", "disc", "bounding box", "centroid", "inscribed", "label")
def process(self, field: DataField, mask: np.ndarray, style: str, fill: bool) -> tuple:
mask_bool = mask_to_bool(mask)
labels, n_grains = label(mask_bool.astype(np.int32))