Exemple #1
0
        private static List <VoiDataLut> Create(DicomElementSq voiLutSequence, DicomElementSq 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));
        }
Exemple #2
0
 public ModalityDataLut(ModalityDataLut item)
     : base(item)
 {
     _modalityLutType = item.ModalityLutType;
 }