Group Abstract Group Abstract

Message Boards Message Boards

0
|
7.3K Views
|
2 Replies
|
0 Total Likes
View groups...
Share
Share this post:

Detach seeds from background

Posted 11 years ago

I need to detach seeds from background. At first I have got image with seeds. I have done clusterisation for 2 clusters. file = Import["D:\Mathematica\image.JPG"];(open file)

array = ImageData[file];

imageNew = ClusteringComponents[file, 2] imageNew = Colorize[imageNew]; imageNewData = ImageData[imageNew]; imageNew = Image[imageNewData, "Bit"]

On first image I have got 51 seeds on background. I need to have 51 seeds bit-image after clustering and I need 51 original seed image. Original file is file seeds.jpg. File clusters.jpg I have got by wolfram mathematica. I made files clustering-seed-1.jpg and original-seed-1.jpg in paint. I need to get files clustering-seed-N.jpg and original-seed-N.jpg by wolfram mathematica, where N is seed's number. How can I do this?

Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard
Be respectful. Review our Community Guidelines to understand your role and responsibilities. Community Terms of Use