[Insight-users] PAR/REC to DICOM

Bill Lorensen bill.lorensen at gmail.com
Sat Mar 14 20:49:05 EDT 2009


Can you make a dataset available? This ImageIO is not well tested. We
could use some small sample datasets to improve its robustness.


On Sat, Mar 14, 2009 at 8:13 AM, Pelt, R.F.P. van <R.F.P.v.Pelt at tue.nl> wrote:
> Dear all,
>
>
>
> I’m trying to convert a set of Philips PAR/REC files to a dicom.
>
> However, I get this error message from itk::PhilipsRECImageIO
>
> Description: PhilipsRECImageIOSetupSliceIndex:
> imageTypesScanSequenceIndex.size() != parParam.num_slice_repetitions
>
>
>
> Does anyone know what the problem is here? How can I resolve this?
>
>
>
> Thanks in advance.
>
>
>
> Regards,
>
>
>
> Roy
>
>
>
>   typedef unsigned short      InputPixelType;
>
>   typedef unsigned short      OutputPixelType;
>
>   const   unsigned int        Dimension = 3;
>
>
>
>   typedef itk::Image< InputPixelType,  Dimension >    InputImage;
>
>   typedef itk::Image< OutputPixelType, Dimension >    OutputImage;
>
>
>
>   typedef itk::ImageFileReader< InputImage  >  Reader;
>
>   typedef itk::ImageFileWriter< OutputImage >  Writer;
>
>
>
>   itk::PhilipsRECImageIOFactory::RegisterOneFactory();
>
>   itk::PhilipsRECImageIO::Pointer parRecIO = itk::PhilipsRECImageIO::New();
>
>
>
>   Reader::Pointer reader = Reader::New();
>
>   Writer::Pointer writer = Writer::New();
>
>
>
>   reader->SetFileName( inputFilename  );
>
>   reader->SetImageIO(parRecIO);
>
>
>
>   writer->SetFileName( outputFilename );
>
>   writer->SetInput(reader->GetOutput());
>
>   writer->Update();
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> 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://www.itk.org/mailman/listinfo/insight-users
>
>


More information about the Insight-users mailing list