Fix colorful image window level and window width bug.

This commit is contained in:
Krad
2022-03-02 17:01:41 +08:00
parent 31408e8f9f
commit f308dee45e
2 changed files with 6 additions and 0 deletions

View File

@@ -1001,6 +1001,7 @@ void QDicomViewer::openDICOMFromPACS(int err, std::string dirName)
}
}
//TODO: 覆盖逻辑和增加逻辑待补充
void QDicomViewer::openAndDrawDICOM(const std::string& dicomName, SeriesOpenMode openMode) {
displayThumbnailBar(true);

View File

@@ -1216,6 +1216,11 @@ void infinitiViewer::initCornerInfo(ExtendMedicalImageProperties* pSeries)
m_cornerInfo.win_level = (int)wwwl[1];
m_cornerInfo.win_width = (int)wwwl[0];
}
// no preset or color image
else{
m_cornerInfo.win_level = 128;
m_cornerInfo.win_width = 256;
}
char buffer[sizeof(long) * 8 + 1];
const char* s = ltoa(pSeries->GetFileNames()->size(), buffer, 10);