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