Closed Lucas-Maciel closed 5 months ago
Hi Lucas, thanks for opening the issue!
I see what is happening, if img_layer
was not provided, we used to fall back to the last image layer (given by[*sdata.images][-1]
) insdata
, to perform our processing on. But this has been left out forsp.im.enhance_contrast
and sp.im.min_max_filtering
, and is indeed not very consitent (and results in an unclear error message) because for other sparrow functions we still have a fall back implemented.
I am not completely sure what the best solution is. I think adding this fall back again for sp.im.enhance_contrast
and sp.im.min_max_filtering
seems to be the best choice.
Hi,
So I updated today my sparrow version and I'm having some issues that I didn't have in the past. This happens when I'm correcting the Illumination:
Once I provide the layer, it works fine. The same happens if I don't provide img_layer in for the min_max_filtering function.