<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">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.<div><br></div><div>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.</div><div><br></div><div>This example may be of some help:</div><div><a href="http://www.itk.org/Doxygen/html/IO_2VisibleHumanStreamReadWrite_8cxx-example.html#_a6">http://www.itk.org/Doxygen/html/IO_2VisibleHumanStreamReadWrite_8cxx-example.html#_a6</a></div><div><br><div><div>On Mar 6, 2014, at 7:59 AM, kidane <<a href="mailto:hiliwi.leake@gmail.com">hiliwi.leake@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><div dir="ltr">Dear Brad,<div><br></div><div>thanks for your quick response!!</div><div><br></div><div>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.<br>
<br>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.<br>
<br>thanks  </div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Mar 6, 2014 at 1:38 PM, Bradley Lowekamp [via ITK - Users] <span dir="ltr"><<a href="x-msg://61/user/SendEmail.jtp?type=node&node=33529&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>></span> wrote:<br>
<blockquote style="border-left-width: 2px; border-left-style: solid; border-left-color: rgb(204, 204, 204); padding: 0px 1em; position: static; z-index: auto;" class="gmail_quote"><div class="">

        Have you looked into the ExtractImageFilter?
<br><br><a href="http://www.itk.org/Doxygen/html/classitk_1_1ExtractImageFilter.html" rel="nofollow" link="external" target="_blank">http://www.itk.org/Doxygen/html/classitk_1_1ExtractImageFilter.html</a><br><br>Brad
<br></div><div><div class="h5">On Mar 6, 2014, at 7:35 AM, kidane <<a href="http://user/SendEmail.jtp?type=node&node=33528&i=0" rel="nofollow" link="external" target="_blank">[hidden email]</a>> wrote:
<br><div><div class="shrinkable-quote"><br>> Hello guys, 
<br>> 
<br>> I am developing MRI-PET registration and I want to use only those PET slices
<br>> with low intensity. so could some one help me how to set start index to
<br>> consider or split the region of interest slices out of the whole folder? 
<br>> 
<br>> for example I have 120 PET slices but I want to consider only from slice
<br>> number 80 to the last and I didn't know how to extract only those slices
<br>> after reading the whole slices or before. 
<br>> 
<br>> N.B I already integrate VTK and ITK to visualize the slices and chose the
<br>> starting slice. I need to know how to pass the starting index and then to
<br>> extract only those slices after the starting index. 
<br>> 
<br>> Thanks for your help in advance.
<br>> 
<br>> 
<br>> 
<br>> --
<br>> View this message in context: <a href="http://itk-users.7.n7.nabble.com/Reading-some-part-of-DICOM-series-images-tp33527.html" rel="nofollow" link="external" target="_blank">http://itk-users.7.n7.nabble.com/Reading-some-part-of-DICOM-series-images-tp33527.html</a></div>
> Sent from the ITK - Users mailing list archive at <a href="http://Nabble.com">Nabble.com</a>.
<div class="shrinkable-quote"><br>> _____________________________________
<br>> Powered by <a href="http://www.kitware.com/" target="_blank" rel="nofollow" link="external">www.kitware.com</a>
<br>> 
<br>> Visit other Kitware open-source projects at
<br>> <a href="http://www.kitware.com/opensource/opensource.html" rel="nofollow" link="external" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>> 
<br>> Kitware offers ITK Training Courses, for more information visit:
<br>> <a href="http://www.kitware.com/products/protraining.php" rel="nofollow" link="external" target="_blank">http://www.kitware.com/products/protraining.php</a><br>> 
<br>> Please keep messages on-topic and check the ITK FAQ at:
<br>> <a href="http://www.itk.org/Wiki/ITK_FAQ" rel="nofollow" link="external" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>> 
<br>> Follow this link to subscribe/unsubscribe:
<br>> <a href="http://www.itk.org/mailman/listinfo/insight-users" rel="nofollow" link="external" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a></div></div>_____________________________________
<br>Powered by <a href="http://www.kitware.com/" target="_blank" rel="nofollow" link="external">www.kitware.com</a>
<br><br>Visit other Kitware open-source projects at
<br><a href="http://www.kitware.com/opensource/opensource.html" rel="nofollow" link="external" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br><br>Kitware offers ITK Training Courses, for more information visit:
<br><a href="http://www.kitware.com/products/protraining.php" rel="nofollow" link="external" target="_blank">http://www.kitware.com/products/protraining.php</a><br><br>Please keep messages on-topic and check the ITK FAQ at:
<br><a href="http://www.itk.org/Wiki/ITK_FAQ" rel="nofollow" link="external" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br><br>Follow this link to subscribe/unsubscribe:
<br><a href="http://www.itk.org/mailman/listinfo/insight-users" rel="nofollow" link="external" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>

        
        
        
        <br>
        <br>
        </div></div><hr noshade="" size="1">
        <div style="color:#444;font:12px tahoma,geneva,helvetica,arial,sans-serif">
                <div style="font-weight:bold">If you reply to this email, your message will be added to the discussion below:</div>
                <a href="http://itk-users.7.n7.nabble.com/Reading-some-part-of-DICOM-series-images-tp33527p33528.html" target="_blank" rel="nofollow" link="external">http://itk-users.7.n7.nabble.com/Reading-some-part-of-DICOM-series-images-tp33527p33528.html</a>
        </div>
        <div style="color:#666;font:11px tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em;line-height:1.5em">
                
                To unsubscribe from Reading some part of DICOM series images???????, <a href="" target="_blank" rel="nofollow" link="external">click here</a>.<br>

                <a href="http://itk-users.7.n7.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" rel="nofollow" style="font:9px serif" target="_blank" link="external">NAML</a>
        </div></blockquote></div><br></div>


        
        
        
<br><hr align="left" width="300">
View this message in context: <a href="http://itk-users.7.n7.nabble.com/Reading-some-part-of-DICOM-series-images-tp33527p33529.html">Re: Reading some part of DICOM series images???????</a><br>
Sent from the <a href="http://itk-users.7.n7.nabble.com/">ITK - Users mailing list archive</a> at <a href="http://Nabble.com">Nabble.com</a>.<br>_____________________________________<br>Powered by <a href="http://www.kitware.com">www.kitware.com</a><br><br>Visit other Kitware open-source projects at<br><a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br><br>Kitware offers ITK Training Courses, for more information visit:<br>http://www.kitware.com/products/protraining.php<br><br>Please keep messages on-topic and check the ITK FAQ at:<br>http://www.itk.org/Wiki/ITK_FAQ<br><br>Follow this link to subscribe/unsubscribe:<br>http://www.itk.org/mailman/listinfo/insight-users<br></blockquote></div><br></div></body></html>