[Insight-developers] Hough transform examples

Julien Jomier jjomier at cs.unc.edu
Mon, 12 Jan 2004 10:11:20 -0500


Hi Jim,

That's a bug. The intention was to leave these values as options for the
user since the example should work with the default values but can do a
better job with optimal values.

Let me know if I should fix this, or if you already did it,

Thanks,

Julien

-----Original Message-----
From: insight-developers-admin at itk.org
[mailto:insight-developers-admin at itk.org] On Behalf Of Miller, James V
(Research)
Sent: Monday, January 12, 2004 10:01 AM
To: Insight-developers (E-mail)
Subject: [Insight-developers] Hough transform examples


If you run the Hough transform examples with not command line arguments,
they print out a message like:

$ HoughTransform2DLinesImageFilter.exe

Missing Parameters=20
Usage:
c:\projects\I2\Insight-net2003\bin\relwithdebinfo\HoughTransform2DLinesIm=
age
Filter.exe
 inputImage=20
 outputImage
 numberOfLines=20
 variance of the accumulator blurring (default =3D 5)=20
 radius of the disk to remove from the accumulator (default =3D 10)=20

>From the last two lines, I infer the last two parameters do not have to =
be
set.  But if I do not specify them then the programs crash.  The Hough
transform filter may have useful defaults, but the examples are blindly
passing in argv[4] and argv[5] regardless of whether the user provided =
them.

I am not sure what the intentions were.  Should the user of the examples =
not
have to specify these arguments or do these values have to be specified =
by
the user (in which case the printout about is merely a "suggestion" of
reasonable values)?



Jim Miller=20
_____________________________________
Visualization & Computer Vision
GE Research
Bldg. KW, Room C218B
P.O. Box 8, Schenectady NY 12301

millerjv at research.ge.com
james.miller at research.ge.com
(518) 387-4005, Dial Comm: 8*833-4005,=20
Cell: (518) 505-7065, Fax: (518) 387-6981=20