Extended IDL Help pro_neu test (Rodenacker)

This page was created by the IDL library routine mk_html_help. For more information on this routine, refer to the IDL Online Help Navigator or type:

     ? mk_html_help

at the IDL command line prompt.

Last modified: 13.07.2004


List of Routines


Routine Descriptions

FEAT_EVAL_D3

[Next Routine] [List of Routines]
	NAME:
		FEAT_EVAL_D3

 function feat_eval_d3,a,aind
 res=fltarr(13)
 res(0)=n_elements(aind)	;	0	volume
 if res(0) eq 0.0 then return,res
 res(1)=total(a(aind))/res(0)	;	1	mean
 res(2)=max(a(aind),min=t)	;	2	max
 res(3)=t			;	3	min
 sa=size(a)
 kz=aind/(sa(1)*sa(2))
 ky=(aind-(kz*sa(1)*sa(2)))/sa(1)
 kx=(aind-(kz*sa(1)*sa(2)))-(ky*sa(1))
 res(4:6)=[total(kx)/res(0), total(ky)/res(0), total(kz)/res(0)]
					4	swx
					5	swy
					6	swz
 res(7)=max(kx,min=t)		;	7	max_kx
 res(8)=t			;	8	min_kx
 res(9)=max(ky,min=t)		;	9	max_ky
 res(10)=t			;	10	min_ky
 res(11)=max(kz,min=t)		;	11	max_kz
 res(12)=t			;	12	min_kz
 return,res
 end

(See /IDL/pro_src/RODENA/pro_neu/test/feat_eval_d3.pro)


GRAD3D

[Previous Routine] [Next Routine] [List of Routines]
 NAME:
		GRAD3D


 PURPOSE:
	Calculate 3D gradient


 CATEGORY:
	image processing


 CALLING SEQUENCE:
	grad = grad3d(image)

 
 INPUTS:
	image:	3D image array


 OPTIONAL INPUTS:


	
 KEYWORD PARAMETERS:
	TWO:	take the next neighbors, (def. take left and right neihbor)


 OUTPUTS:
	grad:	gradient image (byte)


 OPTIONAL OUTPUTS:



 COMMON BLOCKS:



 SIDE EFFECTS:



 RESTRICTIONS:
	With keyword TWO the gradient image is shifted by a half pixel


 PROCEDURE:



 EXAMPLE:
	imag = bytarr(256,256,64)
	imag[64:194,64:194,16:48] = 1b
	grad = grad3d(imag)


 MODIFICATION HISTORY:

       Tue Jul 22 09:03:55 1997, Karsten Rodenacker
       <iliad@janus.gsf.de>

		

(See /IDL/pro_src/RODENA/pro_neu/test/grad3d.pro)


WD3D

[Previous Routine] [Next Routine] [List of Routines]
 NAME:
		WD3D



 PURPOSE:
		Display, analysis and count of  3D Daten

 CATEGORY:
	3D image analysis


 CALLING SEQUENCE:
	WD3D	only after call of d3l_n

 OPTIONAL INPUTS:
	Labelled image

	
 KEYWORD PARAMETERS:
			General

	NOGALLERY:	No gallery is displayed (def. 0)
	  XVISIBLE
	  YVISIBLE:	Size of gallery (def. 512,512)
	BOX_ALL		Start default box size all (32,32,depth)

			For automatic signal count

	NOSIGNAL_COUNT:	No automatic signal count (def. 0)
	MIN_SIGNAL_VOLUME: Min. signal volume (voxel) (def. 10)
	THRESH_TOPHAT:	Threshold TOPHAT (def. 40)
	  SIZE_TOPHAT:	Size of TOPHAT (def. 3)
	  SIZE_OPENING:	Size of opening after tophat (def. 1)

			For labelling functions

	LABEL:		To reserve space for label volumes
	NAM_LABEL:	Name for label volume file ('')
	  SIZE_NUCLEUS_OPEN: Size of opening nucleus (def. 2)
	  MIN_NUCLEUS_VOLUME	Minimum nucleus volume (def. 3000)
	LONG:		integer signal label volume (def. byte)

			Misc

	GROUP:		Widget_id of main widget
	REBUILD:	Forces rebuild of widgets (for size changes)
	COLOR:		n/a
	VERBOSE:	Full messages

			Keywords used from d3l_n, 
			not used from wd3d (see d3l_n) !

	OVER_COLOR:
	PATH:
	NAME:
	NOTOPHAT:
	NUMBER_FIELD:
	EXTENSION:
	NUMBER_SECTIONS:
	RESULT:



 OUTPUTS:
	Count informations
	Labelled image

 OPTIONAL OUTPUTS:
	Count informations
	Labelled image

 COMMON BLOCKS:
	WD3D_DAT	contains data
	WD3D_INT	internal data

 SIDE EFFECTS:



 RESTRICTIONS:
		Needs preceeding call of procedure D3L_N,
		to load data and establish common's

 PROCEDURE:
	1 Load data by calling d3l_n or the simple interface main
	2 Call wd3d

 EXAMPLE:
	main,/LAB,PATH='~/series'


 MODIFICATION HISTORY:

       Fri Jul 25 16:52:54 1997, Karsten Rodenacker

       Tue Jul 22 16:28:25 1997, Karsten Rodenacker

       Tue Jul 29 08:15:26 1997, Karsten Rodenacker
       <iliad@janus.gsf.de>

