Skip to content

Commit

Permalink
Fixed #152
Browse files Browse the repository at this point in the history
  • Loading branch information
pyushkevich committed Nov 22, 2024
1 parent da47b26 commit 27e36b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Logic/ImageWrapper/TDigestImageFilter.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@ constexpr void skip_value(const TValue &value, TValue &skip_min, TValue &skip_ma
if(std::isfinite(value))
{
skip_min = std::min(value, skip_min);
skip_max = std::min(value, skip_max);
skip_max = std::max(value, skip_max);
}
else if(std::isnan(value))
nan_count++;
}
else
{
skip_min = std::min(value, skip_min);
skip_max = std::min(value, skip_max);
skip_max = std::max(value, skip_max);
}
};

Expand Down

0 comments on commit 27e36b9

Please sign in to comment.