[ITK] [ITK-users] SimpleITK | ImagePositionPatient and origins

Matias Montroull matimontg at gmail.com
Thu Mar 26 09:38:12 EDT 2015


Hi Brad, I just created a JIRA issue:
https://issues.itk.org/jira/browse/SIMPLEITK-627
Regards,
Matias.

On Thu, Mar 26, 2015 at 10:12 AM, Bradley Lowekamp <blowekamp at mail.nih.gov>
wrote:

> Hello,
>
> Can you please create a JIRA ticket to track this issue?
>
> https://issues.itk.org/jira/browse/SIMPLEITK
>
> Thank you,
> Brad
>
> On Mar 25, 2015, at 6:17 PM, Matias Montroull <matimontg at gmail.com> wrote:
>
> > Hi,
> >
> > I was testing the new ImageSeriesWriter in the new SimpleITK 0.9 Beta
> and for some reason it's not copying the Image Position Patient information
> when writing the slices.
> >
> > any ideas why this happens?
> >
> > Here's my code:
> >   ImageFileReader imgreader_resultado = new ImageFileReader();
> >             imgreader_resultado.SetFileName(path_pacientes +
> nombre_paciente + @"\Fusion\" + "resultado.mha");
> >             itk.simple.Image imgresultado =
> imgreader_resultado.Execute();
> >             ImageSeriesWriter SeriesWriter_resultado = new
> ImageSeriesWriter();
> >             VectorString vs_resultado = new VectorString();
> >             for (int i = 0; i < imgresultado.GetSize()[2]; ++i)
> >             {
> >                 vs_resultado.Add(path_pacientes + nombre_paciente +
> @"\Fusion\Resultado\" + "imagen" + i + ".dcm");
> >             }
> >
> >             SeriesWriter_resultado.SetFileNames(vs_resultado);
> >
> >             if (!Directory.Exists(path_pacientes + nombre_paciente +
> @"\Fusion\Resultado")) //Si se abrió el plan y nunca se hizo registración
> previamente, se crea el directorio Registración
> >             {
> >                 Directory.CreateDirectory(path_pacientes +
> nombre_paciente + @"\Fusion\Resultado");
> >             }
> >
> >             SeriesWriter_resultado.Execute(imgresultado, vs_resultado,
> false);
> >
> > Thank you,
> >
> > Matias.
> > _____________________________________
> > 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:
> > http://public.kitware.com/mailman/listinfo/insight-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20150326/8ce25a80/attachment.html>
-------------- next part --------------
_____________________________________
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:
http://public.kitware.com/mailman/listinfo/insight-users


More information about the Community mailing list