(See /IDL/pro_src/RODENA/pro_neu/test/wd3d.pro)


WIDGET_3D_ELL_CURSOR

[Previous Routine] [Next Routine] [List of Routines]
 NAME:
	widget_3d_ELL_CURSOR

 PURPOSE:
	Emulate the operation of a variable-sized ellipse cursor (also known as
	a "marquee" selector).

 CATEGORY:
	Interactive graphics.

 CALLING SEQUENCE:
	widget_3d_ELL_CURSOR, id1,id2,id3, x0,y0,z0, ra,rb,rc,ang,ang1,
	                      [, INIT = init] [, FIXED_SIZE = fixed_size]

 INPUTS:
	idxy:   Widget id xy
	idxz:   Widget id xz
	idzy:   Widget id zy

 OPTIONAL INPUT PARAMETERS:
	x0, y0, z0, ra, rb,rc, ang, ang1 give the initial location (x0,y0,z0) and 
	radii and orientation of the ellipse if the keyword INIT is set.  
	Otherwise, the 
	ellipse is initially drawn in the center of the screen.

 KEYWORD PARAMETERS:
	INIT:	If this keyword is set, x0,y0,z0, ra,rb,ang,ang1
		contain the initial parameters for the ellipse.

	FIXED_SIZE:	If this keyword is set, ra, rb, ang, ang1
		contain the initial parameters of the ellipse.
		They may not be changed by the user.

	MESSAGE:	If this keyword is set, print a short message
		describing operation of the cursor

 OUTPUTS:
	x0:  X value of center.
	y0:  Y value of center.
	z0:  Z value of center.
	ra:  radius of ellipse in pixels.
	rb:  radius of ellipse in pixels.
	rc:  radius of ellipse in pixels.
	ang: angle of orientation [-180, 180]
	ang1:angle of orientation [-180, 180]

 COMMON BLOCKS:
	None.

 SIDE EFFECTS:
	A ellipse is drawn in the currently active windows.  It is erased
	on exit.

 RESTRICTIONS:
	Works only with window system drivers.

 PROCEDURE:
	The graphics function is set to 6 for eXclusive OR.  This
	allows the ellipse to be drawn and erased without disturbing the
	contents of the window.

	Operation is as follows:
	Left mouse button:   Move the ellipse by dragging.
	Middle mouse button: Resize the ellipse by dragging.
	Right mouse button:  Exit this procedure, returning the 
			     current ellipse parameters.

 MODIFICATION HISTORY:
	DMS, April, 1990.
	DMS, April, 1992.  Made dragging more intutitive.
	June, 1993 - Bill Thompson
			prevented the box from having a negative size.
	Rodenacker, Jan 1997 Move from BOX_... to ELL_...
                   Jun 1997 Move from ELL_... to WIDGET_ELL_...
                   Aug 1997 Move from WIDGET_ELL_... to WIDGET_3D_ELL_... 

(See /IDL/pro_src/RODENA/pro_neu/test/widget_3d_ell_cursor.pro)


WIDGET_BOX_CURSOR

