Image Processing, Python, Image Enhancement, Histogram Manipulation, Data Science.
image_max = (marty / patch.max(axis=(0,1))).clip(0,1) image_mean = ((marty * patch.mean()) / marty.mean(axis=(0,1))).clip(0,255).astype(int) fig, ax = plt.subplots(1, 2, dpi=100) ax[0].imshow(image_max) ax[0].set_title('Max Method') ax[0].set_axis_off() ax[1].imshow(image_mean)