Tag: Codec

Registering Custom Codec with DicomObjects.NET

Contents Create new CodecFactory class Implement DicomObjects.DicomCodecs.IDecompressor Implement DicomObjects.DicomCodecs.ICompressor interface Registering your CodecFactory with DicomObjects.NET DicomObjects.NET (only) Create new CodecFactory class You need to create a new Class that derives from DicomObjects.DicomCodecs.CodecFactory. See the sample code below: public class MyCodecFactory : DicomObjects.DicomCodecs.CodecFactory { public override bool CheckStart(Stream stream, string TransferSyntax) { return true; } public override DicomObjects.DicomCodecs.ICompressor Compressor(string TransferSyntax) { return new MyEncoder(); } public override DicomObjects.

Continue reading..