[Previous Routine] [Next Routine] [List of Routines]
 NAME:
	widget_BOX_CURSOR

 PURPOSE:
	Emulate the operation of a variable-sized box cursor (also known as
	a "marquee" selector).

 CATEGORY:
	Interactive graphics.

 CALLING SEQUENCE:
	widget_BOX_CURSOR, id, x0, y0, nx, ny [, INIT = init] [, FIXED_SIZE = fixed_size]

 INPUTS:
	id:   Widget id

 OPTIONAL INPUT PARAMETERS:
	x0, y0, nx, and ny give the initial location (x0, y0) and 
	size (nx, ny) of the box if the keyword INIT is set.  Otherwise, the 
	box is initially drawn in the center of the screen.

 KEYWORD PARAMETERS:
	INIT:  If this keyword is set, x0, y0, nx, and ny contain the initial
	parameters for the box.

	FIXED_SIZE:  If this keyword is set, nx and ny contain the initial
	size of the box.  This size may not be changed by the user.

	MESSAGE:  If this keyword is set, print a short message describing
	operation of the cursor.

 OUTPUTS:
	x0:  X value of lower left corner of box.
	y0:  Y value of lower left corner of box.
	nx:  width of box in pixels.
	ny:  height of box in pixels. 

	The box is also constrained to lie entirely within the window.

 COMMON BLOCKS:
	None.

 SIDE EFFECTS:
	A box is drawn in the currently active window.  It is erased
	on exit.

 RESTRICTIONS:
	Works only with window system drivers.

 PROCEDURE:
	The graphics function is set to 6 for eXclusive OR.  This
	allows the box to be drawn and erased without disturbing the
	contents of the window.

	Operation is as follows:
	Left mouse button:   Move the box by dragging.
	Middle mouse button: Resize the box by dragging.  The corner
		nearest the initial mouse position is moved.
	Right mouse button:  Exit this procedure, returning the 
			     current box parameters.

 MODIFICATION HISTORY:
	DMS, April, 1990.
	DMS, April, 1992.  Made dragging more intutitive.
	June, 1993 - Bill Thompson
			prevented the box from having a negative size.
       Rodenacker Jun 1997 Move from BOX_... to WIDGET_BOX_...

(See /IDL/pro_src/RODENA/pro_neu/test/widget_box_cursor.pro)


WIDGET_CIR_CURSOR

[Previous Routine] [Next Routine] [List of Routines]
 NAME:
	Widget_CIR_CURSOR

 PURPOSE:
	Emulate the operation of a variable-sized circle cursor (also known as
	a "marquee" selector).

 CATEGORY:
	Interactive graphics.

 CALLING SEQUENCE:
	widget_CIR_CURSOR, id,  x0, y0, rad [, INIT = init] [, FIXED_SIZE = fixed_size]

 INPUTS:
       id:   Widget id

 OPTIONAL INPUT PARAMETERS:
	x0, y0, rad give the initial location (x0, y0) and 
	radius of the circle if the keyword INIT is set.  Otherwise, the 
	circle is initially drawn in the center of the screen.

 KEYWORD PARAMETERS:
	INIT:  If this keyword is set, x0, y0, rad contain the initial
	parameters for the circle.

	FIXED_SIZE:  If this keyword is set, rad contain the initial
	size of the circle.  This size may not be changed by the user.

	MESSAGE:  If this keyword is set, print a short message describing
	operation of the cursor

 OUTPUTS:
	x0:  X value of lower left corner of box.
	y0:  Y value of lower left corner of box.
	rad: radius of circle in pixels.

 COMMON BLOCKS:
	None.

 SIDE EFFECTS:
	A circle is drawn in the currently active window.  It is erased
	on exit.

 RESTRICTIONS:
	Works only with window system drivers.

 PROCEDURE:
	The graphics function is set to 6 for eXclusive OR.  This
	allows the circle to be drawn and erased without disturbing the
	contents of the window.

	Operation is as follows:
	Left mouse button:   Move the circle by dragging.
	Middle mouse button: Resize the circle by dragging.
	Right mouse button:  Exit this procedure, returning the 
			     current circle parameters.

 MODIFICATION HISTORY:
	DMS, April, 1990.
	DMS, April, 1992.  Made dragging more intutitive.
	June, 1993 - Bill Thompson
			prevented the box from having a negative size.
	Rodenacker, Jan 1997 Move from BOX_... to CIR_...
                   Jun 1997 Move from CIR_... to WIDGET_CIR_...

(See /IDL/pro_src/RODENA/pro_neu/test/widget_cir_cursor.pro)


WIDGET_ELL_CURSOR

