MSUtils.general.ComBoMicrostructureImage.ComBoMicrostructureImage#
- class MSUtils.general.ComBoMicrostructureImage.ComBoMicrostructureImage(coarse_image=None, fine_image=None, voxel_info_list=None, iface=None)#
Bases:
object
Methods
Compute the volume (in number of voxels) of each material in the 3D image.
Downscale the given 3D image data_array to the size Nx x Ny x Nz considering periodic boundaries.
Compute the periodic Laplacian of the input image.
Read a ComBoMicrostructureImage object from an HDF5 file.
Get the normal vector from a supervoxel using the Laplacian on the image.
Write the coarse data, fine data, and multi-material voxel information to an HDF5 file.
- compute_volume_fractions()#
Compute the volume (in number of voxels) of each material in the 3D image.
- downscale(data_array, Nx, Ny, Nz, min_vol_fraction=0.0, L=[1.0, 1.0, 1.0], pad_window=[0, 0, 0])#
Downscale the given 3D image data_array to the size Nx x Ny x Nz considering periodic boundaries.
- get_image_laplacian(img, L=[1.0, 1.0, 1.0])#
Compute the periodic Laplacian of the input image.
- static read(filename, group_name)#
Read a ComBoMicrostructureImage object from an HDF5 file.
- supervoxel_normal(img, lap_img, l, vol_frac=None)#
Get the normal vector from a supervoxel using the Laplacian on the image.
- write(filename, group_name)#
Write the coarse data, fine data, and multi-material voxel information to an HDF5 file.