hgueziri / FastDRaW-Segmentation

FastDRaW – Fast Delineation by Random Walker
MIT License
4 stars 0 forks source link

Hard coded aspect ratio? #3

Open dvolgyes opened 6 years ago

dvolgyes commented 6 years ago

Hi,

It seems to me that the aspect ratio of the image is hard coded. I see a strange /0.2 in line 122 in fastdraw.py. For me, it seems that the assumed aspect ratio of a 3D image is (1,1,k), and this /0.2 part is meant to scale distances. I might misinterpret the line, but if this is the case, then I would recommend a default aspect ratio in the constructor, like aspect=None (which would become later: aspect = (1,) * len(image.shape)) or a user provided tuple which must have same dimensions like the image. (len(aspect) == len(image.shape))