So I know it's a long stretch but I am working on a project where colored images are badly treated. I sometimes run adjust_histogram(img, Equalization()) and it appears that in transform_density, the input img contains NaN value and an error is returned.
Then the line
index = floor(Int, (val-first_edge)*inv_step_size) + 1 returns an error when isnan(val)
To be honest I don't really know where the NaN values come from.
So I know it's a long stretch but I am working on a project where colored images are badly treated. I sometimes run
adjust_histogram(img, Equalization())and it appears that intransform_density, the inputimgcontainsNaNvalue and an error is returned.Then the line
index = floor(Int, (val-first_edge)*inv_step_size) + 1returns an error whenisnan(val)To be honest I don't really know where the
NaNvalues come from.