Fix colorful image window level and window width bug.
This commit is contained in:
@@ -1001,6 +1001,7 @@ void QDicomViewer::openDICOMFromPACS(int err, std::string dirName)
|
||||
}
|
||||
}
|
||||
|
||||
//TODO: 覆盖逻辑和增加逻辑待补充
|
||||
void QDicomViewer::openAndDrawDICOM(const std::string& dicomName, SeriesOpenMode openMode) {
|
||||
|
||||
displayThumbnailBar(true);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user