def cmd_exp_eqhist(self):
     self.img = Exposure(glb_img).eq_hist()
     return self.canvas_image(self.img)
 def cmd_exp_rscl(self):
     self.img = Exposure(glb_img).rescale_intensity()
     return self.canvas_image(self.img)
@author: melike
"""

from skimage import io
from matplotlib import pyplot as plt
from ip_project1_classes import Exposure, Filter

#classes can be more object oriented

#io --> Image object
load = io.imread("can-warhol.jpg")  #input with numpy
io.imshow(load)
io.show()

obj = Exposure(load)
obj2 = Filter(load)

plt.imshow(obj.eq_hist(), cmap="gray")
plt.show()
"""
import cv2
from skimage import data, io
from matplotlib import pyplot as plt
from ip_project1_classes import *
import numpy as np

#classes can be more object oriented