public class TiledFramesIndex
extends java.lang.Object
The TiledFramesIndex
class ... .
Modifier and Type | Field and Description |
---|---|
protected int[] |
columnForFrame |
protected int[][] |
index |
protected boolean |
isEncodedInStandardRasterOrder |
protected boolean |
isEncodedInStandardRasterOrderHasBeenTested |
protected boolean |
isSparse |
protected boolean |
isSparseHasBeenTested |
protected int |
numberOfColumnsOfTiles |
protected int |
numberOfFrames |
protected int |
numberOfRowsOfTiles |
protected int[] |
rowForFrame |
protected double |
totalPixelMatrixXOffsetInSlideCoordinateSystem |
protected double |
totalPixelMatrixYOffsetInSlideCoordinateSystem |
protected double[][] |
xOffsetInSlideCoordinateSystem |
protected double[][] |
yOffsetInSlideCoordinateSystem |
protected double[][] |
zOffsetInSlideCoordinateSystem |
Constructor and Description |
---|
TiledFramesIndex(AttributeList list)
Index the tiles by row and column position
|
TiledFramesIndex(AttributeList list,
boolean extractPhysicalOffsets,
boolean buildInverseIndex,
boolean ignorePlanePosition)
Index the tiles by row and column position
|
TiledFramesIndex(AttributeList list,
boolean extractPhysicalOffsets,
boolean buildInverseIndex,
boolean ignorePlanePosition,
boolean checkPhysicalOffsets,
double checkPhysicalOffsetPixelSpacingRelativeThreshold)
Index the tiles by row and column position
|
Modifier and Type | Method and Description |
---|---|
protected void |
computeRowAndColumnForFrame() |
int |
getColumn(int frame)
Get the column number for the specified frame
|
int |
getFrameNumber(int row,
int column)
Get the frame number for the tile at the specified row and column
|
int |
getNumberOfColumnsOfTiles() |
int |
getNumberOfRowsOfTiles() |
int |
getRow(int frame)
Get the row number for the specified frame
|
boolean |
isEncodedInStandardRasterOrder()
Is the encoded matrix of tiles organized in a standard raster pattern?
|
boolean |
isSparse()
Is the encoded matrix of tiles sparse?
|
static void |
main(java.lang.String[] arg)
Read the DICOM input file as a list of attributes, create and index of the tiled frames, and dump it.
|
java.lang.String |
toString()
Dump the contents of the index as a human-readable string.
|
protected int[] columnForFrame
protected int[][] index
protected boolean isEncodedInStandardRasterOrder
protected boolean isEncodedInStandardRasterOrderHasBeenTested
protected boolean isSparse
protected boolean isSparseHasBeenTested
protected int numberOfColumnsOfTiles
protected int numberOfFrames
protected int numberOfRowsOfTiles
protected int[] rowForFrame
protected double totalPixelMatrixXOffsetInSlideCoordinateSystem
protected double totalPixelMatrixYOffsetInSlideCoordinateSystem
protected double[][] xOffsetInSlideCoordinateSystem
protected double[][] yOffsetInSlideCoordinateSystem
protected double[][] zOffsetInSlideCoordinateSystem
public TiledFramesIndex(AttributeList list) throws DicomException
Index the tiles by row and column position
list
- an AttributeList for a Whole Slide ImageDicomException
- if insufficient or inconsistent informationpublic TiledFramesIndex(AttributeList list, boolean extractPhysicalOffsets, boolean buildInverseIndex, boolean ignorePlanePosition) throws DicomException
Index the tiles by row and column position
list
- an AttributeList for a Whole Slide ImageextractPhysicalOffsets
- extract the physical as well as logical positionbuildInverseIndex
- build the inverse index rather than waiting until it is neededignorePlanePosition
- ignore the PlanePositionSequence and assume frame order is normal rasterDicomException
- if insufficient or inconsistent informationpublic TiledFramesIndex(AttributeList list, boolean extractPhysicalOffsets, boolean buildInverseIndex, boolean ignorePlanePosition, boolean checkPhysicalOffsets, double checkPhysicalOffsetPixelSpacingRelativeThreshold) throws DicomException
Index the tiles by row and column position
list
- an AttributeList for a Whole Slide ImageextractPhysicalOffsets
- extract the physical as well as logical positionbuildInverseIndex
- build the inverse index rather than waiting until it is neededignorePlanePosition
- ignore the PlanePositionSequence and assume frame order is normal rastercheckPhysicalOffsets
- check that the physical offsets match what is predicted from the origin, logical position and spacingcheckPhysicalOffsetPixelSpacingRelativeThreshold
- threshold as fraction of pixel spacing for matchDicomException
- if insufficient or inconsistent informationprotected void computeRowAndColumnForFrame()
public int getColumn(int frame)
Get the column number for the specified frame
frame
- the frame number from 1java.lang.ArrayIndexOutOfBoundsException
- if frame number is beyond limits of tile arraypublic int getFrameNumber(int row, int column)
Get the frame number for the tile at the specified row and column
row
- the number of the tile along the column direction (which row of tiles), numbered from 0column
- the number of the tile along the row direction (which column of tiles), numbered from 0java.lang.ArrayIndexOutOfBoundsException
- if row or column beyond limits of tile arraypublic int getNumberOfColumnsOfTiles()
public int getNumberOfRowsOfTiles()
public int getRow(int frame)
Get the row number for the specified frame
frame
- the frame number from 1java.lang.ArrayIndexOutOfBoundsException
- if frame number is beyond limits of tile arraypublic boolean isEncodedInStandardRasterOrder()
Is the encoded matrix of tiles organized in a standard raster pattern?
The standard pattern is all the columns of the first row from left to right, then the second row, etc.
public boolean isSparse()
Is the encoded matrix of tiles sparse?
public static void main(java.lang.String[] arg)
Read the DICOM input file as a list of attributes, create and index of the tiled frames, and dump it.
arg
- array of one string (the filename to read and dump),public java.lang.String toString()
Dump the contents of the index as a human-readable string.
toString
in class java.lang.Object