Image Processing, Python, Image Enhancement, Histogram Manipulation, Data Science.
contrast stretching from skimage.exposure import rescale_intensity from skimage import img_as_ubyte dark_marty_intensity = img_as_ubyte(rgb2gray(dark_marty)) #stretching the values between the 5th and 95th percentile dark_marty_contrast = rescale_intensity(dark_marty_intensity,