Comments (10)
Here are two example images using this transfer syntax
images.zip
I found these in the Grassroots DICOM repository:
https://sourceforge.net/projects/gdcm/files/
from dicom-rs.
@neandrake thanks! I've tested them,
ACUSON-24-YBR_FULL-RLE-b_dcmdrle_dcmcjpeg.dcm
produces ReadValue(UnresolvedValueLength)
and
PHILIPS_Gyroscan-12-MONO2-Jpeg_Lossless.dcm
- DataSetSyntax(UnexpectedToken(ItemEnd))
from dicom-rs.
That transfer syntax is "JPEG Lossless, Non-Hierarchical, First-Order Prediction (Process 14 [Selection Value 1]): Default Transfer Syntax for Lossless JPEG Image Compression"
. My guess is support for decoding pixel data with that transfer sytnax is not yet supported.
from dicom-rs.
Decoding the pixel data is meant to be an orthogonal capability to that of decoding the data set. In other words, while the library does not know how to interpret the pixel data without the necessary decoder, it would still be able to load the DICOM file and fetch each attribute in its raw, possibly encoded form.
With that said, I suspect that the parser may be having trouble delimiting the pixel data attribute, but I can only be sure with a reproducible example. Can you construct an equivalent file that can be freely disclosed?
from dicom-rs.
Can you construct an equivalent file that can be freely disclosed?
I'd be happy to. Is there any tool which can create .dcm
files with arbitrary transfer syntaxes?
from dicom-rs.
Found some online examples
https://barre.dev/medical/samples/#XA-MONO2-8-12x-catheter
The one named as XA-MONO2-8-12x-catheter
has 1.2.840.10008.1.2.4.70
transfer syntax and can be downloaded from https://www.dropbox.com/s/k7obz27f07z1kmk/XA-MONO2-8-12x-catheter.gz?dl=0
Currently fails with TextEncodingError("Invalid date value element \"1994.10.16\"")
from dicom-rs.
The date 1994.10.16
is not DICOM compliant (it was before in ACR-NEMA Standard 300): the components should not be dot separated, and the current behavior in 0.1.0 is to attempt to parse all date values while reading the full DICOM data set. This behavior will change with #12, but it will still be unable to turn that text element into a binary date value.
from dicom-rs.
I was looking for an example of .dcm
file with transfer syntax 1.2.840.10008.1.2.4.70
, it's the only one I found. Sadly, error with the date occurs before the actual error we need to reproduce. @Enet4 is there a known way to produce a .dcm
with such TS?
from dicom-rs.
Additionally you could use a tool like dcmtk to modify your original dicom to modify the date element with the incorrect format.
from dicom-rs.
After a fresh read of this thread, I conclude that:
- The first indicated issue with the unsupported transfer syntax was due to the encapsulated pixel data, which has been resolved in #42.
- The second issue was a bug when parsing items and sequences with an explicit length, which has been fixed in #30.
- The other problem with non-compliant DICOM values stopping the parser is already tracked in #9.
As such, I believe we can close this one. Please file another issue if you find a new problem.
from dicom-rs.
Related Issues (20)
- DICOM naive datetime retrieval HOT 6
- Latest version fails to build for android HOT 5
- Unusual Image Generation from RLE DICOM Files HOT 4
- Wrong VR assumed when reading pixel padding in Implicit VR dataset
- to_dynamic_image method not found in `DecodedPixelData<'_>` HOT 10
- Support resolving BulkDataURIs
- Non-deterministic behavior in dicom-storescu function check_presentation_contexts HOT 10
- Starting the discussion on async support HOT 3
- Storescp promiscuous mode HOT 1
- ERROR dicom_findscu: status code from response is missing HOT 3
- Very slow association with invalid adresses - Need to use custom timeout during connecting HOT 1
- Disable feature 'jpeg2k' in dicom-transfer-syntax-registry HOT 2
- DICOM Files with Large Number of Frames HOT 4
- Version of openjp2 causing issue in new projects HOT 2
- max_pdu_length isn't used in Store-SCP HOT 1
- Support PrintSCU HOT 3
- Add movescu application - tracking issue HOT 1
- Failure when Explicit VR contains Implicit VR HOT 3
- findscu not working when dataset is included in C-FIND-RSP HOT 2
- Support for multiple ae_titles on same IP/port HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dicom-rs.