Class Windump

java.lang.Object
  extended by Windump

public class Windump
extends java.lang.Object

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/.

Version:
$Date$ $Revision$
Author:
P. Lemkin, NCI-Frederick, Frederick, MD, 21702

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

SHOW_DECIMAL

public static final int SHOW_DECIMAL
Window dump OCTAL data mode

See Also:
Constant Field Values

SHOW_OCTAL

public static final int SHOW_OCTAL
Window dump OCTAL data mode

See Also:
Constant Field Values

SHOW_HEX

public static final int SHOW_HEX
Window dump OCTAL data mode

See Also:
Constant Field Values

SHOW_OD

public static final int SHOW_OD
Window dump OD data mode

See Also:
Constant Field Values

flk

private static Flicker flk
instance of Flicker


fio

public static FileIO fio
FileIO utilities


util

private static Util util
misc utility methods

Constructor Detail

Windump

public Windump(Flicker flkS)
Windump() - constructor

Method Detail

winDump

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)
winDump() - Draw a window from picture frlo the lower 8-bit/pixel data in an int[] 'pix' at
 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.

Parameters:
pix - is 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
printMode - is HOW_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.
stepSize - is pixel step size for sample/average in [1:32], 1 default
iData - is the image data instance if left or right image. This is used to lookup the iData.mapGrayToOD[] map.
Returns:
string of window data