Mercurial > hg > orthanc
comparison OrthancServer/FromDcmtkBridge.cpp @ 73:cb5ad233c336
fix
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 17 Sep 2012 13:21:31 +0200 |
parents | aa65ced5f0f0 |
children | 297bad4e1019 |
comparison
equal
deleted
inserted
replaced
71:aa65ced5f0f0 | 73:cb5ad233c336 |
---|---|
425 for (unsigned int y = 0; y < accessor.GetHeight(); y++) | 425 for (unsigned int y = 0; y < accessor.GetHeight(); y++) |
426 { | 426 { |
427 for (unsigned int x = 0; x < accessor.GetWidth(); x++, pixel++) | 427 for (unsigned int x = 0; x < accessor.GetWidth(); x++, pixel++) |
428 { | 428 { |
429 int32_t v = accessor.GetValue(x, y); | 429 int32_t v = accessor.GetValue(x, y); |
430 if (v < typename std::numeric_limits<T>::min()) | 430 if (v < std::numeric_limits<T>::min()) |
431 *pixel = std::numeric_limits<T>::min(); | 431 *pixel = std::numeric_limits<T>::min(); |
432 else if (v > std::numeric_limits<T>::max()) | 432 else if (v > std::numeric_limits<T>::max()) |
433 *pixel = std::numeric_limits<T>::max(); | 433 *pixel = std::numeric_limits<T>::max(); |
434 else | 434 else |
435 *pixel = static_cast<T>(v); | 435 *pixel = static_cast<T>(v); |