New image.py, added support for channels() to PG, Selector and all from GenericImage on

I'm working on all these last comments, plus fixing one last bug with
channels()

The generator list was agreed, but I didn't have any chance to implement it
yet as all the recent modifications broke most of the code (channels()
mostly), and it's 100% critical to fix that first.





On Wed, Jul 16, 2014 at 11:46 PM, James A. Bednar <notifications@github.com>
wrote:

> In imagen/image.py:
>
> > +    otherwise, ExtendToNChannel will attempt to get channel_data
> > +    from generator. If no channel_data is found in this
> > +    ways, ExtendToNChannel will synthesize the channels from the traditional
> > +    single channel generator.
> > +
> > +    After finding or synthesizing the channels, they are
> > +    scaled according to relative_channel_strengths.
> > +    """
> > +
> > +    generator = param.ClassSelector(class_=PatternGenerator,default=Constant(),doc="""
> > +        PatternGenerator to be converted to N-Channels.""")
> > +
> > +    channel_factors = param.Dynamic(default=[1.,1.,1],doc="""
> > +        Channel scaling factors. The length of this list sets the number of channels to be
> > +        created, unless the input_generator is alreay NChannel (in which case the number of
> > +        its channels is used).""")
>
> That's what I thought too, which is why I was surprised to see this...
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/ioam/imagen/pull/31/files#r15032785>.
>