Open zhang-qiang-github opened 3 years ago
Hi @zhang-qiang-github , please make sure you have read the demo for 3D images. https://github.com/taigw/GeodisTK/blob/master/demo3d.py If you can run that demo, please use similar hyper-parameters as that demo in your case.
@taigw, I am sorry that the wrong result is caused by wrong input. The input spacing should be [1, 1, 1], but I just input one value.
In addition, is it possible to speed the code up by multi-thread/OMP/cuda?
@zhang-qiang-github , Thanks for your suggestion. I think in a single forward pass, the value of each pixel depends on its left, up and left up neighbors, which makes it hard to use parallel computation. But computation for the left up and right lower regions of a single seed may be parallelly computed.
I have problem to calculate geodesic distance for three dimension image. Please have a look for the following code:
The result is:
The left picture show the geodesic distance calculate from 2D image, and the right picture show the geodesic distance calculate from 3D image. The red arrow indicate the aorta, and it is where seed point locate at.
The left geodesic distance is what I expect, but the right distance is wrong.
Is there anything wrong?