SWATNet 'School 1: Introduction to Space Weather' November 8-12, 2021 Developed by Pedro Pina and Teresa Barata, Institute of Astrophysics and Space Sciences, University of Coimbra Module AI-L4 with exercises using Mathematical Morphology operators to: 1: Sunspots detection 2: Facular regions detection