Clustering of an image by taking into account the spatial context of each pixel (besides its intensity)

Stéfan van der Walt stefanv at
Fri Nov 20 18:20:02 EST 2015

Hi Hakim

Are you looking for a metric? Perhaps consider structural similarity index.

On Nov 20, 2015 22:20, "Hakim Benoudjit" <h.benoudjit at> wrote:

> Hi,
> Is there a clustering algorithm implemented in *scikit-image *that
> perform the image clustering by taking into account the *spatial context *of
> the clustered pixel (its neighbourhood), besides its *pixel brightness*?
> For the time being, I'm clustering images by reshaping them as vectors of
> pixels intensities distributions, and then performing the *K-means *or *Gaussian
> mixture models* implemented in *scikit-learn*. But, I'm looking for a
> image clustering technique implemented (or could be implemented) in *scikit-image
> *that would consider the neighbourhood of a pixel when classifying it.
> Thanks.
> --
> 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
> To post to this group, send email to scikit-image at
> To view this discussion on the web, visit
> <>
> .
> For more options, visit
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the scikit-image mailing list