[ITK Community] [Insight-users] Reading some part of DICOM series images???????
Bradley Lowekamp
blowekamp at mail.nih.gov
Thu Mar 6 08:05:01 EST 2014
If you connect the Extract to the Reader, and only call the Update on the ExtractImageFilter it should do streamed reading of just the defined region.
But before you can define you region to need to know the largest possible region. You can call the Reader's "UpdateLargestPossibleRegion" method to obtain the size of the whole volume. This will just read the meta-data of the series, and not the actual image data.
This example may be of some help:
http://www.itk.org/Doxygen/html/IO_2VisibleHumanStreamReadWrite_8cxx-example.html#_a6
On Mar 6, 2014, at 7:59 AM, kidane <hiliwi.leake at gmail.com> wrote:
> Dear Brad,
>
> thanks for your quick response!!
>
> But my problem is not about cropping an image. rather I am getting difficulty to select some specific slice sequences from the whole folder before reading or after reading.
>
> I have a folder containing 100ds of PET slices and I want to extract only 20-30 of the slices sequences from each folder. I was wondering if you could help me how to extract this slices by setting a start index before updating the read->update or after.
>
> thanks
>
>
> On Thu, Mar 6, 2014 at 1:38 PM, Bradley Lowekamp [via ITK - Users] <[hidden email]> wrote:
> Have you looked into the ExtractImageFilter?
>
> http://www.itk.org/Doxygen/html/classitk_1_1ExtractImageFilter.html
>
> Brad
> On Mar 6, 2014, at 7:35 AM, kidane <[hidden email]> wrote:
>
> > Hello guys,
> >
> > I am developing MRI-PET registration and I want to use only those PET slices
> > with low intensity. so could some one help me how to set start index to
> > consider or split the region of interest slices out of the whole folder?
> >
> > for example I have 120 PET slices but I want to consider only from slice
> > number 80 to the last and I didn't know how to extract only those slices
> > after reading the whole slices or before.
> >
> > N.B I already integrate VTK and ITK to visualize the slices and chose the
> > starting slice. I need to know how to pass the starting index and then to
> > extract only those slices after the starting index.
> >
> > Thanks for your help in advance.
> >
> >
> >
> > --
> > View this message in context: http://itk-users.7.n7.nabble.com/Reading-some-part-of-DICOM-series-images-tp33527.html
> > Sent from the ITK - Users mailing list archive at Nabble.com.
>
> > _____________________________________
> > 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://www.itk.org/mailman/listinfo/insight-users
> _____________________________________
> 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://www.itk.org/mailman/listinfo/insight-users
>
>
> If you reply to this email, your message will be added to the discussion below:
> http://itk-users.7.n7.nabble.com/Reading-some-part-of-DICOM-series-images-tp33527p33528.html
> To unsubscribe from Reading some part of DICOM series images???????, click here.
> NAML
>
>
> View this message in context: Re: Reading some part of DICOM series images???????
> Sent from the ITK - Users mailing list archive at Nabble.com.
> _____________________________________
> 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://www.itk.org/mailman/listinfo/insight-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20140306/077d2c40/attachment-0002.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://www.itk.org/mailman/listinfo/insight-users
More information about the Community
mailing list