0

I am doing a project on image binarisation where I am required to transform an image such that its divided into individual color layers using clustering. What I mean to say is that there will be no shades in the image, instead the shades of the input image will be converted into a layer dividing the two colors.

The input and output images are given:enter image description here

I am trying to implement this using opencv, but not able to figure out how to do that. Thanks in advance.

4

1 に答える 1

4

k-means クラスタリングを使用してみてください。 http://aishack.in/tutorials/kmeans-clustering-opencv/

手段があるだけ多くの色を取得します。

以下は、Accord.NET C# ライブラリを使用して実装されている例です。 http://crsouza.blogspot.com.au/2010/10/k-means-clustering.html

于 2012-06-09T08:49:18.047 に答える