Small university project proposed in the subject "Numerical Analysis" in the 1st year of MSc of Computer Science in Imaging & Machine Learning at the University of Caen Normandy in order to to implement some mathematical equations on 2-dimensionnal images seen in this course.
The goal of the project is to implement some mathematical equations on 2-dimensionnal images :
- the dilation equation :
- the erosion equation :
You need to have Python 3 installed on your machine. You can install the dependences with one of this two commands :
# if you already have installed virtual environment
$ pipenv install
$ pipenv shell
or
$ pip3 install -r requirements.txt
To launch the script, you only have to execute this command :
$ python3 script.py
From this image :
- if you dilate the image : - if you erode the image :Project under the MIT license.