Discussion:
[ITK-users] Interpolation grid
Elisabeth Pfaehler
2018-06-21 10:02:58 UTC
Permalink
Dear all,

I have one question:

I have an image and a corresponding mask with a label marking a tumor
region.
I interpolate now both images using tri-linear interpolation. For aligning
mask and image, I set in both cases the output origin to the origin of the
original image.
So far, everything is very fine. But now, I have the task to align the
interpolated image grid of both image and mask so that the grid centers
correspond for image and mask. I do not know if I was very clear with what
I want to do, but is there any way to align interpolated image grids to the
grid center and not the origin using ITK?

Thanks a lot for your help,

Elli
Dženan Zukić
2018-06-30 08:45:01 UTC
Permalink
Hi Elli,

what you seem to want to do it apply the same transform to both your
original image and its mask. There is normal image resampling
<https://itk.org/Doxygen/html/classitk_1_1ResampleImageFilter.html> (read
more about it in the software guide
<https://itk.org/ITKSoftwareGuide/html/Book2/ITKSoftwareGuide-Book2ch3.html#x26-1000003.2>).
And there is also hardening
<https://www.slicer.org/wiki/Documentation/Nightly/Modules/Transforms> of
linear transforms (affine, rigid etc), where only the image's meta-data is
modified, but pixel data is untouched.

Regards,
DÅŸenan
Post by Elisabeth Pfaehler
Dear all,
I have an image and a corresponding mask with a label marking a tumor
region.
I interpolate now both images using tri-linear interpolation. For aligning
mask and image, I set in both cases the output origin to the origin of the
original image.
So far, everything is very fine. But now, I have the task to align the
interpolated image grid of both image and mask so that the grid centers
correspond for image and mask. I do not know if I was very clear with what
I want to do, but is there any way to align interpolated image grids to the
grid center and not the origin using ITK?
Thanks a lot for your help,
Elli
The ITK community is transitioning from this mailing list to
discourse.itk.org. Please join us there!
________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
http://www.kitware.com/products/protraining.php
http://www.itk.org/Wiki/ITK_FAQ
https://itk.org/mailman/listinfo/insight-users
Continue reading on narkive:
Loading...