Image Processing, Python, Image Enhancement, Histogram Manipulation, Data Science.
plt.step(np.arange(256), np.bincount(channel_values.flatten(), minlength=256)*1.0/ channel_values.size, c=color) plt.xlim(0, 255) plt.axvline(np.percentile(channel_values, 95), ls='--', c=color) plt.xlabel('channel value') plt.ylabel('fraction of pixels'); Histogram of RGB channel Using this piece