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.Object3D JP2 image header reader/writer.- Version:
- 0.01, Mar *, 2007
- Author:
- Dzung Nguyen
-
-
Field Summary
Fields Modifier and Type Field Description private intarrayPosprotected booleanbigEndianprotected int[]imgExtentsprotected intimgModalityprotected intimgOrientationprotected float[]imgResolutionprotected intimgTypeprotected booleanis2Dprotected intnumOfSlicesprivate int[]ptArrayprotected int[]sizeArray
-
Constructor Summary
Constructors Constructor Description RAWJP2Header()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcalPtArr()int[]getImgExtents()intgetImgModality()intgetImgOrientation()float[]getImgResolution()intgetImgType()booleangetIs2D()intgetNumOfSlices()intgetSize(int idx)int[]getSizeArray()intgetSlicePos(int idx)booleanisBigendian()java.io.FileInputStreamreadRawJP2Header(java.lang.String fName)voidsetBigendian(boolean bigendian)intsetImgExtents(int[] s)voidsetImgModality(int imgModality)voidsetImgOrientation(int imgOrientation)voidsetImgResolution(float[] imgResolution)voidsetImgType(int imgType)voidsetIs2D(boolean is2D)voidsetNumOfSlices(int numOfSlices)intsetSize(int p, int idx)intsetSizeArray(int[] p)voidwriteRawJP2Header(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()
-
-