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)

Opens all images found in the target directory as single 3D numpy array

open_paraview([filename, im])

Open a paraview state file or image directly in paraview.

to_palabos(im, filename[, solid])

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

to_paraview(im, filename[, phase])

Converts an array to a paraview state file.

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

Converts an array to an STL file.

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

Converts an array to a vtk file.

zip_to_stack(f)

Reads a zip file containing 2D slices of a 3D image, and converts to a 3D stack