This python script will allow us to apply different morphological transformations on an image.
sudo apt-get install python3
sudo apt-get install python3-pip
pip3 install opencv-python
sudo apt-get install python3-tk
A dialog box appears with option to select an image and choice of morphological operation.The result is shown in the window.
The input image is first converted into binary format before applying any morphological transformation and hence the output is in black-white format.
Github: invigorzz313