GuckLab / impose

Align microscopy images using custom-defined structural patterns and superimpose those on data from other imaging modalities.
GNU General Public License v3.0
1 stars 0 forks source link

Correctly handle NaN values #27

Closed raimund-schluessler closed 2 years ago

raimund-schluessler commented 2 years ago

This fixes the handling of NaN values in Impose. Impose does not complain anymore when a map contains (only) NaN values. I also adjusted the calculation or RGV and HSV values so that NaN values do not affect the resulting colors anymore (they are treated as if they don't exist now).

Closes #25.

codecov-commenter commented 2 years ago

Codecov Report

Merging #27 (6c0d353) into main (17102d8) will increase coverage by 0.00%. The diff coverage is 90.00%.

@@           Coverage Diff           @@
##             main      #27   +/-   ##
=======================================
  Coverage   77.64%   77.64%           
=======================================
  Files          35       35           
  Lines        2425     2434    +9     
=======================================
+ Hits         1883     1890    +7     
- Misses        542      544    +2     
Impacted Files Coverage Δ
impose/gui/visualize.py 92.25% <33.33%> (-1.28%) :arrow_down:
impose/flblend.py 98.40% <100.00%> (+0.08%) :arrow_up:

:mega: Codecov can now indicate which changes are the most critical in Pull Requests. Learn more