upxo.pxtal.images module
- class upxo.pxtal.images.IMAGE_3D(image3d)[source]
Bases:
object3D labelled image / RVE container with feature topology and properties.
Wraps a 3D integer volume (features / grains), feature IDs, neighbour graphs, voxel bookkeeping, and optional morphological / topological property stores. Used for voxel-based characterisation and ops that sit outside the MCGS temporal-slice classes.
- base, img
Source / working 3D label arrays.
- fid, n, neigh_fid, neigh_pairs
Feature IDs, count, and neighbour relations.
- vox, rve, bvox
Voxel and RVE geometry bookkeeping.
- mprop, tprop, srep
Morphological / topological / representation property stores.
- mops, tops, sops, rops
Operation helpers (morphological, topological, spatial, …).
- ctrl
- base
- vox
- rve
- coords
- mops
- img
- tops
- sops
- rops
- part()[source]
Partition the 3D image into below individual features. * closed domains (ex. grains) * total domain boundary (ex. all grain boundary segments) * domain boundary segments (ex. individual grain boundary segments) * domain boundary segment edges * domain bondarty segment edge junction points
- class mops_CLS(ctrl, fx)[source]
Bases:
objectMorphological operations
- ctrl
- fx
- part(img)[source]
Partition the 3D image into below individual features. * closed domains (ex. grains) * total domain boundary (ex. all grain boundary segments) * domain boundary segments (ex. individual grain boundary segments) * domain boundary segment edges * domain bondarty segment edge junction points
- class tops_CLS(def_cls_inst)[source]
Bases:
objectTopological operations 1. handle all ops with neighbour database
- DCI
- crop_neigh_gid(neigh_gid='O(1)', gids_to_crop=None)[source]
Removes gids in gids_to_crop from neighbour order dictionary. Both keys and appearences in values get removed. :param neigh_gid: Neighbour gid dictionary. If a string liuke ‘O(1)’ is entered,
then the corresponding will be extracted. Idf the neighbour does not exist, the method should rauise an error and stop. If the value is dictionary, then entered value will be used without any validations. Defaults to ‘O(1)’.
- Parameters:
gids_to_crop (dth.dt.ITERABLES | integer) – Grain ids to be cropped from neigh_gid. Value could be any in dth.dt.ITERABLES or of any integrer type in dth.dt.INTEGERS. Defaults to None.
Examples
gstlice.crop_neigh_gid(neigh_gid='O(1)', gids_to_crop=[1])
- maps
- no
- ntype
- pairs
- G
- H
- fid
- n
- neigh_fid
- bvox
- neigh_pairs
- mprop
- tprop
- srep