Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed another issue with invalid mono images.
Fixed issue when rendering an invalid monochrome DICOM image where the number of pixels stored does not match the expected number of pixels. In this case, only a single pixel is processed, but the pixel matrix is much larger. Filling the rest of the pixel matrix with the smallest possible value for the image is not working because of an optimized memory usage (value would be out of range). Now, the pixel value to be used is double-checked before it is actually filled into the "background" of the image. Thanks to Ding zhengzheng <[email protected]> for the report and the sample file (PoC).
- Loading branch information