Added support for NChannelImage and ExtendToNChannel

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

Hmm that's fine, the problem is that whenever we'll change it's position
(well, both RGBImage and the optimized functions) a lot of other files will
need to change, too, which is a bit annoying and prone to errors. :/

Anyway, I'll just put all in temporary positions and submit the first pull
request, so you can see the code.




On Thu, Jul 10, 2014 at 3:23 PM, J.L Stevens <notifications@github.com>
wrote:

> In imagen/image.py:
>
> >      """
> >
> > -    filename = param.Filename(default='images/numpy_array_feret_photo.npy',precedence=0.9,doc="""
> > -        File path (can be relative to Param's base path) to the Numpy file.""")
> > +    random_generator = param.Callable(
> > +        default=numbergen.UniformRandom(lbound=0,ubound=1,seed=1048921))
> >
>
> I think the random_generator issue is now resolved with my suggestions
> above. We should discuss where to put RGBImage in the main comments
> section of the PR.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/ioam/imagen/pull/29/files#r14768352>.
>