FilFinder icon indicating copy to clipboard operation
FilFinder copied to clipboard

Return individual skeletons over the full original image.

Open e-koch opened this issue 5 years ago • 0 comments

It's not straightforward to return a single filament back into the original image shape. A convenience function of the following would be good to add (fil is a FilFinder2D instance):

from fil_finder.pixel_ident import recombine_skeletons

# For ith filament in fil.filaments
i = 0
mask_i = recombine_skeletons([fil.filaments[i].skeleton()], [fil.array_offsets[i]], fil.image.shape, 0)

e-koch avatar Apr 14 '20 03:04 e-koch