Condition(String[] pmis, int[] bitsStored, int pixelRepresentation, String[] aeTitles, String[] sopClasses, String[] bodyPartExamined) { this.pmis = EnumSet.noneOf(PhotometricInterpretation.class); for (String pmi : pmis) this.pmis.add(PhotometricInterpretation.fromString(pmi)); this.bitsStoredMask = toBitsStoredMask(bitsStored); this.aeTitles = aeTitles; this.sopClasses = sopClasses; this.bodyPartExamined = bodyPartExamined; this.weight = (aeTitles.length != 0 ? 4 : 0) + (sopClasses.length != 0 ? 2 : 0) + (bodyPartExamined.length != 0 ? 1 : 0); }
raster.setDataElements(0, 0, width, height, pixelData); PhotometricInterpretation pmi = PhotometricInterpretation .fromString(iconInstance.getString(Tag.PhotometricInterpretation, "MONOCHROME2")); //$NON-NLS-1$ BufferedImage thumbnail = new BufferedImage( pmi.createColorModel(8, DataBuffer.TYPE_BYTE, iconInstance), raster, false, null);
dataType = bitsAllocated <= 8 ? DataBuffer.TYPE_BYTE : DataBuffer.TYPE_USHORT; pmi = PhotometricInterpretation.fromString( ds.getString(Tag.PhotometricInterpretation, "MONOCHROME2")); if (pixelDataLength != -1) {
this.cols = dataset.getInt(Tag.Columns, 0); this.samples = dataset.getInt(Tag.SamplesPerPixel, 0); this.pmi = PhotometricInterpretation.fromString( dataset.getString(Tag.PhotometricInterpretation, "MONOCHROME2")); this.pmiAfterDecompression = pmi;
public ImageDescriptor(Attributes attrs) { this.rows = attrs.getInt(Tag.Rows, 0); this.columns = attrs.getInt(Tag.Columns, 0); this.samples = attrs.getInt(Tag.SamplesPerPixel, 0); this.photometricInterpretation = PhotometricInterpretation.fromString( attrs.getString(Tag.PhotometricInterpretation, "MONOCHROME2")); this.bitsAllocated = attrs.getInt(Tag.BitsAllocated, 8); this.bitsStored = attrs.getInt(Tag.BitsStored, bitsAllocated); this.pixelRepresentation = attrs.getInt(Tag.PixelRepresentation, 0); this.planarConfiguration = attrs.getInt(Tag.PlanarConfiguration, 0); this.sopClassUID = attrs.getString(Tag.SOPClassUID); this.bodyPartExamined = attrs.getString(Tag.BodyPartExamined); this.frames = attrs.getInt(Tag.NumberOfFrames, 1); this.embeddedOverlays = Overlays.getEmbeddedOverlayGroupOffsets(attrs); }
pmi = PhotometricInterpretation.fromString(photometricInterpretation); TagD.get(Tag.PresentationLUTShape).readValue(header, this); setTag(TagD.get(Tag.PhotometricInterpretation), photometricInterpretation);