Merge branch 'dev' into release5.4

This commit is contained in:
heckflosse 2018-02-07 14:46:32 +01:00
commit 37e3cbcc7c

View File

@ -126,6 +126,11 @@ inline void ImageDatas::convertTo(unsigned char src, float& dst) const
{
dst = src * 257;
}
template<>
inline void ImageDatas::convertTo(float src, float& dst) const
{
dst = std::isnan(src) ? 0.f : src;
}
// --------------------------------------------------------------------
// Planar order classes