I read multiframe dicom as follows and get the resulting pixel image data in an array of bytes.
gdcm.ImageReader _reader = new gdcm.ImageReader(); _reader.SetFileName("FileName"); _reader.Read(); byte[] byteArray= new byte[_reader.GetImage().GetBufferLength()]; _reader.GetImage().GetBuffer(byteArray);
but it throws an exception for memory for multi-shots with more than 300 frames. So I want to extract pixel data of single frames in an byte array at a time. Any idea?
source share