[Previous Routine] [Next Routine] [List of Routines]
 NAME:
	widget_ELL_CURSOR

 PURPOSE:
	Emulate the operation of a variable-sized ellipse cursor (also known as
	a "marquee" selector).

 CATEGORY:
	Interactive graphics.

 CALLING SEQUENCE:
	widget_ELL_CURSOR, id, x0, y0, ra, rb, ang [, INIT = init] [, FIXED_SIZE = fixed_size]

 INPUTS:
	id:   Widget id

 OPTIONAL INPUT PARAMETERS:
	x0, y0, ra, rb, ang give the initial location (x0, y0) and 
	radii and orientation of the ellipse if the keyword INIT is set.  
	Otherwise, the 
	ellipse is initially drawn in the center of the screen.

 KEYWORD PARAMETERS:
	INIT:  If this keyword is set, x0, y0, ra, rb, ang contain the initial
	parameters for the ellipse.

	FIXED_SIZE:  If this keyword is set, ra, rb, ang contain the initial
	parameters of the ellipse.  They may not be changed by the user.

	MESSAGE:  If this keyword is set, print a short message describing
	operation of the cursor

 OUTPUTS:
	x0:  X value of lower left corner of box.
	y0:  Y value of lower left corner of box.
	ra:  radius of ellipse in pixels.
	rb:  radius of ellipse in pixels.
	ang: angle of orientation [-180, 180]

 COMMON BLOCKS:
	None.

 SIDE EFFECTS:
	A ellipse is drawn in the currently active window.  It is erased
	on exit.

 RESTRICTIONS:
	Works only with window system drivers.

 PROCEDURE:
	The graphics function is set to 6 for eXclusive OR.  This
	allows the ellipse to be drawn and erased without disturbing the
	contents of the window.

	Operation is as follows:
	Left mouse button:   Move the ellipse by dragging.
	Middle mouse button: Resize the ellipse by dragging.
	Right mouse button:  Exit this procedure, returning the 
			     current ellipse parameters.

 MODIFICATION HISTORY:
	DMS, April, 1990.
	DMS, April, 1992.  Made dragging more intutitive.
	June, 1993 - Bill Thompson
			prevented the box from having a negative size.
	Rodenacker, Jan 1997 Move from BOX_... to ELL_...
                   Jun 1997 Move from ELL_... to WIDGET_ELL_...

(See /IDL/pro_src/RODENA/pro_neu/test/widget_ell_cursor.pro)


WIDGET_LIN_CURSOR

[Previous Routine] [List of Routines]
 NAME:
	widget_LIN_CURSOR

 PURPOSE:
	Emulate the operation of a variable-sized line cursor (also known as
	a "marquee" selector).

 CATEGORY:
	Interactive graphics.

 CALLING SEQUENCE:
	widget_LIN_CURSOR, id, x0, y0, ra, ang [, INIT = init] [, FIXED_SIZE = fixed_size]

 INPUTS:
	Widget id.

 OPTIONAL INPUT PARAMETERS:
	x0, y0, ra, ang give the initial location (x0, y0) and 
	length (ra) and orientation of the line if the keyword INIT is set.  
	Otherwise, the 
	line is initially drawn in the center of the screen.

 KEYWORD PARAMETERS:
	INIT:  If this keyword is set, x0, y0, ra, ang contain the initial
	parameters for the line.

	FIXED_SIZE:  If this keyword is set, ra, ang contain the initial
	parameters of the line.  They may not be changed by the user.

	MESSAGE:  If this keyword is set, print a short message describing
	operation of the cursor

 OUTPUTS:
	x0:  X value of lower left corner of box.
	y0:  Y value of lower left corner of box.
	ra:  length of line in pixels.
	ang: angle of orientation [-180, 180]

 COMMON BLOCKS:
	None.

 SIDE EFFECTS:
	A line is drawn in the currently active window.  It is erased
	on exit.

 RESTRICTIONS:
	Works only with window system drivers.

 PROCEDURE:
	The graphics function is set to 6 for eXclusive OR.  This
	allows the line to be drawn and erased without disturbing the
	contents of the window.

	Operation is as follows:
	Left mouse button:   Move the line by dragging.
	Middle mouse button: Resize the line by dragging.
	Right mouse button:  Exit this procedure, returning the 
			     current line parameters.

 MODIFICATION HISTORY:
	DMS, April, 1990.
	DMS, April, 1992.  Made dragging more intutitive.
	June, 1993 - Bill Thompson
			prevented the box from having a negative size.
	Rodenacker, Jan 1997 Move from ELL_... to LIN_...
                   Jun 1997 Move from LIN_... to WIDGET_LIN_...

(See /IDL/pro_src/RODENA/pro_neu/test/widget_lin_cursor.pro)