コード例 #1
0
 public DicomImage()
 {
     _dicomDecoder   = new DicomDecoder();
     _validDicomFile = false;
     _ImageType      = ImageType.Undefined;
     _patientInfo    = new PatientInformation();
 }
コード例 #2
0
        public DicomDecoder(DicomDecoder dicomDecoder, List <byte> pixels24)
        {
            CopyFromClone(dicomDecoder);

            _pixels24           = pixels24;
            _typeofDicomFile    = dicomDecoder._typeofDicomFile;
            _PixelsHaveBeenRead = true;
        }
コード例 #3
0
        public DicomDecoder(DicomDecoder dicomDecoder, List <List <ushort> > newPixels)
        {
            CopyFromClone(dicomDecoder);

            _pixels16           = newPixels;
            _typeofDicomFile    = dicomDecoder._typeofDicomFile;
            _PixelsHaveBeenRead = true;
        }
コード例 #4
0
 private void CopyFromClone(DicomDecoder dicomDecoder)
 {
     _bitsAllocated       = dicomDecoder._bitsAllocated;
     _imageWidth          = dicomDecoder._imageWidth;
     _imageHeight         = dicomDecoder._imageHeight;
     _offset              = dicomDecoder._offset;
     _nImages             = dicomDecoder._nImages;
     _samplesPerPixel     = dicomDecoder._samplesPerPixel;
     _photoInterpretation = dicomDecoder._photoInterpretation;
     _unit              = dicomDecoder._unit;
     _windowCentre      = dicomDecoder._windowCentre;
     _windowWidth       = dicomDecoder._windowWidth;
     _signedImage       = dicomDecoder._signedImage;
     _widthTagFound     = dicomDecoder._widthTagFound;
     _heightTagFound    = dicomDecoder._heightTagFound;
     _pixelDataTagFound = dicomDecoder._pixelDataTagFound;
     _rescaleIntercept  = dicomDecoder._rescaleIntercept;
     _rescaleSlope      = dicomDecoder._rescaleSlope;
 }