Hello, everyone<br>Below are one member function in my class "LevelSetInfoReader<<div id=":bp" class="ArwC7c ckChnd">VImageDimension>". <br>The line "typedef itk::Image< PixelType, VImageDimension> ImageType;" can not compile successfully.<br>
It indicated that "ImageType" is undefined type. <br>Generally, we can directly use the template parameter variable. <br>I will be appreciated if someone can give me some suggestions. <br>Thanks at first.<br>*****************************************************************<br>
template<unsigned int VImageDimension><br>bool<br>LevelSetInfoReader<VImageDimension><br>::DoUpdate()<br>{ <br> typedef float PixelType;<br> typedef itk::Image< PixelType, VImageDimension> ImageType;<br>
// INSTANCE READER<br> typedef itk::ImageFileReader<ImageType> ReaderType;<br> ReaderType::Pointer reader = ReaderType::New();<br> reader->SetFileName(m_lsImageFile);<br> ....<br> ....<br>}<br>***************************************************************</div>