<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi Antonio,<br>
    <br>
    tags are defined by a group and an element number, e.g. for one of
    my multiframe images<br>
    (0028,0008) IS [596]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #&nbsp;&nbsp; 4, 1
    NumberOfFrames<br>
    <br>
    Here group is 0x0028, element 0x0008, the tag value is 596 and gives
    you the number of frames. If you add a restriction to the series
    file names generator only images which don't vary with respect to
    the given element are treated as belonging to the same series. The
    format of the required string should be "0028|0008" as I guess
    (didn't try it!)<br>
    <br>
    Christina<br>
    <br>
    <br>
    Am 22.06.2012 09:47, schrieb Antonio:
    <blockquote
cite="mid:CAB63we+GBT7V-zSx9z-J05nzwKPdJ3ph4A=zLVdvOVcubfkzOg@mail.gmail.com"
      type="cite">Hi Christina,
      <div>sorry if i disturb you again...do you know what are "tags"
        that i should give to that function as parameter? I'm not able
        to understand it from the documentation...</div>
      <div>thank you very much</div>
      <div>Antonio<br>
        <br>
        <div class="gmail_quote">2012/6/20 Antonio <span dir="ltr">&lt;<a
              moz-do-not-send="true" href="mailto:antoniod987@gmail.com"
              target="_blank">antoniod987@gmail.com</a>&gt;</span><br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            Ok thank you very much i'll have look...hope it will be
            helpful
            <div>Thank you very much again</div>
            <div>Antonio<br>
              <br>
              <div class="gmail_quote">2012/6/20 Chr. Rossmanith <span
                  dir="ltr">&lt;<a moz-do-not-send="true"
                    href="mailto:cr@neuro.ma.uni-heidelberg.de"
                    target="_blank">cr@neuro.ma.uni-heidelberg.de</a>&gt;</span>
                <div>
                  <div class="h5"><br>
                    <blockquote class="gmail_quote" style="margin:0 0 0
                      .8ex;border-left:1px #ccc solid;padding-left:1ex">
                      <div bgcolor="#FFFFFF" text="#000000"> Hi,<br>
                        <br>
                        there is void&nbsp;<a moz-do-not-send="true"
href="http://www.itk.org/Doxygen/html/classitk_1_1GDCMSeriesFileNames.html#a7cd257cf77b31779b9d197f437a002fb"
                          target="_blank">AddSeriesRestriction</a>
                        (const std::string &amp;tag) in
                        itk::GDCMSeriesFileNames which might help you.
                        Get the tag which gives you the number of frames
                        and add it as a restriction.<br>
                        <br>
                        Christina Rossmanith<br>
                        --<br>
                        <span
style="font-size:10pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;"
                          lang="EN-GB">Dept. of Neurology</span> <br>
                        <span
style="font-size:10pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;"
                          lang="EN-GB">University Medical Center
                          Mannheim<br>
                          <br>
                        </span>Am 20.06.2012 10:04, schrieb andon:
                        <div>
                          <div>
                            <blockquote type="cite">
                              <pre>No one can help me???

andon wrote:
</pre>
                              <blockquote type="cite">
                                <pre>Hi all,
I'm quite new to itk, but i'm loving this library. Now i got a problem. I
need to read a cardiac dicom series. It contains both multiframe and
singleframe dicom. If i use the normal code, i got an error telling me
that the sizes of multiframe dicoms are not regular. This is the code i
use:
 const unsigned int InputDimension = 3;
  const unsigned int OutputDimension = 3;
 
  typedef signed short PixelType;
 
  typedef itk::Image&lt; PixelType, InputDimension &gt;
    InputImageType;
    typedef itk::Image&lt; PixelType, 2 &gt;
    InputImageType2;

  typedef itk::Image&lt; PixelType, OutputDimension &gt;
    OutputImageType;
  typedef itk::ImageSeriesReader&lt; InputImageType &gt;
    ReaderType;
  typedef itk::ImageFileReader&lt; InputImageType2 &gt;
    ReaderType2;

  typedef itk::GDCMImageIO
    ImageIOType;
  typedef itk::GDCMSeriesFileNames
    InputNamesGeneratorType;

////////////////////////////////////////////////  
// 1) Read the input series
 
  ImageIOType::Pointer gdcmIO = ImageIOType::New();
  InputNamesGeneratorType::Pointer inputNames =
InputNamesGeneratorType::New();

  inputNames-&gt;SetInputDirectory( "../data/DICOM/IMAGES" );
 
  const ReaderType::FileNamesContainer &amp; filenames =
inputNames-&gt;GetInputFileNames();
 
  ReaderType::Pointer reader = ReaderType::New();

  reader-&gt;SetImageIO( gdcmIO );

  reader-&gt;SetFileNames( filenames );

could anyone help me? 
Thank you very much
Cheers,
Antonio

</pre>
                              </blockquote>
                            </blockquote>
                            <br>
                            <div> </div>
                          </div>
                        </div>
                      </div>
                    </blockquote>
                  </div>
                </div>
              </div>
              <span class="HOEnZb"><font color="#888888"><br>
                  <br clear="all">
                  <div><br>
                  </div>
                  -- <br>
______________________________________________________________________________________________________________________________________________________________________________________________<br>
                  <br>
                  "La teoria &egrave; quando si sa tutto e niente funziona. La
                  pratica &egrave; quando tutto funziona e nessuno sa il
                  perch&eacute;. Noi abbiamo messo insieme la teoria e la
                  pratica: non c'&egrave; niente che funzioni... e nessuno sa
                  il perch&eacute;!."<br>
                  <br>
                  &nbsp;A. Einstein<br>
                </font></span></div>
          </blockquote>
        </div>
        <br>
        <br clear="all">
        <div><br>
        </div>
        -- <br>
______________________________________________________________________________________________________________________________________________________________________________________________<br>
        <br>
        "La teoria &egrave; quando si sa tutto e niente funziona. La pratica &egrave;
        quando tutto funziona e nessuno sa il perch&eacute;. Noi abbiamo messo
        insieme la teoria e la pratica: non c'&egrave; niente che funzioni... e
        nessuno sa il perch&eacute;!."<br>
        <br>
        &nbsp;A. Einstein<br>
      </div>
    </blockquote>
    <br>
  </body>
</html>