# \#registration

**URL:** https://discourse.itk.org/tag/registration/33.md?match_all_tags=true&page=2&tags%5B%5D=registration

[Latest](https://discourse.itk.org/latest.md) · [Categories](https://discourse.itk.org/categories.md) · [Tags](https://discourse.itk.org/tags.md)

**Page:** 3

---

## [How to use ITK to segment bones in osteoporotic patients](https://discourse.itk.org/t/how-to-use-itk-to-segment-bones-in-osteoporotic-patients/6181)

<div class="topic-metadata">

**Author:** [@AeBoPi](https://discourse.itk.org/u/AeBoPi)\
**Replies:** 2\
**Last updated:** [September 6, 2023, 4:12pm UTC](https://discourse.itk.org/t/how-to-use-itk-to-segment-bones-in-osteoporotic-patients/6181 "2023-09-06T16:12:28Z")

</div>

Osteoporosis reduces bone density and thus the strength of bone in the CT data set (shown in the figure), making it impossible to use traditional thresholding techniques to handle segmentation. I noticed that the M…

---

## [Composite Transform with second Transform on resampled Image](https://discourse.itk.org/t/composite-transform-with-second-transform-on-resampled-image/6163)

<div class="topic-metadata">

**Author:** [@kenrickmoke](https://discourse.itk.org/u/kenrickmoke)\
**Replies:** 3\
**Last updated:** [August 29, 2023, 8:10am UTC](https://discourse.itk.org/t/composite-transform-with-second-transform-on-resampled-image/6163 "2023-08-29T08:10:13Z")

</div>

Hello Community, my question is regarding a cleaner way to combine multiple transforms where the latter transforms are optimized over the resampled image. So what I want to do smth like this: resampled = T1(fixed,movi…

---

## [Question regarding masked registration with different shapes](https://discourse.itk.org/t/question-regarding-masked-registration-with-different-shapes/6127)

<div class="topic-metadata">

**Author:** [@kenrickmoke](https://discourse.itk.org/u/kenrickmoke)\
**Replies:** 1\
**Last updated:** [August 7, 2023, 12:37pm UTC](https://discourse.itk.org/t/question-regarding-masked-registration-with-different-shapes/6127 "2023-08-07T12:37:39Z")

</div>

Heya, I’m wondering how the sampling works when performing registration with masks. In the elastix manual its written its sufficient to provide a image for the fixed image when there is no severe noise in the moving im…

---

## [Transform DVF from one patient to another](https://discourse.itk.org/t/transform-dvf-from-one-patient-to-another/5976)

<div class="topic-metadata">

**Author:** [@RT\_newbie](https://discourse.itk.org/u/RT_newbie)\
**Replies:** 1\
**Last updated:** [August 2, 2023, 12:17pm UTC](https://discourse.itk.org/t/transform-dvf-from-one-patient-to-another/5976 "2023-08-02T12:17:11Z")

</div>

Hi I have a question regarding mapping DVFs from one patient to another. I have two different patients. My patient A has a DVF that I would like to bring to the other patient to deform the patient with this DVF. I reg…

---

## [Unit of Vectors in a Deformation/displacement Vector Field](https://discourse.itk.org/t/unit-of-vectors-in-a-deformation-displacement-vector-field/6101)

<div class="topic-metadata">

**Author:** [@RT\_newbie](https://discourse.itk.org/u/RT_newbie)\
**Replies:** 2\
**Last updated:** [August 1, 2023, 8:05am UTC](https://discourse.itk.org/t/unit-of-vectors-in-a-deformation-displacement-vector-field/6101 "2023-08-01T08:05:42Z")

</div>

Hi I have a basic question that I cannot wrap my head around because I might have thought about a problem to solve for too long. When I non-rigidly register two images and look at the deformation field array, are the v…

---

## [is there a way that itk read sitk format ParameterFile to get DeformationField?](https://discourse.itk.org/t/is-there-a-way-that-itk-read-sitk-format-parameterfile-to-get-deformationfield/6115)

<div class="topic-metadata">

**Author:** [@zx-lhb](https://discourse.itk.org/u/zx-lhb)\
**Replies:** 2\
**Last updated:** [August 1, 2023, 3:23am UTC](https://discourse.itk.org/t/is-there-a-way-that-itk-read-sitk-format-parameterfile-to-get-deformationfield/6115 "2023-08-01T03:23:02Z")

</div>

hi, i use elastix, which implemented by sitk, to do registration, and get the ParameterFile txt, like this: (BSplineTransformSplineOrder 3) (Direction 1 0 0 0 0.9999999315500054 -0.000369999979306246 0 0.000369999980499…

---

## [Multi-scale Registration itk-elastix](https://discourse.itk.org/t/multi-scale-registration-itk-elastix/6104)

<div class="topic-metadata">

**Author:** [@calici](https://discourse.itk.org/u/calici)\
**Replies:** 2\
**Last updated:** [July 28, 2023, 2:54pm UTC](https://discourse.itk.org/t/multi-scale-registration-itk-elastix/6104 "2023-07-28T14:54:02Z")

</div>

Hi! I have a pair of pretreatment CT and posttreatment CT. I am especially interested in the registration accuracy close to the tumor region in the lungs. My previous algorithm is based on extracting lungs and register…

---

## [Errors While launching ITK](https://discourse.itk.org/t/errors-while-launching-itk/6106)

<div class="topic-metadata">

**Author:** [@Roro82](https://discourse.itk.org/u/Roro82)\
**Replies:** 1\
**Last updated:** [July 27, 2023, 6:29pm UTC](https://discourse.itk.org/t/errors-while-launching-itk/6106 "2023-07-27T18:29:56Z")

</div>

Hello everyone, In order to use the RTK software, I tried to create the ITK software thanks to the CMake tool. Therefore, I uploaded the ITK sources in the CMake software after creating two distinct folders for the sour…

---

## [Coregistration of DICOM series with different resolutions](https://discourse.itk.org/t/coregistration-of-dicom-series-with-different-resolutions/6091)

<div class="topic-metadata">

**Author:** [@vstevensf](https://discourse.itk.org/u/vstevensf)\
**Replies:** 2\
**Last updated:** [July 25, 2023, 3:26pm UTC](https://discourse.itk.org/t/coregistration-of-dicom-series-with-different-resolutions/6091 "2023-07-25T15:26:33Z")

</div>

Hi – was just looking through the documentation for ITK/SimpleITK, with the goal of coregistering two DICOM series, but with different numbers of “slices” (images) per series. For example, coregistering a series of T2 Fl…

---

## [Speed Discrepancy between ITK and SimpleITK](https://discourse.itk.org/t/speed-discrepancy-between-itk-and-simpleitk/6070)

<div class="topic-metadata">

**Author:** [@JRopers](https://discourse.itk.org/u/JRopers)\
**Replies:** 7\
**Last updated:** [July 23, 2023, 11:22pm UTC](https://discourse.itk.org/t/speed-discrepancy-between-itk-and-simpleitk/6070 "2023-07-23T23:22:42Z")

</div>

Hello again! I am currently working on registration of CT images. Originally, I ran rigid registration in SimpleITK and this was quite fast for each iteration. Overall, the registration process finished after a couple …

---

## [How to initialize CenteredTransformInitializer for 3D-3D image registration for exhaustive search optimizer](https://discourse.itk.org/t/how-to-initialize-centeredtransforminitializer-for-3d-3d-image-registration-for-exhaustive-search-optimizer/6054)

<div class="topic-metadata">

**Author:** [@thanuja](https://discourse.itk.org/u/thanuja)\
**Replies:** 2\
**Last updated:** [July 15, 2023, 2:25am UTC](https://discourse.itk.org/t/how-to-initialize-centeredtransforminitializer-for-3d-3d-image-registration-for-exhaustive-search-optimizer/6054 "2023-07-15T02:25:11Z")

</div>

Hi All, I’m following the 2D image registration example(python) for exhaustive search optimizer: https://examples.itk.org/src/numerics/optimizers/exhaustiveoptimizer/documentation I want to do the same for 3D-3D image …

---

## [ransform parameters' gradient method of normalised cross-correlation](https://discourse.itk.org/t/ransform-parameters-gradient-method-of-normalised-cross-correlation/6063)

<div class="topic-metadata">

**Author:** [@baolin](https://discourse.itk.org/u/baolin)\
**Replies:** 0\
**Last updated:** [July 12, 2023, 1:04pm UTC](https://discourse.itk.org/t/ransform-parameters-gradient-method-of-normalised-cross-correlation/6063 "2023-07-12T13:04:08Z")

</div>

I found calculation transform parameters’ gradient method of normalised cross-correlation in itkNormalizedCorrelationImageToImageMetric.hxx I don’t know why we calculate derivatives like this. I need you help to give m…

---

## [Unable to perform simple image registration](https://discourse.itk.org/t/unable-to-perform-simple-image-registration/6053)

<div class="topic-metadata">

**Author:** [@sarthakpati](https://discourse.itk.org/u/sarthakpati)\
**Replies:** 1\
**Last updated:** [July 11, 2023, 2:48pm UTC](https://discourse.itk.org/t/unable-to-perform-simple-image-registration/6053 "2023-07-11T14:48:12Z")

</div>

Hi, Duplicate of Unable to perform simple image registration · Issue #1956 · SimpleITK/SimpleITK · GitHub, as I was directed to ask the question here. I am using SimpleITK-SimpleElastix since SimpleITK-2.2.1 seem to gi…

---

## [Implementation of a Custom ImageToImage Similarity Metric for Registration](https://discourse.itk.org/t/implementation-of-a-custom-imagetoimage-similarity-metric-for-registration/6047)

<div class="topic-metadata">

**Author:** [@JRopers](https://discourse.itk.org/u/JRopers)\
**Replies:** 5\
**Last updated:** [July 10, 2023, 3:07pm UTC](https://discourse.itk.org/t/implementation-of-a-custom-imagetoimage-similarity-metric-for-registration/6047 "2023-07-10T15:07:35Z")

</div>

Hello ITK community! I am in desperate need for help as I am finding no resources on this. I am trying to implement a custom ImageToImage similarity metric for the purpose of registration. For a project, I want to regis…

---

## [Registration with ITK not working - Unexplainable Erros](https://discourse.itk.org/t/registration-with-itk-not-working-unexplainable-erros/6021)

<div class="topic-metadata">

**Author:** [@JRopers](https://discourse.itk.org/u/JRopers)\
**Replies:** 2\
**Last updated:** [June 27, 2023, 8:40am UTC](https://discourse.itk.org/t/registration-with-itk-not-working-unexplainable-erros/6021 "2023-06-27T08:40:38Z")

</div>

Hello everyone! I have come here as a last resort as I am really struggling to get ITK to run. First of all, some information on my system: OS: Windows 11 Visual Studio: 2017 Architecture: x64 C++ Standard: v141 No…

---

## [Powell optimizer cannot work properly](https://discourse.itk.org/t/powell-optimizer-cannot-work-properly/6014)

<div class="topic-metadata">

**Author:** [@suzume](https://discourse.itk.org/u/suzume)\
**Replies:** 0\
**Last updated:** [June 24, 2023, 8:48am UTC](https://discourse.itk.org/t/powell-optimizer-cannot-work-properly/6014 "2023-06-24T08:48:18Z")

</div>

Hi, I want to use the PowellOptimizer as the optimizer in registration. However, when I use PowellOptimizer, the registration cannot start and it stuck at the beginning as shown below: It always staying the “Starting…

---

## [How to automatically refine segmentation warped by deformation field (from voxelmorph).](https://discourse.itk.org/t/how-to-automatically-refine-segmentation-warped-by-deformation-field-from-voxelmorph/5901)

<div class="topic-metadata">

**Author:** [@BraveDistribution](https://discourse.itk.org/u/BraveDistribution)\
**Replies:** 12\
**Last updated:** [June 15, 2023, 5:22am UTC](https://discourse.itk.org/t/how-to-automatically-refine-segmentation-warped-by-deformation-field-from-voxelmorph/5901 "2023-06-15T05:22:56Z")

</div>

Hello, I work on cardiac cycle analysis (TEE). We want to obtain a mask of the left ventricle (or any other region of interest) during the whole cycle based on the mask manually annotated in ED/ES (end of diastole/systo…

---

## [Can't load a transform file](https://discourse.itk.org/t/cant-load-a-transform-file/5984)

<div class="topic-metadata">

**Author:** [@eddyod](https://discourse.itk.org/u/eddyod)\
**Replies:** 0\
**Last updated:** [June 9, 2023, 2:06am UTC](https://discourse.itk.org/t/cant-load-a-transform-file/5984 "2023-06-09T02:06:50Z")

</div>

Hi, I’m trying to save and load a transform but keep getting an error when I try to open it: ITK ERROR: HDF5TransformIOTemplate(0x55708c136680): Could not create an instance of “MatrixOffsetTransformBase\_double\_3\_3” T…

---

## [is it possilbe to change RefineMontage default TransformType to itk::Rigid2DTransform](https://discourse.itk.org/t/is-it-possilbe-to-change-refinemontage-default-transformtype-to-itk-rigid2dtransform/5971)

<div class="topic-metadata">

**Author:** [@allen](https://discourse.itk.org/u/allen)\
**Replies:** 1\
**Last updated:** [May 30, 2023, 1:25pm UTC](https://discourse.itk.org/t/is-it-possilbe-to-change-refinemontage-default-transformtype-to-itk-rigid2dtransform/5971 "2023-05-30T13:25:01Z")

</div>

hello, as i know the default Registration method is B-Spline Registration in CompleteMontage or RefineMontage, right. B-Spline Registration is flexiable that allows local distortion and non-rigid deformation, but it cos…

---

## [Parts of registered images missing.](https://discourse.itk.org/t/parts-of-registered-images-missing/5969)

<div class="topic-metadata">

**Author:** [@RobertTheSquirrel](https://discourse.itk.org/u/RobertTheSquirrel)\
**Replies:** 3\
**Last updated:** [May 29, 2023, 10:09pm UTC](https://discourse.itk.org/t/parts-of-registered-images-missing/5969 "2023-05-29T22:09:10Z")

</div>

Greetings! I am a uni student relatively new to image/file processing. I am encountering something which I view as an issue during the processing of my 3D images. For the record, what I do with the original DICOM images…

---

## [got OpenCL Error when using itkGPUDemonsRegistrationFilter](https://discourse.itk.org/t/got-opencl-error-when-using-itkgpudemonsregistrationfilter/5961)

<div class="topic-metadata">

**Author:** [@zx-lhb](https://discourse.itk.org/u/zx-lhb)\
**Replies:** 6\
**Last updated:** [May 27, 2023, 1:57am UTC](https://discourse.itk.org/t/got-opencl-error-when-using-itkgpudemonsregistrationfilter/5961 "2023-05-27T01:57:32Z")

</div>

hi, I used DemonsRegistrationFilter to do registration, and it workd fine. Then I noticed there has GPUDemonsRegistrationFilter, So I replaced the itkImage to itkGPUImage, everything runs well until it came to the code “…

---

## [SetShrinkFactorsPerLevel anisotropically](https://discourse.itk.org/t/setshrinkfactorsperlevel-anisotropically/5964)

<div class="topic-metadata">

**Author:** [@ktdiedrich](https://discourse.itk.org/u/ktdiedrich)\
**Replies:** 2\
**Last updated:** [May 25, 2023, 7:42pm UTC](https://discourse.itk.org/t/setshrinkfactorsperlevel-anisotropically/5964 "2023-05-25T19:42:08Z")

</div>

Is there a way to set shrink factors anisotropically? This would be for cases when one dimension of an image is much thinner than the others so it doesn’t need as much shrinking. In Simple ITK it doesn’t work to pass Se…

---

## [Registration about CT and CBCT](https://discourse.itk.org/t/registration-about-ct-and-cbct/5954)

<div class="topic-metadata">

**Author:** [@ma1282029525](https://discourse.itk.org/u/ma1282029525)\
**Replies:** 6\
**Last updated:** [May 19, 2023, 1:03pm UTC](https://discourse.itk.org/t/registration-about-ct-and-cbct/5954 "2023-05-19T13:03:23Z")

</div>

I have a set of CT images and CTCB images that need to be registered now, but they are not in the same physical space. How can I perform the conversion correctly? I know that CBCT has isocenter points, but CT does not. H…

---

## [Register two binary Images of different size and resolution](https://discourse.itk.org/t/register-two-binary-images-of-different-size-and-resolution/5936)

<div class="topic-metadata">

**Author:** [@Flo\_Van\_Wickeren](https://discourse.itk.org/u/Flo_Van_Wickeren)\
**Replies:** 6\
**Last updated:** [May 14, 2023, 9:32am UTC](https://discourse.itk.org/t/register-two-binary-images-of-different-size-and-resolution/5936 "2023-05-14T09:32:01Z")

</div>

Hello everyone, I am currently working on project, where i want to register 2 images of different modality. One image is a MALDI image with a low resolution (5um). The other image is an fluorescence image of the same se…

---

## [I need to extract only the brain portion excluding the skull from the CTA image. How can I do it using simpleITK filters? I tried otsu thresholding filters followed by connected components largest label but haven't got result i expected. Can someone help?](https://discourse.itk.org/t/i-need-to-extract-only-the-brain-portion-excluding-the-skull-from-the-cta-image-how-can-i-do-it-using-simpleitk-filters-i-tried-otsu-thresholding-filters-followed-by-connected-components-largest-label-but-havent-got-result-i-expected-can-someone-help/5935)

<div class="topic-metadata">

**Author:** [@arpan56](https://discourse.itk.org/u/arpan56)\
**Replies:** 4\
**Last updated:** [May 12, 2023, 5:10am UTC](https://discourse.itk.org/t/i-need-to-extract-only-the-brain-portion-excluding-the-skull-from-the-cta-image-how-can-i-do-it-using-simpleitk-filters-i-tried-otsu-thresholding-filters-followed-by-connected-components-largest-label-but-havent-got-result-i-expected-can-someone-help/5935 "2023-05-12T05:10:10Z")

</div>

otsu\_filter = sitk.OtsuThresholdImageFilter() otsu\_filter.SetInsideValue(0) otsu\_filter.SetOutsideValue(1) binary\_image = otsu\_filter.Execute(input\_image) cc\_filter = sitk.ConnectedComponentImageFilter() brain\_mask = cc…

---

## [Concept checking in MultiResolutionPyramidImageFilter](https://discourse.itk.org/t/concept-checking-in-multiresolutionpyramidimagefilter/5929)

<div class="topic-metadata">

**Author:** [@ericrhenry](https://discourse.itk.org/u/ericrhenry)\
**Replies:** 9\
**Last updated:** [May 11, 2023, 2:44am UTC](https://discourse.itk.org/t/concept-checking-in-multiresolutionpyramidimagefilter/5929 "2023-05-11T02:44:38Z")

</div>

I am attempting to use this filter in a registration implementation requiring moving/fixed image pixels which have a vector PixelType (e.g. Itk::Vector\<double,3\>). My first assumption is that this filter should work with…

---

## [Optimizer's stopping condition is rounding error. Registration framework](https://discourse.itk.org/t/optimizers-stopping-condition-is-rounding-error-registration-framework/4603)

<div class="topic-metadata">

**Author:** [@Luciano\_Rivetti](https://discourse.itk.org/u/Luciano_Rivetti)\
**Replies:** 4\
**Last updated:** [May 3, 2023, 8:19pm UTC](https://discourse.itk.org/t/optimizers-stopping-condition-is-rounding-error-registration-framework/4603 "2023-05-03T20:19:11Z")

</div>

Hi everyone, I’m doing B-Spline registration of CT vs CBCT images. The Registration method Im using is: registration\_method = sitk.ImageRegistrationMethod() grid\_physical\_spacing = \[15.0\]\*3 image\_physical\_size …

---

## [Output MRI images have value 0 (almost) everywhere after resampling using SimpleITK](https://discourse.itk.org/t/output-mri-images-have-value-0-almost-everywhere-after-resampling-using-simpleitk/5912)

<div class="topic-metadata">

**Author:** [@bluefire](https://discourse.itk.org/u/bluefire)\
**Replies:** 2\
**Last updated:** [May 2, 2023, 7:40am UTC](https://discourse.itk.org/t/output-mri-images-have-value-0-almost-everywhere-after-resampling-using-simpleitk/5912 "2023-05-02T07:40:28Z")

</div>

Hey! I have 3-dimensional NIfTI MRI images that I would like to resample to uniform voxel size (1, 1, 1). This works fine: img = sitk.ReadImage(img\_path) output\_spacing = \[1.0, 1.0, 1.0\] input\_spacing = img.GetSpacin…

---

## [We are happy to announce the 2nd Get Your Brain Together Hackathon!](https://discourse.itk.org/t/we-are-happy-to-announce-the-2nd-get-your-brain-together-hackathon/5917)

<div class="topic-metadata">

**Author:** [@matt.mccormick](https://discourse.itk.org/u/matt.mccormick)\
**Replies:** 0\
**Last updated:** [May 2, 2023, 12:34am UTC](https://discourse.itk.org/t/we-are-happy-to-announce-the-2nd-get-your-brain-together-hackathon/5917 "2023-05-02T00:34:19Z")

</div>

2nd Get Your Brain Together Hackathon What? The Get Your Brain Together hackathons bring together neuroimage data generators, image registration researchers, and neurodata compute infrastructure providers for a hands-o…

---

## [How to build ImageRegistration8 example with ITK-WASM?](https://discourse.itk.org/t/how-to-build-imageregistration8-example-with-itk-wasm/5800)

<div class="topic-metadata">

**Author:** [@David\_SAMSONOFF](https://discourse.itk.org/u/David_SAMSONOFF)\
**Replies:** 33\
**Last updated:** [April 13, 2023, 7:14pm UTC](https://discourse.itk.org/t/how-to-build-imageregistration8-example-with-itk-wasm/5800 "2023-04-13T19:14:28Z")

</div>

Hello, I’m trying to compile the example ImageRegistration8.cxx for WebAssembly without success. I have followed the tutorial in https://wasm.itk.org/tutorial/inputs\_outputs and it works correctly. However, when I follo…

[Previous page](https://discourse.itk.org/tag/registration/33.md?match_all_tags=true&page=1&tags%5B%5D=registration)

[Next page](https://discourse.itk.org/tag/registration/33.md?match_all_tags=true&page=3&tags%5B%5D=registration)
