|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectSeg2Dgel.Sg2glb
Seg2Dgel.Sg2dbug
public class Sg2dbug
Class Sg2dbug contains debug print methods for image neighbohood, windows, etc. used by the 2D Gel Spot Segmenter Seg2Dgel. This class contains methods for reading and parsing the Seg2Dgel.dbug name/bits file for use in print out the debug bits list if the -debug switch was invoked.
This code was derived and refactored from GELLAB-II sg2gii C language files.
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 java.lang.String[] |
dbugBitName
Debug bits name from the parsed Seg2Dgel.dbug file |
static int[] |
dbugBitValues
Debug bits values from the parsed Seg2Dgel.dbug file |
| Constructor Summary | |
|---|---|
Sg2dbug()
Sg2dbug() - Constructor |
|
| Method Summary | |
|---|---|
static void |
dbugPixDBcode(char[] pix,
int radixMode,
java.lang.String title)
dbugPixDBcode() - print window of current char[] picture if enabled by dbugBitsPixFlag and (xDbug,yDbug) is inside of [dpx1:dpx2,dpy1:dpy2]. |
static void |
dbugPixDBcode(char[] pix,
java.lang.String title)
dbugPixDBcode() - print window of current char[] picture if enabled by dbugBitsPixFlag and (xDbug,yDbug) is inside of [dpx1:dpx2,dpy1:dpy2]. |
static void |
dbugPixNxNcode(char[] pix,
int x,
int y,
int n,
java.lang.String title)
dbugPixNxNcode() - print window of size (n X n) of current char[] picture if enabled by dbugBitsPixFlag and (xDbug,yDbug) is inside of [dbx1:dbx2, dby1:dby2] to ssfFD. |
static void |
pixDump(char[] pix,
int radixMode,
java.lang.String title)
pixDump() - print window of current 16-bit char[] picture if pixDumpSwitch is enabled. |
static void |
pixDump(char[] pix,
java.lang.String title)
pixDump() - print window of current 16-bit char[] picture if pixDumpSwitch is enabled. |
static void |
pixNxNalways(char[] pix,
int x,
int y,
int n,
java.lang.String title)
pixNxNalways() - always print window of current char[] picture |
static java.lang.String |
pixNxNtoStr(char[] pix,
int x,
int y,
int n,
int radix,
java.lang.String title)
pixNxNtoStr() - convert current char[] picture of size nXn to string. |
static java.lang.String |
pixNxNtoStr(char[] pix,
int x,
int y,
int n,
java.lang.String title)
pixNxNtoStr() - convert current char[] picture of size nXn to string. |
private static java.lang.String |
windmp(char[] pix,
int x1,
int x2,
int y1,
int y2,
int width,
java.lang.String title,
int radixMode,
int linesize,
int maxColsToPrint,
int stepSize)
windmp() - Draw a window from picture 16-bit char[] 'pix' at: |
| Methods inherited from class Seg2Dgel.Sg2glb |
|---|
get2D, get2D, getPixLineBuf, getPixLineBuf, initGlb, isDBwindow, isDBwindow, put2Dbuf, resetGlb, set2D, set2D, setPixLineBuf, setPixLineBuf, showReportStatus |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static int[] dbugBitValues
public static java.lang.String[] dbugBitName
| Constructor Detail |
|---|
public Sg2dbug()
| Method Detail |
|---|
public static final void pixDump(char[] pix,
java.lang.String title)
pix - is the image to usetitle - is the header for the output window
public static final void pixDump(char[] pix,
int radixMode,
java.lang.String title)
pix - is the image to useradixMode - is SHOW_OCTAL, SHOW_DECIMAL, SHOW_HEX or SHOW_ODtitle - is the header for the output window
public static final void dbugPixDBcode(char[] pix,
java.lang.String title)
pix - is the image to usetitle - is the header for the output window
public static final void dbugPixDBcode(char[] pix,
int radixMode,
java.lang.String title)
pix - is the image to useradixMode - is Util.SHOW_OCTAL, SHOW_DECIMAL, SHOW_HEX or SHOW_ODtitle - is the header for the output window
public static final void dbugPixNxNcode(char[] pix,
int x,
int y,
int n,
java.lang.String title)
pix - is the image to usex - is the center X of the neighborhoody - is the center Y of the neighborhoodn - is the size of the (n X n) neighborhood (n is >=3 and is ODD!)title - is the header for the output window
public static final void pixNxNalways(char[] pix,
int x,
int y,
int n,
java.lang.String title)
pix - is the image to usex - is the center X of the neighborhoody - is the center Y of the neighborhoodn - is the size of the (n X n) neighborhood (n is >=3 and is ODD!)title - is the header for the output window
public static final java.lang.String pixNxNtoStr(char[] pix,
int x,
int y,
int n,
java.lang.String title)
pix - is the image to usex - is the center X of the neighborhoody - is the center Y of the neighborhoodn - is the size of the (n X n) neighborhood (n is >=3 and is ODD!)title - is the header for the output window
public static final java.lang.String pixNxNtoStr(char[] pix,
int x,
int y,
int n,
int radix,
java.lang.String title)
pix - is the image to usex - is the center X of the neighborhoody - is the center Y of the neighborhoodn - is the size of the (n X n) neighborhood (n is >=3 and is ODD!)title - is the header for the output window
private static final java.lang.String windmp(char[] pix,
int x1,
int x2,
int y1,
int y2,
int width,
java.lang.String title,
int radixMode,
int linesize,
int maxColsToPrint,
int stepSize)
x1,y1x2,y1 ... x1,y2x2,y2.
pix - is image datax1 - is left columnx2 - is right columny1 - is top rowy2 - is bottom rowwidth - is the size of rowtitle - is title for printoutradixMode - is 0=OCTAL 1=DECIMAL 2= HEX(byte), 3= HEX(16-bits).linesize - is Length of a line in imagemaxColsToPrint - 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
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||