3D SLIC code

Juan Nunez-Iglesias jni.soma at gmail.com
Mon Mar 11 02:43:26 EDT 2013


Hi all,

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

What do you think?

Juan.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scikit-image/attachments/20130311/1b37afbb/attachment.html>


More information about the scikit-image mailing list