This PR attempts to infer missing transfer syntax in dicoms during Parse.
Specifically:
When transfer syntax is missing in dicom metadata, attempt to infer the correct transfer syntax by peeking the next 100bytes and trying to read an element without an error. This isn't foolproof, but one option to start with.
This also makes test updates to support testfiles/ that may not have PixelData.
This also introduces a write option to write dicoms without transfer syntax elements, in order to write some "roundtrip" unit tests for this behavior on Parse.
I was able to successfully test using some test data from #327, but I need to do some more investigation to see if we can safely add those to our test files (licensing and otherwise).
Things to consider in the future:
Try deflated little endian explicit as well.
Peek more/less than the initial 100 bytes, or move away from a fixed peek.
This PR attempts to infer missing transfer syntax in dicoms during Parse.
Specifically:
I was able to successfully test using some test data from #327, but I need to do some more investigation to see if we can safely add those to our test files (licensing and otherwise).
Things to consider in the future: