prevampire.skeletonize_images#

prevampire.prevampire.skeletonize_images(thresh_arr, img_name_list, label='skel', print_image=0)[source]#

Skeletonize a list of binary images and return the skeletonized images.

Parameters:
thresh_arrlist

A list of thresholded binary images.

img_name_listlist

A list of image names corresponding to the arrays (use the name list from take_channel).

labelstr, optional

A label to append to the skeletonized image names. Defaults to ‘skel’.

print_imageint, optional

Number of skeletonized images to display. Defaults to 0.

Returns:
tuple

A tuple containing two elements: - skel_imgs : list

A list of skeletonized images.

  • skel_name_listlist

    A list of corresponding skeletonized image names.

Raises:
UnequalLengthError

If the lengths of the input arrays are not equal.