Skip to content

Instantly share code, notes, and snippets.

@sriharsha0806
Created September 13, 2016 03:21
Show Gist options
  • Save sriharsha0806/ad762ecc467ff51cc4f811bc17431ff5 to your computer and use it in GitHub Desktop.
Save sriharsha0806/ad762ecc467ff51cc4f811bc17431ff5 to your computer and use it in GitHub Desktop.
# -*- coding: utf-8 -*-
"""
Created on Sat Sep 10 19:11:21 2016
@author: sriharsha
"""
import cv2
import numpy as np
img = cv2.imread('Fig0304(a)(breast_digital_Xray).tif')
cv2.imshow('Original_digital_mammogram',img)
maximum = np.amax(img)
cv2.imshow('negative_image',maximum-img);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment