public class AxisGuesser extends Object
Modifier and Type | Field and Description |
---|---|
protected int[] |
axisTypes
Guessed axis types.
|
protected static String[] |
C
Prefix endings indicating channel dimension.
|
static int |
C_AXIS
Axis type for channels.
|
protected boolean |
certain
Whether the guesser is confident that all axis types are correct.
|
protected String |
dimOrder
Original ordering of internal dimensional axes.
|
protected FilePattern |
fp
File pattern identifying dimensional axis blocks.
|
protected String |
newOrder
Adjusted ordering of internal dimensional axes.
|
protected static String |
ONE |
protected static String[] |
S
Prefix endings indicating series dimension.
|
static int |
S_AXIS
Axis type for series.
|
protected static String[] |
T
Prefix endings indicating time dimension.
|
static int |
T_AXIS
Axis type for time points.
|
protected static String |
THREE |
protected static String |
TWO |
static int |
UNKNOWN_AXIS
Axis type for unclassified axes.
|
protected static String[] |
Z
Prefix endings indicating space dimension.
|
static int |
Z_AXIS
Axis type for focal planes.
|
Constructor and Description |
---|
AxisGuesser(FilePattern fp,
String dimOrder,
int sizeZ,
int sizeT,
int sizeC,
boolean isCertain)
Guesses dimensional axis assignments corresponding to the given
file pattern, using the specified dimensional information from
within each file as a guide.
|
Modifier and Type | Method and Description |
---|---|
String |
getAdjustedOrder()
Gets the adjusted dimension order.
|
int |
getAxisCount(int axisType)
Gets the number of axes in the pattern of the given type.
|
int |
getAxisCountC()
Gets the number of C axes in the pattern.
|
int |
getAxisCountS()
Gets the number of S axes in the pattern.
|
int |
getAxisCountT()
Gets the number of T axes in the pattern.
|
int |
getAxisCountZ()
Gets the number of Z axes in the pattern.
|
static int |
getAxisType(String label)
Returns a best guess of the given label's axis type.
|
int[] |
getAxisTypes()
Gets the guessed axis type for each dimensional block.
|
FilePattern |
getFilePattern()
Gets the file pattern.
|
String |
getOriginalOrder()
Gets the original dimension order.
|
boolean |
isCertain()
Gets whether the guesser is confident that all axes are correct.
|
static void |
main(String[] args)
Method for testing pattern guessing logic.
|
void |
setAxisTypes(int[] axes)
Sets the axis type for each dimensional block.
|
public static final int UNKNOWN_AXIS
public static final int Z_AXIS
public static final int T_AXIS
public static final int C_AXIS
public static final int S_AXIS
protected static final String[] Z
protected static final String[] T
protected static final String[] C
protected static final String[] S
protected static final String ONE
protected static final String TWO
protected static final String THREE
protected FilePattern fp
protected String dimOrder
protected String newOrder
protected int[] axisTypes
protected boolean certain
public AxisGuesser(FilePattern fp, String dimOrder, int sizeZ, int sizeT, int sizeC, boolean isCertain)
fp
- The file pattern of the filesdimOrder
- The dimension order (e.g., XYZTC) within each filesizeZ
- The number of Z positions within each filesizeT
- The number of T positions within each filesizeC
- The number of C positions within each fileisCertain
- Whether the dimension order given is known to be good,
or merely a guessFilePattern
public FilePattern getFilePattern()
public String getOriginalOrder()
public String getAdjustedOrder()
public boolean isCertain()
public int[] getAxisTypes()
public void setAxisTypes(int[] axes)
axes
- An array containing values from the enumeration:
public int getAxisCountZ()
public int getAxisCountT()
public int getAxisCountC()
public int getAxisCountS()
public int getAxisCount(int axisType)
axisType
- One of:
public static int getAxisType(String label)
public static void main(String[] args) throws FormatException, IOException
FormatException
IOException
Copyright © 2014 Open Microscopy Environment