Code used in the experimental procedure of the following M.Sc. dissertation: 'Efficient Implementation of Morphological Operators using Preprocessing Techniques'.