public class NrrdInfo extends Object
Modifier and Type | Field and Description |
---|---|
File[] |
dataFiles |
static String[] |
int16Types |
static String[] |
int32Types |
static String[] |
int64Types |
static String[] |
int8Types |
static int |
NRRD_BIG_ENDIAN |
static int |
NRRD_DIM_MAX |
static int |
NRRD_FALSE |
static int |
NRRD_LITTLE_ENDIAN |
static int |
NRRD_SPACE_DIM_MAX |
static int |
NRRD_TRUE |
static int |
NRRD_UNKNOWN |
String |
primaryFileDirectory |
String |
primaryFileName |
static String[] |
uint16Types |
static String[] |
uint32Types |
static String[] |
uint64Types |
static String[] |
uint8Types |
Constructor and Description |
---|
NrrdInfo(NrrdHeader nh)
Constructor takes a NrrdHeader as argument
|
Modifier and Type | Method and Description |
---|---|
double[] |
getDoubleField(String key) |
double[] |
getDoubleFieldChecked(String key,
int n,
boolean required) |
int[] |
getIntegerField(String key) |
int[] |
getIntegerFieldChecked(String key,
int n,
boolean required) |
long[] |
getLongField(String key) |
long[] |
getLongFieldChecked(String key,
int n,
boolean required) |
String |
getStandardType(String stype) |
String[] |
getStringField(String key) |
String[] |
getStringFieldChecked(String key,
int n,
boolean required) |
static void |
main(String[] args) |
void |
parseHeader() |
public static final int NRRD_DIM_MAX
public static final int NRRD_SPACE_DIM_MAX
public static final int NRRD_UNKNOWN
public static final int NRRD_FALSE
public static final int NRRD_TRUE
public static final int NRRD_BIG_ENDIAN
public static final int NRRD_LITTLE_ENDIAN
public String primaryFileDirectory
public String primaryFileName
public File[] dataFiles
public static final String[] int8Types
public static final String[] uint8Types
public static final String[] int16Types
public static final String[] uint16Types
public static final String[] int32Types
public static final String[] uint32Types
public static final String[] int64Types
public static final String[] uint64Types
public NrrdInfo(NrrdHeader nh)
nh
- public double[] getDoubleField(String key)
public long[] getLongField(String key)
public int[] getIntegerField(String key)
public String[] getStringFieldChecked(String key, int n, boolean required) throws Exception
Exception
public int[] getIntegerFieldChecked(String key, int n, boolean required) throws Exception
Exception
public long[] getLongFieldChecked(String key, int n, boolean required) throws Exception
Exception
public double[] getDoubleFieldChecked(String key, int n, boolean required) throws Exception
Exception
public static void main(String[] args)
Copyright © 2015–2021 Fiji. All rights reserved.