public class NiftiReader
extends java.lang.Object
Constructor and Description |
---|
NiftiReader() |
Modifier and Type | Method and Description |
---|---|
static BinaryInputStream |
advanceToOffset(BinaryInputStream bis,
java.io.File file,
long offset) |
static NiftiImage |
read(java.io.File file) |
static NiftiImage |
read(java.io.File hdr,
java.io.File img)
Nifti V1 or Analyze 7.5 format with separate header and image files
|
static NiftiDataBuffer |
readData(BinaryInputStream bis,
int[] dims,
NiftiHeader.DataType dataType) |
static NiftiHeader.Extension[] |
readExtensions(BinaryInputStream reader) |
static NiftiHeader |
readHeader(BinaryInputStream reader) |
public static NiftiImage read(java.io.File hdr, java.io.File img) throws java.io.IOException
hdr
- header fileimg
- image filejava.io.IOException
- on read failurepublic static NiftiImage read(java.io.File file) throws java.io.IOException
java.io.IOException
public static NiftiHeader.Extension[] readExtensions(BinaryInputStream reader) throws java.io.IOException
java.io.IOException
public static NiftiHeader readHeader(BinaryInputStream reader) throws java.io.IOException
java.io.IOException
public static BinaryInputStream advanceToOffset(BinaryInputStream bis, java.io.File file, long offset) throws java.io.IOException
java.io.IOException
public static NiftiDataBuffer readData(BinaryInputStream bis, int[] dims, NiftiHeader.DataType dataType) throws java.io.IOException
java.io.IOException