<div dir="ltr">... ehhh... I would prefer 2d rgb to be the default in general as I think that is the generl use case? . This calls for a discussion imho. </div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Mar 11, 2013 at 3:36 AM, Stéfan van der Walt <span dir="ltr"><<a href="mailto:stefan@sun.ac.za" target="_blank">stefan@sun.ac.za</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Mon, Mar 11, 2013 at 8:43 AM, Juan Nunez-Iglesias <<a href="mailto:jni.soma@gmail.com">jni.soma@gmail.com</a>> wrote:<br>


> I want to modify SLIC to handle 3D images. However, it now become rather<br>
> tricky to automatically detect whether the final dimension is channels or<br>
> just z, in the case of image.ndim == 3 (ie, is this a 3D grayscale image, or<br>
> a 2D RGB image?). I was trying to do something automatically (image.ndim ==<br>
> 3 and image.shape[-1] == 3) but I think maybe the easiest thing is to add a<br>
> "has_channels" argument, defaulting to...? I want to say False, but that's<br>
> just my own biases. =)<br>
<br>
</div>In `random_walker`, we've opted for "multichannel=False":<br>
<br>
    data : array_like<br>
        Image to be segmented in phases. Gray-level `data` can be two- or<br>
        three-dimensional; multichannel data can be three- or four-<br>
        dimensional (multichannel=True) with the highest dimension denoting<br>
        channels. Data spacing is assumed isotropic unless depth keyword<br>
        argument is used.<br>
<br>
    multichannel : bool, default False<br>
        If True, input data is parsed as multichannel data (see 'data' above<br>
        for proper input format in this case)<br>
<span class="HOEnZb"><font color="#888888"><br>
Stéfan<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
--<br>
You received this message because you are subscribed to the Google Groups "scikit-image" group.<br>
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:scikit-image%2Bunsubscribe@googlegroups.com">scikit-image+unsubscribe@googlegroups.com</a>.<br>
For more options, visit <a href="https://groups.google.com/groups/opt_out" target="_blank">https://groups.google.com/groups/opt_out</a>.<br>
<br>
<br>
</div></div></blockquote></div><br></div>