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
Thanks for a very nice DICOM viewer and tool, Weasis is easy to use yet has powerful features.
I was unable to save reformats generated by Weasis for further analysis in another tool. I can save .png, .jpg but no DICOM. To reproduce the issue, this is what I did:
Start Weasis-portable (I used both linux and windows), version 3.0.2
Load a suitable DICOM data-set
Click the MPR button
Click Export DICOM, select the newly created MPR series
Export to DICOM file to a directory on my hard-drive
This only generates the DICOM dir file (and if you selected any DICOM files belonging to your original data, these are exported as well) but no MPR DICOM files!
Being a tinkerer at heart, and Weasis being open source (thank you again;) I went in and fixed it, not sure if this breaks anything else, but I figured Id share the fix with you guys so that you may at least consider it.
Its simple, in the file RawImageIO.java (under weasis-dicom-viewer2d/src/main/java/org/weasis/dicom/viewer2d/mpr) near line 94:
Change This
BulkData bdl = new BulkData(file.toURI().toString(), FileRawImage.HEADER_LENGTH, (int) file.length(), false);
From this post
Thanks for a very nice DICOM viewer and tool, Weasis is easy to use yet has powerful features.
I was unable to save reformats generated by Weasis for further analysis in another tool. I can save .png, .jpg but no DICOM. To reproduce the issue, this is what I did:
This only generates the DICOM dir file (and if you selected any DICOM files belonging to your original data, these are exported as well) but no MPR DICOM files!
Being a tinkerer at heart, and Weasis being open source (thank you again;) I went in and fixed it, not sure if this breaks anything else, but I figured Id share the fix with you guys so that you may at least consider it.
Its simple, in the file RawImageIO.java (under weasis-dicom-viewer2d/src/main/java/org/weasis/dicom/viewer2d/mpr) near line 94:
Change This
BulkData bdl = new BulkData(file.toURI().toString(), FileRawImage.HEADER_LENGTH, (int) file.length(), false);
To that
BulkData bdl = new BulkData(file.toURI().toString(), FileRawImage.HEADER_LENGTH, (int) file.length() - FileRawImage.HEADER_LENGTH, false);
The text was updated successfully, but these errors were encountered: