porespy.io#

Functions#

dict_to_vtk(data, filename[, voxel_size, origin])

Accepts multiple images as a dictionary and compiles them into a vtk file

folder_to_stack(target_dir, *[, max_bytes])

Read a folder of 2D grayscale images into one 3D array.

from_stl(stl_path[, method, density, fill_holes])

Converts an STL file to a boolean array

to_palabos(im, filename[, solid])

Converts an ndarray image to a text file that Palabos can read in as a

to_stl(im[, filename, voxel_size, method, fmt, ...])

Converts an voxel image to an STL mesh in a variety of formats

to_stl(im[, filename, voxel_size, method, fmt, ...])

Converts an voxel image to an STL mesh in a variety of formats

to_vtk(im, filename[, divide, downsample, voxel_size, vox])

Converts an array to a vtk file.

zip_to_stack(f, *[, max_bytes])

Read a ZIP of 2D grayscale image slices into one 3D array.