jocpae / clDice

MIT License
218 stars 28 forks source link

soft skeleton #25

Closed etienne87 closed 2 years ago

etienne87 commented 2 years ago

Hi, thanks for the great package.

I would like to understand why you perform soft erosion using a sequence of 3 min_pooling with separable filters. Can't we instead just use one big min_pool (using -F.max_pool3d(-img, kernel_size=(3,3,3),stride=1,padding=1) ) ?

jocpae commented 2 years ago

Hi, that is a very good question. As discussed in the paper, our skeletonization is not perfect. It is a pure approximation of a skeleton using max and min pooling, where we cannot guarantee a correct skeleton. We tested various filters and kernels for the pooling operations, and found that it sometimes made a difference on a specific dataset. We just chose to present one version in this repo.

In short: your suggestion may very well work for your specific problem :)

etienne87 commented 2 years ago

understood, thank you!