示例#1
0
        private static List <VoiDataLut> Create(DicomAttributeSQ voiLutSequence, DicomAttributeSQ modalityLutSequence, int pixelRepresentation)
        {
            ModalityDataLut modalityLut = ModalityDataLut.Create(modalityLutSequence, pixelRepresentation);

            if (modalityLut == null)
            {
                throw new DicomDataException("Input Modality Lut Sequence is not valid.");
            }

            //Hounsfield units are always signed.
            bool isFirstMappedPixelValueSigned = pixelRepresentation != 0 || modalityLut.ModalityLutType == "HU";

            List <DataLut> dataLuts = Create(voiLutSequence, isFirstMappedPixelValueSigned, false);

            return(Convert(dataLuts));
        }
示例#2
0
		public ModalityDataLut(ModalityDataLut item)
			: base(item)
		{
			_modalityLutType = item.ModalityLutType;
		}
示例#3
0
 public ModalityDataLut(ModalityDataLut item)
     : base(item)
 {
     _modalityLutType = item.ModalityLutType;
 }