Added support for NChannelImage and ExtendToNChannel

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

I have code to go in generatorsheet.py, yes, but RGBImage only extends
NChannelImage, and is quite independent on other parts of topographica.

We also have 2 optimized colorconversion c-code (hsv/rgb back and forth),
and they could go together. Maybe topo.misc.COLOR?

Or else, the c-code for color conversion could go to
topo.analysis.OPTIMIZED.   These 2 functions are used to replace the
default (slow) ones of featuremapper, which will be done automatically in
topo.__init__.




On Thu, Jul 10, 2014 at 3:11 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))
> >
>
> Ok. I would need to know what is inside jitterfn before I can suggest how
> to control the random state.
>
> I also need to know what it is you want to commit to Topographica before I
> can give a suggestion for a file. Is this your improved GeneratorSheet?
> If so maybe into topo/base/generatorsheet.py but that also depends on the
> imports needed (as topo.base is supposed to have minimal dependencies).
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/ioam/imagen/pull/29/files#r14767590>.
>