Hi Anja,<br /><br /><blockquote type="cite" style="border-left: 1px solid blue; margin-left: 0px; padding-left: 10px">However, with this scheme you are unable to have &lt;i&gt;class member variables&lt;/i&gt; that are of templated type. Say for example, I need to read data from a file inside a class method. So, I find the underlying data type and dimensions and read the data. However, if I want to access this data later or basically store it in the class, how can I do that?<br /><br /></blockquote><div>You do not need templated class members since you can just hold a pointer to the data in a (less or even non-templated) base class like itk::ImageBase (which is not templated by data type). If you also<br />need independence of dimension, use itk::DataObject instead. Of course this means that you have to downcast it using dynamic_cast&lt;&gt; again later. <br /><br />Hope this helps,<br /> Hendrik<br /><br />-------------------------------------------------------------------<br />Brilliance is typically the act of an individual, but incredible<br />stupidity can usually be traced to an organization. - Jon Bentley<br /><br />Hendrik Belitz, Computer Scientist<br />email: hbelitz@computer.org or hbelitz@ieee.org</div><br>