Fix colorful image window level and window width bug.

This commit is contained in:
Krad
2022-03-02 15:36:30 +08:00
parent 04d3ba836f
commit 31408e8f9f

View File

@@ -1209,7 +1209,8 @@ void infinitiViewer::initTopLeftCornerInfo(const std::string& lbl_ser_num, const
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);
m_cornerInfo.win_level = (int)wwwl[1];