AnanyaBal / Image_Processing_For_Mass_Edge_Detection_In_Mammograms

Image enhancement, segmentation and edge detection in Mammograms

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

About

In this project, I have enhnaced mammogram images using Laplacian filter and histogram equalization. After this, I have implemented edge detection using canny edge detection and k-means clustering for segmentation.

The original images used are:

Mammogram1 Mammogram2 Mammogram4 Mammogram3

Enhancement

I have converted the images into arrays and convolved them with a 3x3 kernel to obtain the Laplacian of the images. The Laplacian is then subtracted from the images to get the Laplacian filtered images.

Laplacian Mammogram1 Laplacian Mammogram2 Laplacian Mammogram4 Laplacian Mammogram3

I also applied Contrast-limited adaptive histogram equalization (CLAHE) to the images. The results were:

Histogram Equalized Mammogram1 Histogram Equalized Mammogram2 Histogram Equalized Mammogram4 Histogram Equalized Mammogram3

Edge Detection

K - means clustering algorithm is an unsupervised algorithm and it is used to segment the interest area from the background. Canny operator is widely used as an excellent edge detector; it also includes Gaussian smoothing element that may significantly soften edges. I have added k-means segmentation and have compared edge detection prior and post k-means segmentation. I have applied median filtering to the image prior to edge detection, to get rid of speckle noise. The enhanced image is from the histrogram equalization.

Given below is the entire process for mammogram number 2.

Mammogram2 Enhanced Mammogram2 Manual Parameters Edge Detection Mammogram2  Automnated Edge Detection Mammogram2 K means segmented with k=3 Mammogram2 Manual Parameters Edge Detection on K means segmented Mammogram2 Automated Edge Detection on K means segmented Mammogram2

Conclusion

It is clearly seen that the edge detection is better after the image has been segmented by using the k-means clustering. And also, the manual edge detection is better than the automatic one in both cases - before and after segmentation using k-means.

About

Image enhancement, segmentation and edge detection in Mammograms


Languages

Language:Jupyter Notebook 100.0%