title: Storing a Type as a Variable? for a templated class?
body: <p>i have a templated class, with the following definition:</p>
  
  <pre><code>ImageRescaleDepth&lt;PIXEL_TYPE_INPUT, PIXEL_TYPE_OUTPUT&gt;
  </code></pre>
  
  <p>This class uses templates, for pretty much everything since its supposed to be generic. Anyways i need to make a command line version of this application, to do image rescaling, currently the system is setup to handle the following types:</p>
  
  <pre><code>1BIT, 2BIT, 4BIT, unsigned 8 bit, signed 8 bit, unsigned 16 bit, signed 16 bit, unsigned 32 bit, signed 32 bit, float, double.
  </code></pre>
  
  <p>These are passed in by command line, and i convert them to an enum. </p>
  
  <p>I cannot modify the ImageRescaleDepth class since its part of a library. and i don't exactly want to create a giant switch or eliseif block, since there would be a 100 combinations. Is it possible, i can just somehow store these types as variables? Then pass them to the constructor?</p>