Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENH: Change radius and gradient step defaults. #1829

Merged
merged 1 commit into from
Jan 23, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions Scripts/antsRegistrationSyN.sh
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ function reportMappingParameters {
Initial transforms: ${INITIALTRANSFORMS[@]}
Number of threads: $NUMBEROFTHREADS
Spline distance: $SPLINEDISTANCE
Linear gradient step: $LINEARGRADIENTSTEP
SyN gradient step: $SYNGRADIENTSTEP
Transform type: $TRANSFORMTYPE
CC radius: $CCRADIUS
Expand Down Expand Up @@ -283,10 +284,11 @@ INITIALTRANSFORMS=()
OUTPUTNAME=output
NUMBEROFTHREADS=0
SPLINEDISTANCE=26
SYNGRADIENTSTEP=0.1
LINEARGRADIENTSTEP=0.1
SYNGRADIENTSTEP=0.2
TRANSFORMTYPE='s'
PRECISIONTYPE='d'
CCRADIUS=4
CCRADIUS=2
MASKIMAGES=()
USEHISTOGRAMMATCHING=0
COLLAPSEOUTPUTTRANSFORMS=1
Expand Down Expand Up @@ -537,13 +539,13 @@ if [[ $TRANSFORMTYPE == 't' ]] ; then
tx=Translation
fi

RIGIDSTAGE="--transform ${tx}[ 0.1 ] \
RIGIDSTAGE="--transform ${tx}[ ${LINEARGRADIENTSTEP} ] \
--metric ${LINEARMETRIC}[ ${FIXEDIMAGES[0]},${MOVINGIMAGES[0]},1,${LINEARMETRICPARAMETER},Regular,0.25 ] \
--convergence $RIGIDCONVERGENCE \
--shrink-factors $RIGIDSHRINKFACTORS \
--smoothing-sigmas $RIGIDSMOOTHINGSIGMAS"

AFFINESTAGE="--transform Affine[ 0.1 ] \
AFFINESTAGE="--transform Affine[ ${LINEARGRADIENTSTEP} ] \
--metric ${LINEARMETRIC}[ ${FIXEDIMAGES[0]},${MOVINGIMAGES[0]},1,${LINEARMETRICPARAMETER},Regular,0.25 ] \
--convergence $AFFINECONVERGENCE \
--shrink-factors $AFFINESHRINKFACTORS \
Expand Down
8 changes: 5 additions & 3 deletions Scripts/antsRegistrationSyNQuick.sh
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@ function reportMappingParameters {
Initial transforms: ${INITIALTRANSFORMS[@]}
Number of threads: $NUMBEROFTHREADS
Spline distance: $SPLINEDISTANCE
Linear gradient step: $LINEARGRADIENTSTEP
SyN gradient step: $SYNGRADIENTSTEP
Transform type: $TRANSFORMTYPE
MI histogram bins: $NUMBEROFBINS
Expand Down Expand Up @@ -286,7 +287,8 @@ INITIALTRANSFORMS=()
OUTPUTNAME=output
NUMBEROFTHREADS=0
SPLINEDISTANCE=26
SYNGRADIENTSTEP=0.1
LINEARGRADIENTSTEP=0.1
SYNGRADIENTSTEP=0.2
TRANSFORMTYPE='s'
PRECISIONTYPE='d'
NUMBEROFBINS=32
Expand Down Expand Up @@ -541,13 +543,13 @@ if [[ $TRANSFORMTYPE == 't' ]] ; then
tx=Translation
fi

RIGIDSTAGE="--transform ${tx}[ 0.1 ] \
RIGIDSTAGE="--transform ${tx}[ ${LINEARGRADIENTSTEP} ] \
--metric ${LINEARMETRIC}[ ${FIXEDIMAGES[0]},${MOVINGIMAGES[0]},1,${LINEARMETRICPARAMETER},Regular,0.25 ] \
--convergence $RIGIDCONVERGENCE \
--shrink-factors $RIGIDSHRINKFACTORS \
--smoothing-sigmas $RIGIDSMOOTHINGSIGMAS"

AFFINESTAGE="--transform Affine[ 0.1 ] \
AFFINESTAGE="--transform Affine[ ${LINEARGRADIENTSTEP} ] \
--metric ${LINEARMETRIC}[ ${FIXEDIMAGES[0]},${MOVINGIMAGES[0]},1,${LINEARMETRICPARAMETER},Regular,0.25 ] \
--convergence $AFFINECONVERGENCE \
--shrink-factors $AFFINESHRINKFACTORS \
Expand Down
Loading