Skip to content

pharo-ai/image-segmentation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example of Image Segmentation Using K-Means

Build status Coverage Status Pharo version Pharo version Pharo version Pharo version License

Example of image segmentation in Pharo based on k-means clustering.

Look at our tutorial on the pharo wiki of how to use this project! https://github.com/pharo-ai/wiki/blob/master/wiki/Tutorials/image-segmentation-using-kmeans.md

How to install it

To install image-segmentation, go to the Playground (Ctrl+OW) in your Pharo image and execute the following Metacello script (select it and press Do-it button or Ctrl+D):

Metacello new
  baseline: 'AIImageSegmentation';
  repository: 'github://pharo-ai/image-segmentation';
  load.

How to depend on it

If you want to add a dependency, include the following lines into your baseline method:

spec
  baseline: 'AIImageSegmentation'
  with: [ spec repository: 'github://pharo-ai/image-segmentation' ].

How to use it

file := 'pharo-local/iceberg/pharo-ai/image-segmentation/img/renoir_river.jpg' asFileReference.
segmentator := AIImageSegmentator new
  loadImage: file;
  numberOfSegments: 3;
  yourself.
segmentator clusterImagePixels.
segmentator segmentate.

segmentator segmentatedImage.

segmentator segments.
segmentator openAll.

About

Example of image Segmentation based on K-Means

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published