Package gov.nih.mipav.model.file.rawjp2
Class RAWJP2Header
java.lang.Object
gov.nih.mipav.model.file.rawjp2.RAWJP2Header
3D JP2 image header reader/writer.
- Version:
- 0.01, Mar *, 2007
- Author:
- Dzung Nguyen
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprotected booleanprotected int[]protected intprotected intprotected float[]protected intprotected booleanprotected intprivate int[]protected int[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcalPtArr()int[]intintfloat[]intbooleangetIs2D()intintgetSize(int idx) int[]intgetSlicePos(int idx) booleanreadRawJP2Header(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 Details
-
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
-
-
Constructor Details
-
RAWJP2Header
public RAWJP2Header()
-
-
Method Details
-
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
- Throws:
IOException
-
readRawJP2Header
-
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()
-