-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ENH: Hierarchical approach to 3d registration
- Loading branch information
1 parent
7a2dd0f
commit b3a8fc1
Showing
12 changed files
with
962 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#----------------------------------------------------------------------------- | ||
set(MODULE_NAME Tracking3D) | ||
|
||
#----------------------------------------------------------------------------- | ||
set(MODULE_PYTHON_SCRIPTS | ||
${MODULE_NAME}.py | ||
${MODULE_NAME}Lib/__init__.py | ||
${MODULE_NAME}Lib/TreeNode.py | ||
) | ||
|
||
set(MODULE_PYTHON_RESOURCES | ||
Resources/Icons/${MODULE_NAME}.png | ||
Resources/UI/${MODULE_NAME}.ui | ||
Resources/ParameterFiles/rigid.txt | ||
) | ||
|
||
#----------------------------------------------------------------------------- | ||
slicerMacroBuildScriptedModule( | ||
NAME ${MODULE_NAME} | ||
SCRIPTS ${MODULE_PYTHON_SCRIPTS} | ||
RESOURCES ${MODULE_PYTHON_RESOURCES} | ||
WITH_GENERIC_TESTS | ||
) | ||
|
||
#----------------------------------------------------------------------------- | ||
if(BUILD_TESTING) | ||
|
||
# Register the unittest subclass in the main script as a ctest. | ||
# Note that the test will also be available at runtime. | ||
slicer_add_python_unittest(SCRIPT ${MODULE_NAME}.py) | ||
|
||
# Additional build-time testing | ||
add_subdirectory(Testing) | ||
endif() |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
(FixedInternalImagePixelType "float") | ||
(MovingInternalImagePixelType "float") | ||
|
||
// **************** Main Components ************************** | ||
|
||
(Registration "MultiResolutionRegistration") | ||
(Interpolator "BSplineInterpolator") | ||
(ResampleInterpolator "FinalBSplineInterpolator") | ||
(Resampler "DefaultResampler") | ||
(FixedImagePyramid "FixedSmoothingImagePyramid") | ||
(MovingImagePyramid "MovingSmoothingImagePyramid") | ||
|
||
(Optimizer "AdaptiveStochasticGradientDescent") | ||
(Transform "EulerTransform") | ||
(Metric "AdvancedMattesMutualInformation") | ||
|
||
// ***************** Transformation ************************** | ||
|
||
(AutomaticScalesEstimation "true") | ||
(AutomaticTransformInitialization "true") | ||
(HowToCombineTransforms "Compose") | ||
|
||
//Save composite ITK transform | ||
(ITKTransformOutputFileNameExtension "h5") | ||
(WriteITKCompositeTransform "true") | ||
|
||
// ******************* Similarity measure ********************* | ||
|
||
(NumberOfHistogramBins 64) | ||
(ErodeMask "false") | ||
|
||
// ******************** Multiresolution ********************** | ||
|
||
(NumberOfResolutions 3) | ||
(ImagePyramidSchedule 8 8 2 4 4 1 1 1 1 ) | ||
|
||
// ******************* Optimizer **************************** | ||
|
||
(MaximumNumberOfIterations 1000) | ||
(MaximumStepLength 6.0) | ||
(RequiredRatioOfValidSamples 0.01) | ||
|
||
// **************** Image sampling ********************** | ||
|
||
(NumberOfSpatialSamples 2000) | ||
(NewSamplesEveryIteration "true") | ||
(ImageSampler "Random") | ||
|
||
// ************* Interpolation and Resampling **************** | ||
|
||
(BSplineInterpolationOrder 1) | ||
(FinalBSplineInterpolationOrder 3) | ||
|
||
(DefaultPixelValue 0) | ||
(WriteResultImage "true") | ||
(ResultImagePixelType "short") | ||
(ResultImageFormat "mhd") | ||
|
Oops, something went wrong.