height, width, _ = image.shape grayscale_image = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY) h = np.zeros(256, dtype=int) for i in range(height): for j in range(width): h ...
def histogram_equalization(image): # Mengambil dimensi gambar height, width = image.shape # Hitung histogram histogram = [0] * 256 for i in range(height): for j in ...
Tumor detection process. (a) Original MRI brain image, (b) Histogram equalization image, (c) threshold segmentation image, (d) Detected tumor in original image, (e) After filtering image, (f) After ...