# -*- coding: utf-8 -*-
"""
Created on Sun Jan 20 22:15:21 2019

@author: Shashi
"""

import numpy as np
import cv2

img = cv2.imread('mammo.png',0)

# create a CLAHE object (Arguments are optional).
clahe = cv2.createCLAHE(clipLimit=2.0, tileGridSize=(8,8))
cl1 = clahe.apply(img)

cv2.imwrite('clahe_mammo.png',cl1)
a84e3184e852557d1aeda306f7dcf89dc26717aa
<mask token>

<mask token>
cv2.imwrite('clahe_mammo.png', cl1)

<mask token>
img = cv2.imread('mammo.png', 0)
clahe = cv2.createCLAHE(clipLimit=2.0, tileGridSize=(8, 8))
cl1 = clahe.apply(img)
cv2.imwrite('clahe_mammo.png', cl1)

<mask token>
import numpy as np
import cv2
img = cv2.imread('mammo.png', 0)
clahe = cv2.createCLAHE(clipLimit=2.0, tileGridSize=(8, 8))
cl1 = clahe.apply(img)
cv2.imwrite('clahe_mammo.png', cl1)

# -*- coding: utf-8 -*-
"""
Created on Sun Jan 20 22:15:21 2019

@author: Shashi
"""

import numpy as np
import cv2

img = cv2.imread('mammo.png',0)

# create a CLAHE object (Arguments are optional).
clahe = cv2.createCLAHE(clipLimit=2.0, tileGridSize=(8,8))
cl1 = clahe.apply(img)

cv2.imwrite('clahe_mammo.png',cl1)