Alternately, you can use the itkImagePCAShapeModelEstimator to calculate the mean image along with an eigenanalysis of the variation:<div><br></div><div><a href="http://www.itk.org/Doxygen318/html/classitk_1_1ImagePCAShapeModelEstimator.html">http://www.itk.org/Doxygen318/html/classitk_1_1ImagePCAShapeModelEstimator.html</a></div>

<div><br></div><div><a href="http://www.itk.org/Doxygen318/html/classitk_1_1ImagePCAShapeModelEstimator.html"></a>- Wes<br><br><div class="gmail_quote">2010/10/28 Jon Haitz Legarreta Gorroño <span dir="ltr">&lt;<a href="mailto:jhlegarreta@vicomtech.org">jhlegarreta@vicomtech.org</a>&gt;</span><br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

  
    
    
  
  <div text="#000000" bgcolor="#ffffff">
    Dear Luis,<br>
    the same question arose in the mailing list yesterday; you can have
    a look at the corresponding thread:<br>
    <a href="http://old.nabble.com/hi%2Call-ts30063788.html" target="_blank">http://old.nabble.com/hi%2Call-ts30063788.html</a><br>
    <br>
    Best regards,<br>
    JON HAITZ<br>
    <br>
    <br>
    <br>
    <br>
    El 28/10/2010 3:55, Luis Roberto P. Paula escribió:
    <blockquote type="cite"><div><div></div><div class="h5">Hi All,
      <div><br>
      </div>
      <div>Is there an appropriate class to calculate the mean of n
        images?</div>
      <div><br>
      </div>
      <div>Will I have to accumulate the images first and then divide it
        by the scalar n?</div>
      <div><br>
      </div>
      <div>Thanks &amp; Regards,</div>
      <div>Luis</div>
      </div></div><pre><fieldset></fieldset>
_____________________________________
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a>

Visit other Kitware open-source projects at
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a>

Kitware offers ITK Training Courses, for more information visit:
<a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/products/protraining.html</a>

Please keep messages on-topic and check the ITK FAQ at:
<a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a>

Follow this link to subscribe/unsubscribe:
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a>
</pre>
    </blockquote>
    <br>
    <div>-- <br>
      
      
      
      
      <table align="center" border="0" cellpadding="0" cellspacing="0">
        <tbody>
          <tr>
            <td bgcolor="#00afdb">
              <div align="left"><img alt="Vicomtech logotipo" width="211" height="126"></div>
            </td>
            <td valign="middle" bgcolor="#00afdb">
              <table width="100%" align="center" border="0" cellpadding="0">
                <tbody>
                  <tr>
                    <td>
                      <table align="center" border="0" cellpadding="0">
                        <tbody>
                          <tr>
                            <td><span>Jon Haitz Legarreta Gorroño</span></td>
                          </tr>
                          <tr>
                            <td><span>Investigador /
                                Researcher</span></td>
                          </tr>
                          <tr>
                            <td><span>eSalud y
                                Aplicaciones Biomédicas / eHealth and
                                Biomedical Applications</span></td>
                          </tr>
                          <tr>
                            <td><span><a href="mailto:jhlegarreta@vicomtech.org" target="_blank">jhlegarreta@vicomtech.org</a></span></td>
                          </tr>
                        </tbody>
                      </table>
                    </td>
                  </tr>
                </tbody>
              </table>
            </td>
            <td width="10" bgcolor="#00afdb"> </td>
            <td valign="middle" bgcolor="#00afdb">
              <table width="100%" align="center" border="0" cellpadding="0">
                <tbody>
                  <tr>
                    <td>
                      <table align="center" border="0" cellpadding="0">
                        <tbody>
                          <tr>
                            <td colspan="2">Mikeletegi Pasealekua, 57 -
                              Parque Tecnológico</td>
                          </tr>
                          <tr>
                            <td colspan="2">20009 Donostia -
                              San Sebastián - Spain</td>
                          </tr>
                          <tr>
                            <td width="1">Tel: </td>
                            <td align="left">+[34] 943 30 92 30</td>
                          </tr>
                          <tr>
                            <td width="1">Fax: </td>
                            <td align="left">+[34] 943 30 93 93</td>
                          </tr>
                          <tr>
                            <td colspan="2"><a href="http://www.vicomtech.org" target="_blank">www.vicomtech.org</a></td>
                          </tr>
                        </tbody>
                      </table>
                    </td>
                  </tr>
                </tbody>
              </table>
            </td>
            <td width="10" bgcolor="#00afdb"> </td>
            <td bgcolor="#00afdb">
              <div align="right"><img width="134" height="126"></div>
            </td>
          </tr>
        </tbody>
      </table>
      <br>
      <table align="center" border="0" cellpadding="0" cellspacing="0">
        <tbody>
          <tr>
            <td> <span> Este mensaje se dirige
                exclusivamente a su destinatario. La información
                incluida en el presente correo es confidencial sometida
                a secreto profesional, especialmente en lo que respecta
                a los datos de carácter personal, cuya divulgación está
                prohibida, en virtud de la legislación vigente. Si usted
                no es el destinatario legítimo y lo ha recibido por
                error o tiene conocimiento del mismo por cualquier
                motivo, le rogamos que nos lo comunique por este medio y
                proceda a destruirlo o borrarlo. En todo caso abstengase
                de utilizar, reproducir, alterar, archivar o comunicar a
                terceros el presente mensaje así como los ficheros
                anexos, todo ello bajo pena de incurrir en
                responsabilidades legales. Cualquier opinión contenida
                en este correo es exclusiva de su autor y no representa
                necesariamente la opinión de ASOCIACIÓN CENTRO DE
                TECNOLOGÍAS DE INTERACCIÓN VISUAL Y COMUNICACIONES
                VICOMTech (en adelante Vicomtech) El emisor no garantiza
                la integridad, rapidez o seguridad del presente correo,
                ni se responsabiliza de posibles perjuicios derivados de
                la captura, incorporaciones de virus o cualesquiera
                otras manipulaciones efectuadas por terceros.<br>
                Con motivo de la entrada en vigor de la Ley 34/2002, de
                11 de julio, de Servicios de la Sociedad de la
                Información y de Comercio Electrónico, le informamos que
                pueden revocar en cualquier momento, de forma sencilla y
                gratuita, el consentimiento para la recepción de
                mensajes de <a href="http://vicomtech.org" target="_blank">vicomtech.org</a> en <a href="mailto:info.lopd@vicomtech.org" target="_blank">info.lopd@vicomtech.org</a>.
              </span> </td>
          </tr>
        </tbody>
      </table>
    </div>
  </div>

<br>_____________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" 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.html" target="_blank">http://www.kitware.com/products/protraining.html</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" 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" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Wesley D. Turner, Ph.D.<br>Kitware, Inc.<br>Technical Leader<br>28 Corporate Drive<br>Clifton Park, NY 12065-8662<br>Phone: 518-881-4920<br>
</div>