Added support for NChannelImage and ExtendToNChannel

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

I'm not sure if it's deprecated, because Chris might be using it!
I can remove it anyway.



On Thu, Jul 10, 2014 at 2:52 PM, J.L Stevens <notifications@github.com>
wrote:

> In imagen/patterngenerator.py:
>
> > +            for i in range(len(self.channel_factors)):
> > +                self.channel_data[i] = gray*self.channel_factors[i]
> > +
> > +    def __call__(self,**params):
> > +        p = param.ParamOverrides(self,params)
> > +
> > +        ########
> > +        # as for Selector etc, hack pass through certain parameters to
> > +        # generator
> > +        params['xdensity']=p.xdensity
> > +        params['ydensity']=p.ydensity
> > +        params['bounds']=p.bounds
> > +        ########
> > +
> > +        # (not **p)
> > +        gray = p.generator(**params)
>
> This comment is useless!
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/ioam/imagen/pull/29/files#r14766587>.
>