Homology-Based Image Processing for Automatic Classification of Histopathological Images of Lung Tissue