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)); }
public ModalityDataLut(ModalityDataLut item) : base(item) { _modalityLutType = item.ModalityLutType; }