Color combine function

Juan Nunez-Iglesias jni.soma at gmail.com
Wed Jun 5 20:35:03 EDT 2013


I too was unaware of np.dstack for a long time, and was doing it via
np.concatenate([R[..., np.newaxis], G[..., np.newaxis], B[...,
np.newaxis]], axis=-1)... Which is a mouthful. ;) And even after I became
aware of it I still couldn't remember to use it! Sometimes aliases are
useful. And, as we mentioned, channel handling could be important, though I
usually have three channels.


On Thu, Jun 6, 2013 at 4:26 AM, Ronnie Ghose <ronnie.ghose at gmail.com> wrote:

> Its just an alias on top of for ease of use I assume
> On Jun 5, 2013 12:54 PM, "Johannes Schönberger" <jschoenberger at demuc.de>
> wrote:
>
>> > I didn't know that one, my bad... So the only thing left is the data
>> handling (float conversion and possibly normalization), plus the cases
>> where you only provide 1 or 2 channels (which often the case in
>> fluorescence images), which is probably not worth a function. Thank's for
>> the tip anyway
>>
>> If the channel handling (when one of the channels is missing) is regarded
>> as a common use case, we could definitely add this function!
>>
>> Johannes Schönberger
>>
>> Am 05.06.2013 um 18:17 schrieb Guillaume Gay <
>> guillaume at mitotic-machine.org>:
>>
>> >
>> > Le 05/06/2013 17:34, Johannes Schönberger a écrit :
>> >> np.dstack([R, G, B])
>> > I didn't know that one, my bad... So the only thing left is the data
>> handling (float conversion and possibly normalization), plus the cases
>> where you only provide 1 or 2 channels (which often the case in
>> fluorescence images), which is probably not worth a function. Thank's for
>> the tip anyway
>> >
>> > G.
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> Groups "scikit-image" group.
>> > To unsubscribe from this group and stop receiving emails from it, send
>> an email to scikit-image+unsubscribe at googlegroups.com.
>> > For more options, visit https://groups.google.com/groups/opt_out.
>> >
>> >
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "scikit-image" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to scikit-image+unsubscribe at googlegroups.com.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>>  --
> You received this message because you are subscribed to the Google Groups
> "scikit-image" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to scikit-image+unsubscribe at googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scikit-image/attachments/20130606/3f19b388/attachment.html>


More information about the scikit-image mailing list