upxo.pxtalops.Characterizer module
- class upxo.pxtalops.Characterizer.mcgs_mchar_2d(xgr=None, ygr=None, mcstates=None)[source]
Bases:
object2D morphological characterisation helpers for MCGS fields / subsets.
Operates on state or label fields (
fmat/lgi) with optional sliding-window subsets, grain detection, and property extraction. Used by representativeness tooling (e.g. KREPR) and characterisation scripts underscripts/MCGS2d_characterization.Example workflow (see
scripts/MCGS2d_characterization)Build or load a synthetic 2D grain structure
Extract spatial subsets from a temporal slice
Characterise each subset (grain count / morphology)
- xgr
- ygr
- fmat
- fmin
- fmax
- lgi
- ngrains