Added support for NChannelImage and ExtendToNChannel

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

Hmm I could make it to be a parameter to hold the seed generator only,
maybe.

The code will be integrated in either FeatureMapper or Topographica
(another reason why I need this code to be online soon :/ )

In RGBImage, it's just called once:
""
jitterfn(analysis_space,self.random_generator())
""




On Thu, Jul 10, 2014 at 2:47 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))
> >
>
> Where is this code exactly? Random state is an evil that I insist is
> controlled properly! I am wondering if you could use something out of
> imagen.random instead of requiring this class to have random state.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/ioam/imagen/pull/29/files#r14766296>.
>