porespy.tools.points_to_spheres#
- porespy.tools.points_to_spheres(im)#
Inserts disks/spheres into an image at locations indicated by non-zero values
- Parameters:
im (ndarray) – The image containing nonzeros indicating the locations to insert spheres. If the non-zero values are
bool
, then the maximal size is found and used. If the non-zeros areint
then these values are used as the radii.- Returns:
spheres – A bool array with disks/spheres inserted at each nonzero location in
im
.- Return type:
ndarray