|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectWindump
public class Windump
Class Windump is used debug print methods for image neighbohood, windows, etc.
This file is derived from GELLAB-II sg2gii file sg2rlm.c.
This work was produced by Peter Lemkin of the National Cancer Institute, an agency of the United States Government. As a work of the United States Government there is no associated copyright. It is offered as open source software under the Mozilla Public License (version 1.1) subject to the limitations noted in the accompanying LEGAL file. This notice must be included with the code. The Open2Dprot Mozilla and Legal files are available on http://Open2Dprot.sourceforge.net/.
Field Summary | |
---|---|
static FileIO |
fio
FileIO utilities |
private static Flicker |
flk
instance of Flicker |
static int |
SHOW_DECIMAL
Window dump OCTAL data mode |
static int |
SHOW_HEX
Window dump OCTAL data mode |
static int |
SHOW_OCTAL
Window dump OCTAL data mode |
static int |
SHOW_OD
Window dump OD data mode |
private static Util |
util
misc utility methods |
Constructor Summary | |
---|---|
Windump(Flicker flkS)
Windump() - constructor |
Method Summary | |
---|---|
static java.lang.String |
winDump(int[] pix,
int x1,
int x2,
int y1,
int y2,
int pixWidth,
int pixHeight,
java.lang.String title,
int printMode,
int maxColsToPrint,
int stepSize,
ImageData iData)
winDump() - Draw a window from picture frlo the lower 8-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 |
Field Detail |
---|
public static final int SHOW_DECIMAL
public static final int SHOW_OCTAL
public static final int SHOW_HEX
public static final int SHOW_OD
private static Flicker flk
public static FileIO fio
private static Util util
Constructor Detail |
---|
public Windump(Flicker flkS)
Method Detail |
---|
public static final java.lang.String winDump(int[] pix, int x1, int x2, int y1, int y2, int pixWidth, int pixHeight, java.lang.String title, int printMode, int maxColsToPrint, int stepSize, ImageData iData)
x1,y1 x2,y1 ... x1,y2 x2,y2. if printMode is SHOW_OCTAL, SHOW_DECIMAL or SHOW_HEX. If width is < 0, then put the data in OCTAL else DECIMAL.
pix
- is 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 printoutprintMode
- is HOW_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.stepSize
- is pixel step size for sample/average in [1:32],
1 defaultiData
- is the image data instance if left or right image.
This is used to lookup the iData.mapGrayToOD[] map.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |