test_class.file: apps/dcm4che/dcm4che-2.0.25-src/dcm4che-image/src/test/java/org/dcm4che2/image/VOIUtilsTest.java
test_class.identifier: VOIUtilsTest
test_case.body: @Test
      public void testGetLUTShouldReturnNullIfLutDescriptorIsMissing() {
          DicomObject mlut = new BasicDicomObject();
          mlut.putInts(Tag.LUTData, VR.US, new int[] { 255 });
          mlut.putString(Tag.ModalityLUTSequence, VR.LO, "HU");
          
          DicomObject obj = new BasicDicomObject();
          obj.putNestedDicomObject(Tag.ModalityLUTSequence, mlut);
          
          assertNull(VOIUtils.getLUT(obj, Tag.ModalityLUTSequence));
      }
test_case.class_method_signature: VOIUtilsTest.testGetLUTShouldReturnNullIfLutDescriptorIsMissing()
test_case.full_signature: @Test public void testGetLUTShouldReturnNullIfLutDescriptorIsMissing()
test_case.identifier: testGetLUTShouldReturnNullIfLutDescriptorIsMissing
test_case.invocations: putInts putString putNestedDicomObject assertNull getLUT
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetLUTShouldReturnNullIfLutDescriptorIsMissing()
focal_class.declarator: log = LoggerFactory.getLogger(VOIUtils.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger log = LoggerFactory.getLogger(VOIUtils.class);
focal_class.type: Logger
focal_class.var_name: log
focal_class.file: apps/dcm4che/dcm4che-2.0.25-src/dcm4che-image/src/main/java/org/dcm4che2/image/VOIUtils.java
focal_class.identifier: VOIUtils
focal_class.class_method_signature: VOIUtils.containsVOIAttributes(DicomObject dobj)
focal_class.full_signature: public static boolean containsVOIAttributes(DicomObject dobj)
focal_class.identifier: containsVOIAttributes
focal_class.modifiers: public static
focal_class.parameters: (DicomObject dobj)
focal_class.return: boolean
focal_class.signature: boolean containsVOIAttributes(DicomObject dobj)
focal_class.class_method_signature: VOIUtils.getLUT(DicomObject dobj, int sqTag)
focal_class.full_signature: public static DicomObject getLUT(DicomObject dobj, int sqTag)
focal_class.identifier: getLUT
focal_class.modifiers: public static
focal_class.parameters: (DicomObject dobj, int sqTag)
focal_class.return: DicomObject
focal_class.signature: DicomObject getLUT(DicomObject dobj, int sqTag)
focal_class.class_method_signature: VOIUtils.isModalityLUTcontainsPixelIntensityRelationshipLUT(
              DicomObject img)
focal_class.full_signature: public static boolean isModalityLUTcontainsPixelIntensityRelationshipLUT(
              DicomObject img)
focal_class.identifier: isModalityLUTcontainsPixelIntensityRelationshipLUT
focal_class.modifiers: public static
focal_class.parameters: (
              DicomObject img)
focal_class.return: boolean
focal_class.signature: boolean isModalityLUTcontainsPixelIntensityRelationshipLUT(
              DicomObject img)
focal_class.class_method_signature: VOIUtils.isModalityLUTcontainsPixelIntensityRelationshipLUT(
              String uid)
focal_class.full_signature: public static boolean isModalityLUTcontainsPixelIntensityRelationshipLUT(
              String uid)
focal_class.identifier: isModalityLUTcontainsPixelIntensityRelationshipLUT
focal_class.modifiers: public static
focal_class.parameters: (
              String uid)
focal_class.return: boolean
focal_class.signature: boolean isModalityLUTcontainsPixelIntensityRelationshipLUT(
              String uid)
focal_class.class_method_signature: VOIUtils.selectModalityLUTObject(DicomObject img,
              DicomObject pr, int frame)
focal_class.full_signature: public static DicomObject selectModalityLUTObject(DicomObject img,
              DicomObject pr, int frame)
focal_class.identifier: selectModalityLUTObject
focal_class.modifiers: public static
focal_class.parameters: (DicomObject img,
              DicomObject pr, int frame)
focal_class.return: DicomObject
focal_class.signature: DicomObject selectModalityLUTObject(DicomObject img,
              DicomObject pr, int frame)
focal_class.class_method_signature: VOIUtils.selectVoiObject(DicomObject img, DicomObject pr, int frame)
focal_class.full_signature: public static DicomObject selectVoiObject(DicomObject img, DicomObject pr, int frame)
focal_class.identifier: selectVoiObject
focal_class.modifiers: public static
focal_class.parameters: (DicomObject img, DicomObject pr, int frame)
focal_class.return: DicomObject
focal_class.signature: DicomObject selectVoiObject(DicomObject img, DicomObject pr, int frame)
focal_class.class_method_signature: VOIUtils.selectVoiItemFromPr(String iuid, DicomObject pr,
              int frame)
focal_class.full_signature: public static DicomObject selectVoiItemFromPr(String iuid, DicomObject pr,
              int frame)
focal_class.identifier: selectVoiItemFromPr
focal_class.modifiers: public static
focal_class.parameters: (String iuid, DicomObject pr,
              int frame)
focal_class.return: DicomObject
focal_class.signature: DicomObject selectVoiItemFromPr(String iuid, DicomObject pr,
              int frame)
focal_class.class_method_signature: VOIUtils.getMinMaxWindowCenterWidth(DicomObject img,
              DicomObject pr, int frame, Raster raster)
focal_class.full_signature: public static float[] getMinMaxWindowCenterWidth(DicomObject img,
              DicomObject pr, int frame, Raster raster)
focal_class.identifier: getMinMaxWindowCenterWidth
focal_class.modifiers: public static
focal_class.parameters: (DicomObject img,
              DicomObject pr, int frame, Raster raster)
focal_class.return: float[]
focal_class.signature: float[] getMinMaxWindowCenterWidth(DicomObject img,
              DicomObject pr, int frame, Raster raster)
focal_class.class_method_signature: VOIUtils.calcMinMax(DicomObject img, Raster raster)
focal_class.full_signature: public static int[] calcMinMax(DicomObject img, Raster raster)
focal_class.identifier: calcMinMax
focal_class.modifiers: public static
focal_class.parameters: (DicomObject img, Raster raster)
focal_class.return: int[]
focal_class.signature: int[] calcMinMax(DicomObject img, Raster raster)
focal_class.class_method_signature: VOIUtils.calcMinMax(int signbit, int mask, int w, int h,
              int scanlineStride, short[] data, int paddingMin, int paddingMax)
focal_class.full_signature: static int[] calcMinMax(int signbit, int mask, int w, int h,
              int scanlineStride, short[] data, int paddingMin, int paddingMax)
focal_class.identifier: calcMinMax
focal_class.modifiers: static
focal_class.parameters: (int signbit, int mask, int w, int h,
              int scanlineStride, short[] data, int paddingMin, int paddingMax)
focal_class.return: int[]
focal_class.signature: int[] calcMinMax(int signbit, int mask, int w, int h,
              int scanlineStride, short[] data, int paddingMin, int paddingMax)
focal_class.class_method_signature: VOIUtils.calcMinMax(int signbit, int mask, int w, int h,
              int scanlineStride, byte[] data, int paddingMin, int paddingMax)
focal_class.full_signature: static int[] calcMinMax(int signbit, int mask, int w, int h,
              int scanlineStride, byte[] data, int paddingMin, int paddingMax)
focal_class.identifier: calcMinMax
focal_class.modifiers: static
focal_class.parameters: (int signbit, int mask, int w, int h,
              int scanlineStride, byte[] data, int paddingMin, int paddingMax)
focal_class.return: int[]
focal_class.signature: int[] calcMinMax(int signbit, int mask, int w, int h,
              int scanlineStride, byte[] data, int paddingMin, int paddingMax)
focal_class.class_method_signature: VOIUtils.calcMinMax(DicomObject lut)
focal_class.full_signature: static int[] calcMinMax(DicomObject lut)
focal_class.identifier: calcMinMax
focal_class.modifiers: static
focal_class.parameters: (DicomObject lut)
focal_class.return: int[]
focal_class.signature: int[] calcMinMax(DicomObject lut)
focal_method.body: public static DicomObject getLUT(DicomObject dobj, int sqTag) {
          DicomObject lut = dobj.getNestedDicomObject(sqTag);
          if (lut != null) {
              if (!lut.containsValue(Tag.LUTData)) {
                  log.info("Ignore " + TagUtils.toString(sqTag)
                          + " with missing LUT Data (0028,3006)");
                  return null;
              }
              if (!lut.containsValue(Tag.LUTDescriptor)) {
                  log.info("Ignore " + TagUtils.toString(sqTag)
                          + " with missing LUT Descriptor (0028,3002)");
                  return null;
              }
          }
          return lut;
      }
focal_method.class_method_signature: VOIUtils.getLUT(DicomObject dobj, int sqTag)
focal_method.full_signature: public static DicomObject getLUT(DicomObject dobj, int sqTag)
focal_method.identifier: getLUT
focal_method.invocations: getNestedDicomObject containsValue info toString containsValue info toString
focal_method.modifiers: public static
focal_method.parameters: (DicomObject dobj, int sqTag)
focal_method.return: DicomObject
focal_method.signature: DicomObject getLUT(DicomObject dobj, int sqTag)