You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The rendered image from the DICOM image does not match how the study looks on the US machine
Here is a screen shot from the machine:
Here is how it looks when we convert the DICOM image:
To Reproduce
We create a FellowOaksDicom.Imaging.DicomImage and then call RenderImage() with a frame number.
We then use AsSharpImage in order to save it into a stream: var myImg = dicomImage.RenderImage(frame); var image = myImg.AsSharpImage(); using (var fs = new FileStream(localPath, FileMode.OpenOrCreate)) { image.Save(fs, new JpegEncoder()); }
Expected behavior
The jpeg file should look like the screen shot
Screenshots or test DICOM files
This is the only sample image I have that is less than 25MB zipped. 1_5_20230621211552425US.zip
I have additional files from this study that are similarly distorted, but they are too large to upload using this submittal process.
Environment
Fellow Oak DICOM version: 5.1.1
fo-dicom.Codecs version: 5.10.7
fo-dicom.Imaging.ImageSharp version: 5.1.0
OS: Windows 11 / Linux
Platform: .NET Standard 2.0
The text was updated successfully, but these errors were encountered:
This is some JpegLossless encoded image. I tried this file in serveral viewers. Siemens Syngo and Orthang displayed the file correctly, while others like mDicom, Synedra, ClearCanvas etc refused to open the image at all. I guess that something in this file is not standard (I assume photometric interpretation or so). I will try to look into it, but maybe we have to move it to the codec repository.
Describe the bug
The rendered image from the DICOM image does not match how the study looks on the US machine
Here is a screen shot from the machine:
![Screenshot 2023-06-26 114611](https://private-user-images.githubusercontent.com/94083075/248889609-b34656cf-b9a7-491b-979e-fd02e9ba7a1b.jpg?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjIxNjY3NjUsIm5iZiI6MTcyMjE2NjQ2NSwicGF0aCI6Ii85NDA4MzA3NS8yNDg4ODk2MDktYjM0NjU2Y2YtYjlhNy00OTFiLTk3OWUtZmQwMmU5YmE3YTFiLmpwZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MjglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzI4VDExMzQyNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTYxNDFlMzdiZjgyYTMxY2M4NzgyNjAzZmZlYjk2MGY2ZWU2YWY4NGJkNzFiY2E5YjdlNzM5YzVhZWYwNzU0YzgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.B-QcuLfMzTG3nVnButY0SPdS4X1E-eSvJZgMRJTNIoM)
Here is how it looks when we convert the DICOM image:
![frame_000](https://private-user-images.githubusercontent.com/94083075/248889799-ab5305d0-6297-4b60-a2cd-76f87e46dc9b.jpg?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjIxNjY3NjUsIm5iZiI6MTcyMjE2NjQ2NSwicGF0aCI6Ii85NDA4MzA3NS8yNDg4ODk3OTktYWI1MzA1ZDAtNjI5Ny00YjYwLWEyY2QtNzZmODdlNDZkYzliLmpwZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MjglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzI4VDExMzQyNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWM5YzUzY2I5ZDA0MTdmMGU5NDgwYzQwNzc5N2ZmMWI1N2FmMTg2NDA5OWI2NWY0ZTE1OTEzZTFkODM4ZjA2NzAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.NZ4KhxiYFK85Hqah81LtBtCVhJDjEGIv0Vw8RI4Myb0)
To Reproduce
We create a FellowOaksDicom.Imaging.DicomImage and then call RenderImage() with a frame number.
We then use AsSharpImage in order to save it into a stream:
var myImg = dicomImage.RenderImage(frame); var image = myImg.AsSharpImage(); using (var fs = new FileStream(localPath, FileMode.OpenOrCreate)) { image.Save(fs, new JpegEncoder()); }
Expected behavior
The jpeg file should look like the screen shot
Screenshots or test DICOM files
This is the only sample image I have that is less than 25MB zipped.
1_5_20230621211552425US.zip
I have additional files from this study that are similarly distorted, but they are too large to upload using this submittal process.
Environment
Fellow Oak DICOM version: 5.1.1
fo-dicom.Codecs version: 5.10.7
fo-dicom.Imaging.ImageSharp version: 5.1.0
OS: Windows 11 / Linux
Platform: .NET Standard 2.0
The text was updated successfully, but these errors were encountered: