O2Plib.image
Class WinDump

java.lang.Object
  extended by 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
 

Constructor Detail

WinDump

public WinDump()
WinDump() - constructor

Method Detail

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 bits
x1 - is left column
x2 - is right column
y1 - is top row
y2 - is bottom row
pixWidth - is the number of columns in the image
pixHeight - is the number of rows in the image
title - is title for printout
radixMode - is Util.SHOW_OCTAL, SHOW_DECIMAL, SHOW_HEX or SHOW_OD
maxColsToPrint - 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_OD
stepSize - 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 bits
x1 - is left column
x2 - is right column
y1 - is top row
y2 - is bottom row
pixWidth - is the number of columns in the image
pixHeight - is the number of rows in the image
title - is title for printout
radixMode - is Util.SHOW_OCTAL, SHOW_DECIMAL, SHOW_HEX or SHOW_OD
maxColsToPrint - 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_OD
stepSize - is pixel step size for sample/average in [1:32], 1 default
Returns:
string of window data