April 2020
Intermediate to advanced
438 pages
12h 2m
English
The cumulative_distribution() function from the scikit-image.exposure module was used to compute the cdf of an image.
Since we needed all the pixel values starting from 0 to 255, we used np.insert() with an appropriate cdf value (0 for all the smaller pixel values and 1 for higher pixel values not present).
For each of the color channels, cdf was computed separately for the input and the template images using the cdf() function, and then the hist_matching() function was invoked with these values along with the input ...
Read now
Unlock full access