3D SLIC code

Ronnie Ghose ronnie.ghose at gmail.com
Mon Mar 11 03:39:52 EDT 2013


... 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.


On Mon, Mar 11, 2013 at 3:36 AM, Stéfan van der Walt <stefan at sun.ac.za>wrote:

> On Mon, Mar 11, 2013 at 8:43 AM, Juan Nunez-Iglesias <jni.soma at gmail.com>
> wrote:
> > I want to modify SLIC to handle 3D images. However, it now become rather
> > tricky to automatically detect whether the final dimension is channels or
> > just z, in the case of image.ndim == 3 (ie, is this a 3D grayscale
> image, or
> > a 2D RGB image?). I was trying to do something automatically (image.ndim
> ==
> > 3 and image.shape[-1] == 3) but I think maybe the easiest thing is to
> add a
> > "has_channels" argument, defaulting to...? I want to say False, but
> that's
> > just my own biases. =)
>
> In `random_walker`, we've opted for "multichannel=False":
>
>     data : array_like
>         Image to be segmented in phases. Gray-level `data` can be two- or
>         three-dimensional; multichannel data can be three- or four-
>         dimensional (multichannel=True) with the highest dimension denoting
>         channels. Data spacing is assumed isotropic unless depth keyword
>         argument is used.
>
>     multichannel : bool, default False
>         If True, input data is parsed as multichannel data (see 'data'
> above
>         for proper input format in this case)
>
> Stéfan
>
> --
> 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/20130311/a9cf706c/attachment.html>


More information about the scikit-image mailing list