porespy.io.folder_to_stack#

porespy.io.folder_to_stack(target_dir)#

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

Parameters:

target_dir (str or path object) – The location of the folder containing the images.

Returns:

im – A 3D numpy array of the imported image.

Return type:

ndarray

Notes

The files should be named with leading numerical values indicating their layer number, like 001, 002, etc.