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.
Modifier and Type | Field and Description |
---|---|
protected UIDGenerator |
generator |
Constructor and Description |
---|
TiledPyramid(java.lang.String inputfilename,
java.lang.String outputPath) |
Modifier and Type | Method and Description |
---|---|
protected static void |
copyFunctionalGroupsSequenceWithDownsampledValues(AttributeList list,
AttributeList newList,
TiledFramesIndex index,
int oldNumberOfFrames,
int newNumberOfFrames,
int newNumberOfColumnsOfTiles,
int newNumberOfRowsOfTiles,
int columns,
int rows) |
static void |
createDownsampledDICOMAttributes(AttributeList list,
AttributeList newList,
TiledFramesIndex index,
java.lang.String outputformat,
boolean populateunchangedimagepixeldescriptionmacroattributes,
boolean populatefunctionalgroups) |
java.io.File |
createDownsampledDICOMFile(java.io.File inputFile,
java.io.File outputFolder) |
protected static void |
downsamplePixelData(AttributeList list,
AttributeList newList,
TiledFramesIndex index,
int oldNumberOfFrames,
int newNumberOfFrames,
int oldTotalPixelMatrixColumns,
int oldTotalPixelMatrixRows,
int oldNumberOfColumnsOfTiles,
int oldNumberOfRowsOfTiles,
int newNumberOfColumnsOfTiles,
int newNumberOfRowsOfTiles,
int columns,
int rows,
java.lang.String outputFormat) |
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.
|
static void |
setClipRectForIncompletelyFilledTilesIfNecessary(SourceImage sImg,
TiledFramesIndex index,
AttributeList list) |
static void |
setClipRectForIncompletelyFilledTilesIfNecessary(SourceImage sImg,
TiledFramesIndex index,
int numberOfColumnsOfTiles,
int numberOfRowsOfTiles,
int totalPixelMatrixColumns,
int totalPixelMatrixRows,
int columns,
int rows) |
protected static void |
updateImageOrFrameType(AttributeList list,
AttributeList newList,
AttributeTag t) |
protected UIDGenerator generator
public TiledPyramid(java.lang.String inputfilename, java.lang.String outputPath) throws DicomException, java.io.IOException
DicomException
java.io.IOException
protected static void copyFunctionalGroupsSequenceWithDownsampledValues(AttributeList list, AttributeList newList, TiledFramesIndex index, int oldNumberOfFrames, int newNumberOfFrames, int newNumberOfColumnsOfTiles, int newNumberOfRowsOfTiles, int columns, int rows) throws DicomException
DicomException
public static void createDownsampledDICOMAttributes(AttributeList list, AttributeList newList, TiledFramesIndex index, java.lang.String outputformat, boolean populateunchangedimagepixeldescriptionmacroattributes, boolean populatefunctionalgroups) throws DicomException, java.io.IOException
DicomException
java.io.IOException
public java.io.File createDownsampledDICOMFile(java.io.File inputFile, java.io.File outputFolder) throws DicomException, java.io.IOException
DicomException
java.io.IOException
protected static void downsamplePixelData(AttributeList list, AttributeList newList, TiledFramesIndex index, int oldNumberOfFrames, int newNumberOfFrames, int oldTotalPixelMatrixColumns, int oldTotalPixelMatrixRows, int oldNumberOfColumnsOfTiles, int oldNumberOfRowsOfTiles, int newNumberOfColumnsOfTiles, int newNumberOfRowsOfTiles, int columns, int rows, java.lang.String outputFormat) throws DicomException, java.io.IOException
DicomException
java.io.IOException
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.
arg
- array of two strings - the source image and the target directory (which must already exist)public static void setClipRectForIncompletelyFilledTilesIfNecessary(SourceImage sImg, TiledFramesIndex index, AttributeList list) throws DicomException
DicomException
public static void setClipRectForIncompletelyFilledTilesIfNecessary(SourceImage sImg, TiledFramesIndex index, int numberOfColumnsOfTiles, int numberOfRowsOfTiles, int totalPixelMatrixColumns, int totalPixelMatrixRows, int columns, int rows)
protected static void updateImageOrFrameType(AttributeList list, AttributeList newList, AttributeTag t) throws DicomException
DicomException