Fix colorful image window level and window width bug.
This commit is contained in:
@@ -1209,7 +1209,8 @@ void infinitiViewer::initTopLeftCornerInfo(const std::string& lbl_ser_num, const
|
|||||||
|
|
||||||
void infinitiViewer::initCornerInfo(ExtendMedicalImageProperties* pSeries)
|
void infinitiViewer::initCornerInfo(ExtendMedicalImageProperties* pSeries)
|
||||||
{
|
{
|
||||||
if (pSeries->GetNumberOfWindowLevelPresets() > 0)
|
// mono and has preset
|
||||||
|
if (pSeries->GetNumberOfWindowLevelPresets() > 0 && pSeries->GetSamplePerPixel()==1)
|
||||||
{
|
{
|
||||||
double* wwwl = pSeries->GetNthWindowLevelPreset(0);
|
double* wwwl = pSeries->GetNthWindowLevelPreset(0);
|
||||||
m_cornerInfo.win_level = (int)wwwl[1];
|
m_cornerInfo.win_level = (int)wwwl[1];
|
||||||
|
|||||||
Reference in New Issue
Block a user