DGtal-team / DGtal

Digital Geometry Tools and Algorithm Library
https://dgtal.org
GNU Lesser General Public License v3.0
370 stars 115 forks source link

GradientColorMap with min=max #899

Closed kerautret closed 8 years ago

kerautret commented 10 years ago

when using same value for max/min it fails (division by 0 I mean, line 264 of DGtal/io/colormaps/GradientColorMap.h Just add an ASSERT or return the first color.

dcoeurjo commented 8 years ago

Fixed in #1134, closing this issue.