Erosion, Dilation, Opening, Closing and classification rule implemented