This is revision 1 of the new transcoding API and CLI, a convenient trait for converting an object to another transfer syntax.
Summary
add dicom_pixeldata::transcode module, contains Transcode trait and transcoder error type
add some module-level test coverage for transcode
Adjust transcoder module according to changes in v0.6
[encoding] Fix default impl of PixelDataWriter::encode so that it doesn't throw an error on missing Number of Frames (already done in #414)
[ts-registry] Fix JPEG adapter's handling of native pixel data
[ts-registry] Implement narrowing of high depth pixel data to 8 bits
Results are a bit better, although they may be off the expected value range. Better check first whether transcoding to JPEG baseline really suits your use case.
Add binary package dicom-transcode, a CLI tool for transcoding DICOM files.
This is revision 1 of the new transcoding API and CLI, a convenient trait for converting an object to another transfer syntax.
Summary
dicom_pixeldata::transcode
module, containsTranscode
trait and transcoder error type[encoding] Fix default impl of(already done in #414)PixelDataWriter::encode
so that it doesn't throw an error on missing Number of Framesdicom-transcode
, a CLI tool for transcoding DICOM files.