Originally made for Durham University's Department of Computer Science's course Software Methodologies under the sub-module Image Processing, as part of the coursework in 2017/2018.
This repository contains 4 simple scripts able to perform morphological closing, opening, dilation and erosion on an input PNG image.
This project was made utilizing Python 2.7.
In addition, please ensure that the following modules are installed:
To perform a morphological operation <operation>
, on an input image <input>.png
, in the terminal type
python <operation>.py <input>.png <output>.png
.
Notice that the desired name of the resulting output image is necessary.