[Insight-developers] Hough transform examples

Miller, James V (Research) millerjv at crd.ge.com
Tue, 13 Jan 2004 10:09:01 -0500


This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C3D9E7.2BA7934C
Content-Type: text/plain;
	charset="iso-8859-1"

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

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

>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 
_____________________________________
Visualization & Computer Vision
GE Research
Bldg. KW, Room C218B
P.O. Box 8, Schenectady NY 12301

millerjv at research.ge.com <mailto:millerjv at research.ge.com> 

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

 

------_=_NextPart_001_01C3D9E7.2BA7934C
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">


<META content=3D"MSHTML 6.00.2800.1276" name=3DGENERATOR></HEAD>
<BODY>
<DIV><SPAN class=3D114425414-12012004><FONT size=3D2>If you run the =
Hough transform=20
examples with not command line arguments, they print out&nbsp;a message =

like:</FONT></SPAN></DIV>
<DIV><SPAN class=3D114425414-12012004><FONT =
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D114425414-12012004><FONT size=3D2>$=20
HoughTransform2DLinesImageFilter.exe&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;=20
</FONT></SPAN></DIV>
<DIV><SPAN class=3D114425414-12012004><FONT size=3D2>Missing Parameters =
<BR>Usage:=20
c:\projects\I2\Insight-net2003\bin\relwithdebinfo\HoughTransform2DLinesI=
mageFilter.exe<BR>&nbsp;inputImage=20
<BR>&nbsp;outputImage<BR>&nbsp;numberOfLines <BR>&nbsp;variance of the=20
accumulator blurring (default =3D 5) <BR>&nbsp;radius of the disk to =
remove from=20
the accumulator (default =3D 10) <BR></DIV></FONT></SPAN>
<DIV><SPAN class=3D114425414-12012004><FONT size=3D2>From the last two =
lines, I=20
infer the last two parameters do not have to be set.&nbsp; But if I do =
not=20
specify them </FONT></SPAN><SPAN class=3D114425414-12012004><FONT =
size=3D2>then the=20
programs crash.&nbsp; The Hough transform filter may have useful =
defaults, but=20
the examples are blindly passing in argv[4] and argv[5] regardless of =
whether=20
the user provided them.</FONT></SPAN></DIV>
<DIV><SPAN class=3D114425414-12012004><FONT =
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D114425414-12012004><FONT size=3D2>I am not sure what =
the=20
intentions were.&nbsp; Should the user of the examples not have to =
specify these=20
arguments or do these values have to be specified by the&nbsp;user (in =
which=20
case the printout about is merely a "suggestion" of reasonable=20
values)?</FONT></SPAN></DIV>
<DIV><SPAN class=3D114425414-12012004><FONT =
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D114425414-12012004></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D114425414-12012004><FONT =
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV>
<P style=3D"MARGIN: 0in 0in 0pt"><B><SPAN=20
style=3D"COLOR: navy; FONT-FAMILY: 'Comic Sans MS'">Jim =
Miller</SPAN></B>=20
<BR><B><I><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: red; FONT-FAMILY: =
Arial">_____________________________________</SPAN></I></B><BR><EM><SPAN=
=20
style=3D"FONT-SIZE: 7.5pt; COLOR: black; FONT-FAMILY: =
Arial">Visualization &amp;=20
Computer Vision</SPAN></EM><I><SPAN=20
style=3D"FONT-SIZE: 7.5pt; COLOR: black; FONT-FAMILY: Arial"><BR><EM>GE =

Research</EM><BR><EM>Bldg. KW, Room C218B</EM><BR><EM>P.O. Box 8, =
Schenectady NY=20
12301</EM><BR><BR></SPAN></I><EM><U><SPAN=20
style=3D"FONT-SIZE: 7.5pt; COLOR: blue"><A=20
href=3D"mailto:millerjv at research.ge.com">millerjv at research.ge.com</A></S=
PAN></U></EM></P>
<P style=3D"MARGIN: 0in 0in 0pt"><EM><U><SPAN=20
style=3D"FONT-SIZE: 7.5pt; COLOR: =
blue">james.miller at research.ge.com</SPAN></U></EM><BR><I><SPAN=20
style=3D"FONT-SIZE: 7.5pt; COLOR: black; FONT-FAMILY: Arial">(518) =
387-4005, Dial=20
Comm: 8*833-4005, </SPAN></I><BR><I><SPAN=20
style=3D"FONT-SIZE: 7.5pt; COLOR: black; FONT-FAMILY: Arial">Cell: =
(518) 505-7065,=20
Fax: (518) 387-6981</SPAN></I> </P></DIV>
<DIV>&nbsp;</DIV></BODY></HTML>

------_=_NextPart_001_01C3D9E7.2BA7934C--