Merge branch 'dev' into release5.4
This commit is contained in:
commit
37e3cbcc7c
@ -126,6 +126,11 @@ inline void ImageDatas::convertTo(unsigned char src, float& dst) const
|
|||||||
{
|
{
|
||||||
dst = src * 257;
|
dst = src * 257;
|
||||||
}
|
}
|
||||||
|
template<>
|
||||||
|
inline void ImageDatas::convertTo(float src, float& dst) const
|
||||||
|
{
|
||||||
|
dst = std::isnan(src) ? 0.f : src;
|
||||||
|
}
|
||||||
|
|
||||||
// --------------------------------------------------------------------
|
// --------------------------------------------------------------------
|
||||||
// Planar order classes
|
// Planar order classes
|
||||||
|
Loading…
x
Reference in New Issue
Block a user