O2Plib.image
Class WinDump
java.lang.Object
O2Plib.image.WinDump
public class WinDump
- extends java.lang.Object
Constructor Summary |
WinDump()
WinDump() - constructor |
Method Summary |
static java.lang.String |
winDump(char[] pix,
int x1,
int x2,
int y1,
int y2,
int pixWidth,
int pixHeight,
java.lang.String title,
int radixMode,
int maxColsToPrint,
float[] mapGrayToCal,
int stepSize)
winDump() - Draw a window from picture from the 16-bit/pixel
data in an char[] 'pix' at |
static java.lang.String |
winDump(int[] pix,
int x1,
int x2,
int y1,
int y2,
int pixWidth,
int pixHeight,
java.lang.String title,
int radixMode,
int maxColsToPrint,
float[] mapGrayToCal,
int stepSize)
winDump() - Draw a window from picture from the lower 16-bit/pixel
data in an int[] 'pix' at |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WinDump
public WinDump()
- WinDump() - constructor
winDump
public static java.lang.String winDump(int[] pix,
int x1,
int x2,
int y1,
int y2,
int pixWidth,
int pixHeight,
java.lang.String title,
int radixMode,
int maxColsToPrint,
float[] mapGrayToCal,
int stepSize)
- winDump() - Draw a window from picture from the lower 16-bit/pixel
data in an int[] 'pix' at
x1,y1 x2,y1
...
x1,y2 x2,y2.
if radixMode is Util.SHOW_OCTAL, SHOW_DECIMAL or SHOW_HEX, SHOW_OD.
If width is < 0, then put the data in OCTAL else DECIMAL.
The print width depends on the max value of the data in the window
being printed. It is analyzed for data up to 16-bit data...
- Parameters:
pix
- is int image data but we only use 8 least siginificant bitsx1
- is left columnx2
- is right columny1
- is top rowy2
- is bottom rowpixWidth
- is the number of columns in the imagepixHeight
- is the number of rows in the imagetitle
- is title for printoutradixMode
- is Util.SHOW_OCTAL, SHOW_DECIMAL, SHOW_HEX or SHOW_ODmaxColsToPrint
- is the number of columns to print.
For 80 column terminal width is 18 and 30 for a 132 column
terminal.mapGrayToCal
- is a grayscale to calibration (e.g., OD) map
used if radixMode is Util.SHOW_ODstepSize
- is pixel step size for sample/average in [1:32],
1 default
- Returns:
- string of window data
winDump
public static java.lang.String winDump(char[] pix,
int x1,
int x2,
int y1,
int y2,
int pixWidth,
int pixHeight,
java.lang.String title,
int radixMode,
int maxColsToPrint,
float[] mapGrayToCal,
int stepSize)
- winDump() - Draw a window from picture from the 16-bit/pixel
data in an char[] 'pix' at
x1,y1 x2,y1
...
x1,y2 x2,y2.
if radixMode is Util.SHOW_OCTAL, SHOW_DECIMAL or SHOW_HEX, SHOW_OD.
If width is < 0, then put the data in OCTAL else DECIMAL.
The print width depends on the max value of the data in the window
being printed. It is analyzed for data up to 16-bit data...
- Parameters:
pix
- is int image data but we only use 8 least siginificant bitsx1
- is left columnx2
- is right columny1
- is top rowy2
- is bottom rowpixWidth
- is the number of columns in the imagepixHeight
- is the number of rows in the imagetitle
- is title for printoutradixMode
- is Util.SHOW_OCTAL, SHOW_DECIMAL, SHOW_HEX or SHOW_ODmaxColsToPrint
- is the number of columns to print.
For 80 column terminal width is 18 and 30 for a 132 column
terminal.mapGrayToCal
- is a grayscale to calibration (e.g., OD) map
used if radixMode is Util.SHOW_ODstepSize
- is pixel step size for sample/average in [1:32],
1 default
- Returns:
- string of window data