upxo.pxtal.images module
- class upxo.pxtal.images.IMAGE_3D(image3d)[source]
Bases:
objectDescription of slot variables
img: 3D Numpy array. np.int32 fid: 0D Numpy array of list of feature IDs. np.int32 n: Number of individual features. int neigh_fid: immediate neighbour feature ID database. dict
vox: Information on voxels in the image. dataclass
vol: Total volume bvox:
- 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