Image Processing, Python, Image Enhancement, Histogram Manipulation, Data Science.
percentile of 2 channel: 157.0 #channel 0 = Red #channel 1 = Green #channel 2 = Blue Using this information, we then apply the 95th percentile to the previous approach of White-patch algorithm marty_wp2 = img_as_ubyte((marty*1.0 / np.percentile(marty, 95, axis=(0, 1))) .clip(0, 1))