https://github.com/cptanalatriste/aco-image-segmentation
Image Segmentation using Ant Colony algorithms.
Science Score: 13.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
○.zenodo.json file
-
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (9.3%) to scientific vocabulary
Keywords
Repository
Image Segmentation using Ant Colony algorithms.
Basic Info
- Host: GitHub
- Owner: cptanalatriste
- Language: Java
- Default Branch: master
- Homepage: http://cptanalatriste.github.io/isula/
- Size: 1.13 MB
Statistics
- Stars: 6
- Watchers: 3
- Forks: 4
- Open Issues: 1
- Releases: 1
Topics
Metadata Files
README.md
aco-image-segmentation
A Java Program to identify segments on an image using an Ant Colony optimization algorithm. It is a two-phase procedure:
- First, the cerebrum is extracted using also an Ant Colony algorithm, as described here: https://github.com/cptanalatriste/aco-image-thresholding
- Then, a clustering procedure is applied to the cerebrum.
The Ant-Colony Algorithm
The Ant Colony algorithm used to extract segments of the image is based on Max-Min Ant System, as was proposed by Salima Ouadfel in the paper "Unsupervised image segmentation using a colony of cooperating ants". To implement it, we used the Isula Framework:
```java ConfigurationProvider configurationProvider = ProblemConfiguration .getInstance(); EnvironmentForImageSegmentation environment = new EnvironmentForImageSegmentation( imageGraph, ProblemConfiguration.getInstance().getNumberOfClusters());
ImageSegmentationAntColony antColony = new ImageSegmentationAntColony(
configurationProvider.getNumberOfAnts(),
environment.getNumberOfClusters());
antColony.buildColony(environment);
problemSolver = new AcoProblemSolver<ClusteredPixel>();
problemSolver.setConfigurationProvider(configurationProvider);
problemSolver.setEnvironment(environment);
problemSolver.setAntColony(antColony);
problemSolver.addDaemonActions(
new StartPheromoneMatrixForMaxMin<ClusteredPixel>(),
new ImageSegmentationUpdatePheromoneMatrix());
antColony.addAntPolicies(new ImageSegmentationNodeSelection());
problemSolver.solveProblem();
ClusteredPixel[] bestPartition = problemSolver.getBestSolution();
``` The implemented process has the following characteristics: * The components of the solution are Clustered Pixels, that is, each pixel of the image will be assigned to one of three clusters. * The Ant class avaible in Isula was extended to support this image clustering class. The ants for this problems have memory of the current position in the image, as well as a Map for Cluster storage. Since the calculation of the Solution Quality is expensive, it was also added as an instance variable. * These Ants are built so they only consider Cerebrum pixels. That information was provided but the previous binary thresholding algorithm. * The Max-Min Ant System policies available in Isula were reused with minor customization. This includes pheromone update and node selection.
The results
We use an MR Brain image as an input. This was provided by the BrainWeb Database: http://brainweb.bic.mni.mcgill.ca/brainweb/

The program extracts three segments from the image: Brain Matter, White Matter and CLF. Here's the segment corresponding to the grey matter:

How to use this code
The code uploaded to this GitHub Repository corresponds to a Maven Java Project. As such, it is strongly recommended that you have Maven installed before working with it.
This project depends on the Isula Framework, available at this Github Repository: https://github.com/cptanalatriste/isula .
This project also depends on an ACO-based procedure for image thresholding. The aco-image-thresholding project that contains it is available on this Github Repository: https://github.com/cptanalatriste/aco-image-thresholding
Keep in mind that several file and folder locations were configured on the ProblemConfiguration.java file. You need to set values according to your environment in order to avoid a FileNotFoundException.
Once this is ready, you can launch this project by executing mvn exec:java -Dexec.mainClass="pe.edu.pucp.acoseg.AcoImageSegmentation" from the project root folder.
More about Isula
Visit the Isula Framework site: http://cptanalatriste.github.io/isula/
Review the Isula JavaDoc: http://cptanalatriste.github.io/isula/doc/
Questions, issues or support?
Feel free to contact me at carlos.gavidia@pucp.edu.pe.
Owner
- Name: Carlos Gavidia-Calderon
- Login: cptanalatriste
- Kind: user
- Location: London, United Kingdom
- Company: @alan-turing-institute
- Website: https://carlos.gavidia.me/
- Twitter: cptan_alatriste
- Repositories: 74
- Profile: https://github.com/cptanalatriste
Systems engineer by training, software developer by trade. Research Software Engineer at @alan-turing-institute .
GitHub Events
Total
Last Year
Issues and Pull Requests
Last synced: over 1 year ago
All Time
- Total issues: 0
- Total pull requests: 1
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Total issue authors: 0
- Total pull request authors: 1
- Average comments per issue: 0
- Average comments per pull request: 0.0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 1
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
- dependabot[bot] (1)