Tag: SetCompressedPixelFile

SetCompressedPixelFile

Directly importing compressed data into DICOM is possible by the _SetCompressedPixelFile_ method which maps an external file as the compressed pixel data of that DicomImage instance. Unlike the import method, this just sets the pixel data and nothing else, so it is required to update the rest yourself (e.g. bit depth, frame count, etc). Example code snippet with dummy values : int width = 1280; int height=720; int frameRate=25; // 25 frames per seconds for example float duration = 5; // 5 seconds the total duration of video, for example string transferSyntax = "1.

Continue reading..