<DIV>Hello,</DIV>
<DIV> </DIV>
<DIV>I build a new filter like this:</DIV>
<DIV>template <class TInputImage, class TCriteriaImage> class ITK_EXPORT MyFilter : public <TInputImage, Image <unsigned short,::itk::GetImageDimension<TInputImage>::ImageDimension>></DIV>
<DIV> </DIV>
<DIV>Inside this filter I would like to create a vector which lengh is TCriteriaImage depth ? to do this I try this:</DIV>
<DIV>in my .h</DIV>
<DIV>typedef TCriteriaImage CriteriaImageType;</DIV>
<DIV>typedef CriteriaImageType::SizeType CriteriaISizeType;</DIV>
<DIV> </DIV>
<DIV>in my .txx</DIV>
<DIV> </DIV>
<DIV>CriteriaSizeType CriteriaSize=m_Criteria->GetRequestedRegion().GetSize();</DIV>
<DIV>unsigned int Nbcriteria=CriteriaSize[CriteriaDimension-1];</DIV>
<DIV>=> which give the depth of the criteria Image, but next line does not compile</DIV>
<DIV> </DIV>
<DIV>typedef itk::Vector<CriteriaImagePixelType, NbCriteria> MeasurementVectorType;</DIV>
<DIV>=> error: non-constant</DIV>
<DIV> </DIV>
<DIV>So, how can I access to the CriteriaImage Size to instantiate my vector with the depth of criteria inside my filter.</DIV>
<DIV> </DIV>
<DIV>Thanks again for help,</DIV>
<DIV>Lagaffe</DIV><p>
                <hr size=1>
Découvrez le nouveau Yahoo! Mail : <font color="red">250 Mo d'espace</font> de stockage pour vos mails !<br><a href="http://fr.rd.yahoo.com/mail/taglines/*http://fr.rd.yahoo.com/evt=25917/*http://fr.rd.yahoo.com/mail_fr/mail_campaigns/splash/taglines_250/default/*http://fr.promotions.yahoo.com/mail/creer28.html">Créez votre Yahoo! Mail</a>