Clustering of an image by taking into account the spatial context of each pixel (besides its intensity)
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.
Hi Hakim Are you looking for a metric? Perhaps consider structural similarity index. Regards Stéfan On Nov 20, 2015 22:20, "Hakim Benoudjit" <h.benoudjit@gmail.com> 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@googlegroups.com. To post to this group, send email to scikit-image@googlegroups.com. To view this discussion on the web, visit https://groups.google.com/d/msgid/scikit-image/d6eeb2b6-2abc-40c0-9c15-17185... <https://groups.google.com/d/msgid/scikit-image/d6eeb2b6-2abc-40c0-9c15-17185731f414%40googlegroups.com?utm_medium=email&utm_source=footer> . For more options, visit https://groups.google.com/d/optout.
Hi Stéfan, Thanks for your reponse. What I'm looking for is a *spatial criteria* that encourages the *clustering algorithm* (K-means or others) to group together similar *neighbouring pixels* inside the same cluster. This will help avoid having persistent noise inside a cluster. Le vendredi 20 novembre 2015 13:20:15 UTC, Hakim Benoudjit a écrit :
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.
Hey Hakim, The right answer here depends on your ultimate goal. If you're after denoising, non-local means denoising (recently added to skimage) sounds like exactly what you're after. Juan. On Sat, Nov 21, 2015 at 11:28 AM, Hakim Benoudjit <h.benoudjit@gmail.com> wrote:
Hi Stéfan,
Thanks for your reponse. What I'm looking for is a *spatial criteria* that encourages the *clustering algorithm* (K-means or others) to group together similar *neighbouring pixels* inside the same cluster. This will help avoid having persistent noise inside a cluster.
Le vendredi 20 novembre 2015 13:20:15 UTC, Hakim Benoudjit a écrit :
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@googlegroups.com. To post to this group, send email to scikit-image@googlegroups.com. To view this discussion on the web, visit https://groups.google.com/d/msgid/scikit-image/0aad2045-b9da-442c-97bc-06c59... <https://groups.google.com/d/msgid/scikit-image/0aad2045-b9da-442c-97bc-06c596b0469e%40googlegroups.com?utm_medium=email&utm_source=footer> .
For more options, visit https://groups.google.com/d/optout.
participants (3)
-
Hakim Benoudjit
-
Juan Nunez-Iglesias
-
Stéfan van der Walt