Re: [ITK-users] Interpolation grid

Dženan Zukić <[email protected]> Sat, 30 Jun 2018 10:45:01 +0200
Newsgroups gmane.comp.lib.itk.user
Message-ID <CAPf2UMRGs1CQBnFCD4i+Z7GGGZjgQdwcEuhJLtbu8L6KTtdHtg@mail.gmail.com>
--===============1029533034==
Content-Type: multipart/alternative; boundary="000000000000e30ce9056fd7fab0"

--000000000000e30ce9056fd7fab0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

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=C5=BEenan

On Thu, Jun 21, 2018 at 12:03 PM Elisabeth Pfaehler <[email protected]=
m>
wrote:

> 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 alignin=
g
> mask and image, I set in both cases the output origin to the origin of th=
e
> 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 wha=
t
> I want to do, but is there any way to align interpolated image grids to t=
he
> 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
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.php
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> https://itk.org/mailman/listinfo/insight-users
>

--000000000000e30ce9056fd7fab0
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div class=3D"gmail_default" style=3D"font-family:verdana,=
sans-serif;font-size:small">Hi Elli,</div><div class=3D"gmail_default" styl=
e=3D"font-family:verdana,sans-serif;font-size:small"><br></div><div class=
=3D"gmail_default" style=3D"font-family:verdana,sans-serif;font-size:small"=
>what you seem to want to do it apply the same transform to both your origi=
nal image and its mask. There is normal image <a href=3D"https://itk.org/Do=
xygen/html/classitk_1_1ResampleImageFilter.html">resampling</a>=C2=A0(read =
more about it in the <a href=3D"https://itk.org/ITKSoftwareGuide/html/Book2=
/ITKSoftwareGuide-Book2ch3.html#x26-1000003.2">software guide</a>). And the=
re is also <a href=3D"https://www.slicer.org/wiki/Documentation/Nightly/Mod=
ules/Transforms">hardening</a>=C2=A0of linear transforms (affine, rigid etc=
), where only the image&#39;s meta-data is modified, but pixel data is unto=
uched.</div><div class=3D"gmail_default" style=3D"font-family:verdana,sans-=
serif;font-size:small"><br></div><div class=3D"gmail_default" style=3D"font=
-family:verdana,sans-serif;font-size:small">Regards,</div><div class=3D"gma=
il_default" style=3D"font-family:verdana,sans-serif;font-size:small">D=C5=
=BEenan</div></div><br><div class=3D"gmail_quote"><div dir=3D"ltr">On Thu, =
Jun 21, 2018 at 12:03 PM Elisabeth Pfaehler &lt;<a href=3D"mailto:elli.pfae=
[email protected]">[email protected]</a>&gt; wrote:<br></div><blockquote=
 class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc soli=
d;padding-left:1ex"><div dir=3D"ltr"><div>Dear all,</div><div><br></div><di=
v>I have one question:</div><div><br></div><div>I have an image and a corre=
sponding mask with a label marking a tumor region.</div><div>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=
.</div><div>So far, everything is very fine. But now, I have the task to al=
ign the interpolated image grid of both image and mask so that the grid cen=
ters 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 t=
o the grid center and not the origin using ITK?</div><div><br></div><div>Th=
anks a lot for your help,</div><div><br></div><div>Elli<br></div><div><br><=
/div></div>
The ITK community is transitioning from this mailing list to <a href=3D"htt=
p://discourse.itk.org" rel=3D"noreferrer" target=3D"_blank">discourse.itk.o=
rg</a>. Please join us there!<br>
________________________________<br>
Powered by <a href=3D"http://www.kitware.com" rel=3D"noreferrer" target=3D"=
_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href=3D"http://www.kitware.com/opensource/opensource.html" rel=3D"norefe=
rrer" target=3D"_blank">http://www.kitware.com/opensource/opensource.html</=
a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href=3D"http://www.kitware.com/products/protraining.php" rel=3D"noreferr=
er" target=3D"_blank">http://www.kitware.com/products/protraining.php</a><b=
r>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href=3D"http://www.itk.org/Wiki/ITK_FAQ" rel=3D"noreferrer" target=3D"_b=
lank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href=3D"https://itk.org/mailman/listinfo/insight-users" rel=3D"noreferre=
r" target=3D"_blank">https://itk.org/mailman/listinfo/insight-users</a><br>
</blockquote></div>

--000000000000e30ce9056fd7fab0--

--===============1029533034==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

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

Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
https://itk.org/mailman/listinfo/insight-users

--===============1029533034==--