Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

6
  • How did you create that second picture that shows what you want? Could you translate your steps into a program? Commented Mar 27, 2015 at 13:48
  • I've created the second image in photoshop// to show exactly what I want. In program I've got only first image(in example) without checkboxes Commented Mar 27, 2015 at 14:08
  • 3
    So you probably selected all yellow areas and substituted them for white? You could surely write a program that copies the image but substitutes each yellow pixel for a white one. Even simpler, you could have one layer for each cluster, with areas not in the cluster being transparent. When you render the result, you just compose all selected layers. Commented Mar 27, 2015 at 14:14
  • Are you using System.Drawing or System.Windows.Media.Imaging? Is the image already converted into a paletted image (one that has a Palette property ? Commented Mar 27, 2015 at 14:14
  • yes, Im using System.Drawing class; as the result of k-means function I get Dictionary<string, Cluster>, where Cluster class has 4 fields(R,G,B,Alpha). So in example I've got 5 Cluster objects./*Even simpler, you could have one layer for each cluster*/ Thats a good idea! But how to create these layers? as I understood it will be 5 different images(in example), right? Commented Mar 27, 2015 at 14:21