Added support for NChannelImage and ExtendToNChannel


Sorry for all the previous open/close pull requests. This is the only merge to look at.

I'll remove and push back the changes.
It was meant to help "backward compatibility" for me and Chris.



On Thu, Jul 10, 2014 at 2:24 PM, J.L Stevens <notifications@github.com>
wrote:

> In imagen/image.py:
>
> > +
> > +    def load_npy(self, filename):
> > +        self.last_filename=filename
> > +
> > +        self.channel_data = []
> > +        file_channel_data = numpy.load(filename)
> > +
> > +        file_channel_data = file_channel_data / file_channel_data.max() # SPG: left from CB. Not sure why we want this, though
> > +
> > +        for i in range(file_channel_data.shape[2]):
> > +            self.channel_data.append(file_channel_data[:,:,i])
> > +
> > +        #self._image_red = file_channel_data[:,:,0]
> > +        #self._image_green = file_channel_data[:,:,1]
> > +        #self._image_blue = file_channel_data[:,:,2]
> > +
>
> This commented code should either be uncommented or removed.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/ioam/imagen/pull/29/files#r14764916>.
>