pyushkevich / greedy

Very fast greedy diffeomorphic registration code
GNU General Public License v3.0
62 stars 17 forks source link

Smoothing cannot be zero #12

Open cookpa opened 5 years ago

cookpa commented 5 years ago

I would like to evaluate some parameter choices against ANTs defaults, which use zero smoothing in some contexts. Using -s 1.732vox 0vox (ANTs default) in registration causes a runtime error:

src/ITK-4.13.2/Modules/Filtering/Smoothing/include/itkRecursiveGaussianImageFilter.hxx:344:
itk::ERROR: RecursiveGaussianImageFilter(0x3e34950): Sigma must be greater than zero.

Similarly, -ri LABEL 0vox fails.

Using a small number is a viable workaround.

pyushkevich commented 5 years ago

Thanks, Phil! I need to put an if statement in the code if sigma is zero.

Paul

On Thu, Aug 15, 2019 at 2:46 PM Philip Cook notifications@github.com wrote:

I would like to evaluate some parameter choices against ANTs defaults, which use zero smoothing in some contexts. Using -s 1.732vox 0vox (ANTs default) in registration causes a runtime error:

src/ITK-4.13.2/Modules/Filtering/Smoothing/include/itkRecursiveGaussianImageFilter.hxx:344: itk::ERROR: RecursiveGaussianImageFilter(0x3e34950): Sigma must be greater than zero.

Similarly, -ri LABEL 0vox fails.

Using a small number is a viable workaround.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/pyushkevich/greedy/issues/12?email_source=notifications&email_token=AAJPEWYR3AL2OWDPEQ35MH3QEWQALA5CNFSM4IMA2GNKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HFP2I5A, or mute the thread https://github.com/notifications/unsubscribe-auth/AAJPEW3IGKFFLWHAHJHRULLQEWQALANCNFSM4IMA2GNA .

-- Paul A. Yushkevich, Ph.D. Associate Professor Penn Image Computing and Science Laboratory Department of Radiology University of Pennsylvania