# Create a project that allows to erode an image
Some theory behind this project: https://en.wikipedia.org/wiki/Erosion_(morphology)
The goal is to create a projet that allows to erode an image.
An image is stored as an array of array. 0 is a black point, 255 is a white point.
In the final image a point with be 255 if all the 8 points around it are white as well. The same is true for the corner but oviously there are less neighbours.
Example of an image of 5 x 5 pixels with a white square (3x3) in the middle.
```javascript=
const image = [
[0,0,0,0,0],
[0,255,255,255,0],
[0,255,255,255,0],
[0,255,255,255,0],
[0,0,0,0,0]
]
const result = erode (image);
/* Result is expected to be
[
[0,0,0,0,0],
[0,0,0,0,0],
[0,0,255,0,0],
[0,0,0,0,0],
[0,0,0,0,0]
]
*/
```
# Goal:
Create a new project using `yo cheminfo:module` called 'erode'.
You should then:
- create the new method `eorde^
- add good test cases
- publish on github regularly the code using correct conventional commits
- add jsdoc
Of course we are there if you need any help at an level in the process.