olorSpace, useSingle ) </strong></div>

<h2><a name="_description"></a>DESCRIPTION <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2>
<div class="fragment"><pre class="comment"> Convert RGB image to other color spaces (highly optimized).

 If colorSpace=='gray' transforms I to grayscale. The output is within
 numerical error of Matlab's rgb2gray, except ~10x faster. The output in
 this case is hxwx1, and while the input must be hxwx3 for all other
 cases, the input for this case can also be h