Class ShrinkSegmentationToBoundingBox

java.lang.Object
com.pixelmed.apps.ShrinkSegmentationToBoundingBox

public class ShrinkSegmentationToBoundingBox extends Object

A class of static methods to read DICOM segmentation images, and shrink their extent to the minimum bounding box surrounding the segments.

  • Constructor Details

  • Method Details

    • addTLHCOfClippedRegionToImagePosition

      protected void addTLHCOfClippedRegionToImagePosition(AttributeList list, int[] box) throws DicomException
      Throws:
      DicomException
    • compute2DInPlaneBoundingBoxForSegments

      protected int[] compute2DInPlaneBoundingBoxForSegments(AttributeList list) throws DicomException
      Throws:
      DicomException
    • setBit

      protected static void setBit(byte[] pixelData, int f, int r, int c, int rows, int columns)
    • getBit

      protected static int getBit(byte[] pixelData, int f, int r, int c, int rows, int columns)
    • clipAllFramesToSpecifiedSize

      protected void clipAllFramesToSpecifiedSize(AttributeList list, int[] box) throws DicomException
      Throws:
      DicomException
    • main

      public static void main(String[] arg)

      Read a DICOM segmentation image, and shrink its extent to the minimum bounding box surrounding the segments.

      Parameters:
      arg - two parameters, the inputFile, outputFile