Package gov.nih.mipav.model.file.rawjp2
Class RAWJP2Header
- java.lang.Object
-
- gov.nih.mipav.model.file.rawjp2.RAWJP2Header
-
public class RAWJP2Header extends java.lang.Object
3D JP2 image header reader/writer.- Version:
- 0.01, Mar *, 2007
- Author:
- Dzung Nguyen
-
-
Field Summary
Fields Modifier and Type Field Description private int
arrayPos
protected boolean
bigEndian
protected int[]
imgExtents
protected int
imgModality
protected int
imgOrientation
protected float[]
imgResolution
protected int
imgType
protected boolean
is2D
protected int
numOfSlices
private int[]
ptArray
protected int[]
sizeArray
-
Constructor Summary
Constructors Constructor Description RAWJP2Header()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
calPtArr()
int[]
getImgExtents()
int
getImgModality()
int
getImgOrientation()
float[]
getImgResolution()
int
getImgType()
boolean
getIs2D()
int
getNumOfSlices()
int
getSize(int idx)
int[]
getSizeArray()
int
getSlicePos(int idx)
boolean
isBigendian()
java.io.FileInputStream
readRawJP2Header(java.lang.String fName)
void
setBigendian(boolean bigendian)
int
setImgExtents(int[] s)
void
setImgModality(int imgModality)
void
setImgOrientation(int imgOrientation)
void
setImgResolution(float[] imgResolution)
void
setImgType(int imgType)
void
setIs2D(boolean is2D)
void
setNumOfSlices(int numOfSlices)
int
setSize(int p, int idx)
int
setSizeArray(int[] p)
void
writeRawJP2Header(jj2000.j2k.io.BEBufferedRandomAccessFile f)
-
-
-
Field Detail
-
bigEndian
protected boolean bigEndian
-
numOfSlices
protected int numOfSlices
-
imgExtents
protected int[] imgExtents
-
imgResolution
protected float[] imgResolution
-
imgType
protected int imgType
-
imgModality
protected int imgModality
-
imgOrientation
protected int imgOrientation
-
sizeArray
protected int[] sizeArray
-
ptArray
private int[] ptArray
-
arrayPos
private int arrayPos
-
is2D
protected boolean is2D
-
-
Method Detail
-
calPtArr
protected void calPtArr()
-
getImgExtents
public int[] getImgExtents()
-
setImgExtents
public int setImgExtents(int[] s)
-
setNumOfSlices
public void setNumOfSlices(int numOfSlices)
-
getSizeArray
public int[] getSizeArray()
-
setSizeArray
public int setSizeArray(int[] p)
-
getNumOfSlices
public int getNumOfSlices()
-
setSize
public int setSize(int p, int idx)
-
getSize
public int getSize(int idx)
-
isBigendian
public boolean isBigendian()
-
setBigendian
public void setBigendian(boolean bigendian)
-
writeRawJP2Header
public void writeRawJP2Header(jj2000.j2k.io.BEBufferedRandomAccessFile f) throws java.io.IOException
- Throws:
java.io.IOException
-
readRawJP2Header
public java.io.FileInputStream readRawJP2Header(java.lang.String fName)
-
getSlicePos
public int getSlicePos(int idx)
-
getImgType
public int getImgType()
-
setImgType
public void setImgType(int imgType)
-
getImgResolution
public float[] getImgResolution()
-
setImgResolution
public void setImgResolution(float[] imgResolution)
-
getImgModality
public int getImgModality()
-
setImgModality
public void setImgModality(int imgModality)
-
getImgOrientation
public int getImgOrientation()
-
setImgOrientation
public void setImgOrientation(int imgOrientation)
-
setIs2D
public void setIs2D(boolean is2D)
-
getIs2D
public boolean getIs2D()
-
-