Class TiledPyramid


  • public class TiledPyramid
    extends java.lang.Object

    Take a single high resolution tiled image and downsample it by successive factors of two to produce a multi-resolution pyramid set of images.

    • Constructor Detail

      • TiledPyramid

        public TiledPyramid​(java.lang.String inputfilename,
                            java.lang.String outputPath)
                     throws DicomException,
                            java.io.IOException
        Throws:
        DicomException
        java.io.IOException
    • Method Detail

      • copyFunctionalGroupsSequenceWithDownsampledValues

        protected static void copyFunctionalGroupsSequenceWithDownsampledValues​(AttributeList list,
                                                                                AttributeList newList,
                                                                                TiledFramesIndex index,
                                                                                int oldNumberOfFrames,
                                                                                int newNumberOfFrames,
                                                                                int newNumberOfColumnsOfTiles,
                                                                                int newNumberOfRowsOfTiles,
                                                                                int columns,
                                                                                int rows)
                                                                         throws DicomException
        Throws:
        DicomException
      • downsamplePixelData

        protected static void downsamplePixelData​(AttributeList list,
                                                  AttributeList newList,
                                                  TiledFramesIndex index,
                                                  int oldNumberOfFrames,
                                                  int newNumberOfFrames,
                                                  int oldNumberOfColumnsOfTiles,
                                                  int oldNumberOfRowsOfTiles,
                                                  int newNumberOfColumnsOfTiles,
                                                  int newNumberOfRowsOfTiles,
                                                  int columns,
                                                  int rows,
                                                  java.lang.String outputFormat,
                                                  java.io.File[] frameFiles)
                                           throws DicomException,
                                                  java.io.IOException
        Throws:
        DicomException
        java.io.IOException
      • createDownsampledDICOMAttributes

        public static void createDownsampledDICOMAttributes​(AttributeList list,
                                                            AttributeList newList,
                                                            TiledFramesIndex index,
                                                            java.lang.String outputformat,
                                                            boolean populateunchangedimagepixeldescriptionmacroattributes,
                                                            boolean populatefunctionalgroups)
                                                     throws DicomException,
                                                            java.io.IOException
        Throws:
        DicomException
        java.io.IOException
      • createDownsampledDICOMFile

        public java.io.File createDownsampledDICOMFile​(java.io.File inputFile,
                                                       java.io.File outputFolder)
                                                throws DicomException,
                                                       java.io.IOException
        Throws:
        DicomException
        java.io.IOException
      • main

        public static void main​(java.lang.String[] arg)

        Take a single high resolution tiled image and downsample it by successive factors of two to produce multi-resolution pyramid set of images.

        Parameters:
        arg - array of two strings - the source image and the target directory (which must already exist)