|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object PpxLoader
public class PpxLoader
Field Summary | |
---|---|
int |
bitpp
bits per pixel (one band) |
boolean |
blackIsZeroFlag
1 if BLACK is gray value 0, else 0 if WHITE is gray value 0 |
boolean |
blkaln
block alignment flag 0 = aligned) |
private byte[] |
bPixels
pixels [0:nPixels-1] for the image |
int |
bytpp
bytes per pixel (one band) |
java.awt.image.ColorModel |
cm
|
int |
cMapMode
color map flag. |
int |
domain
0 = optical density, 1 = transmittance 2 = gray value ... |
int |
endDataDict
(unsigned int) if non-zero, then byte # of file where data dictionary ends. |
int |
filtyp
type of file. |
int |
fversn
(unsigned short) Set to PPX_VRSION by program creating header |
float[] |
genNdwvalues
ND (od) or CPM wedge step values |
int[] |
grayCalWedge
(16-bit unsigned) gray scale peaks calibration corresponding to step wedge values. |
int |
imEncode
Image encoding method 0 = none (just raw raster data) 1 = UNIX 'compress/uncompress' 2 = run length 3 = 1D modified Huffman 4 = 2D modified Huffman 5 = delta coding 6 = run length with delta coding ... |
java.awt.Image |
img
Image structure required for Flicker |
int |
imOrientation
Image orientation bits where: Default 00==>011: 01 = left to right 02 = bottom to top 04 = right to left 010= top to bottom |
java.lang.String |
initl
initials of person doing scan |
int |
isptsz
(unsigned short) s.s.d in microns*1024 |
int |
istpx
(unsigned short) X step sizes in microns*1024 |
int |
istpy
(unsigned short) Y step sizes in microns*1024 |
java.lang.String |
name
name of the picture - was [16] |
int |
nbands
# of scanning bands (colors) |
int |
ncols
(unsigned short) full image size # columns in pixels |
int |
nexcpt
(unsigned int) number of exception entries |
int |
nPixels
# of pixels for the image is (nrows*ncols) |
int |
nrows
(unsigned short) full image size # rows in pixels |
int |
nWedgeSteps
will contain WEDGE_PPX to be set by user |
int |
nx
(unsigned short) X size of region of interest |
int |
ny
(unsigned short) Y size of region of interest |
int |
odmn
Min Pixel value. |
int |
odmx
Max Pixel value. |
private int[] |
pixels
pixels [0:nPixels-1] for the image |
static int |
PPX_VRSION
Code version 3.5 as 35 |
java.lang.String |
ppxFileName
full path of PPX input file |
int |
rix
(unsigned short) X top left corner of region of interest (0,0) is U.L.H.C. |
int |
riy
(unsigned short) X top left corner of region of interest (0,0) is U.L.H.C. |
java.lang.String |
scprog
name of scanning program |
java.lang.String |
scpvrs
version of scanning program |
java.lang.String |
scsys
ID of the scanning system |
java.lang.String |
sdate
date of scan |
java.lang.String |
sid
further identification - (sample ID) |
int |
startDataDict
(unsigned int) if non-zero, then byte # of file where data dictionary starts. |
int |
startImageData
(unsigned int) if non-zero, then byte # of file where image data starts. |
java.lang.String |
stime
time of scan |
int |
tessl
(unsigned int) tesselation code ??? bits??? |
boolean |
trnsl
translation flag (0 = raw, 1 = done) |
java.lang.String |
vism
visualization method |
static int |
WEDGE_PPX
Max number of wedge steps if applicable |
int |
wedgeType
Type of step wedge if any in the image: 0 = none 1 = ND, neutral density 2 = CPM, counts per minute 3 = DPM, disintegrations per minute 4 to 255 = |
int[] |
wedgeVal
(24-bit unsigned) ND*1024 or CPM wedge step values |
int |
x0
(unsigned short) top left X corner of image in cm*1024 |
int |
y0
(unsigned short) top left Y corner of image in cm*1024 |
Constructor Summary | |
---|---|
PpxLoader()
PpxLoader() - constuctor() |
|
PpxLoader(byte[] byteData)
PpxLoader() - constuctor to parse the PPX header and set up the state |
Method Summary | |
---|---|
private int |
cvByte2Int(byte b)
cvByte2Int() - convert unsigned byte [0:255] to int in range [0:255] |
private byte |
cvInt2Byte(int i)
cvInt2Byte() - convert unsignged int [0:255] to signed byte [-128:+127] |
boolean |
cvP2Ihdr(byte[] byteData)
cvP2Ihdr() - Convert portable header byteData[0:511] into PpxLoader state. |
java.awt.Image |
getImage()
getImage() - get pixels from the raster |
boolean |
makePPXimage()
makePPXimage() - make img and pixels[] from the byte bPixels[] data |
(package private) boolean |
readPPXfile(java.lang.String ppxFileName)
readPPXfile() - read loca PPX file or PPX file URL. |
java.lang.String |
toString()
toString() - return string representation of this PpxLoader instance |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public java.lang.String ppxFileName
public static int PPX_VRSION
public static int WEDGE_PPX
public int fversn
public int filtyp
public int nrows
public int ncols
public java.lang.String name
public java.lang.String sid
public java.lang.String vism
public java.lang.String sdate
public java.lang.String stime
public java.lang.String initl
public java.lang.String scsys
public java.lang.String scprog
public java.lang.String scpvrs
public int nbands
public int bitpp
public int bytpp
public int x0
public int y0
public int isptsz
public int istpx
public int istpy
public int tessl
public int domain
public int rix
public int riy
public int nx
public int ny
public boolean blkaln
public boolean trnsl
public int nexcpt
public int odmn
public int odmx
public boolean blackIsZeroFlag
public int wedgeType
public int nWedgeSteps
public int[] wedgeVal
public int[] grayCalWedge
public float[] genNdwvalues
public int cMapMode
public int imOrientation
public int imEncode
public int startDataDict
public int endDataDict
public int startImageData
private byte[] bPixels
private int[] pixels
public int nPixels
public java.awt.Image img
public java.awt.image.ColorModel cm
Constructor Detail |
---|
public PpxLoader()
public PpxLoader(byte[] byteData)
byteData
- is 512 byte header read from PPX fileMethod Detail |
---|
private final int cvByte2Int(byte b)
b
- is byte to convert
private final byte cvInt2Byte(int i)
i
- is int to convert
public boolean cvP2Ihdr(byte[] byteData)
byteData
- is 512 byte header read from PPX file
public java.awt.Image getImage()
r
- is the image raster instance
boolean readPPXfile(java.lang.String ppxFileName)
ppxFileName
- is the full path file name to be read
public boolean makePPXimage()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |