[Insight-users] Histogram creation update...

Jean-Philippe Guyon jguyon at ils-inc.com
Fri, 16 Jan 2004 17:58:38 -0500


This is a multi-part message in MIME format.

------=_NextPart_000_004B_01C3DC5A.5E420C20
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

Hello,

The actual exception message that is generated when I call Update() is
incorrect.
It is probably supposed to be something like:

itk::ERROR: Histogram(0581A178): One of the measurement components is above
the maximum

instead of:

itk::ERROR: Histogram(0581A178): One of the measurement components is below
the minimum

This is certainly the consequence of an unfortunate copy/paste :o)
Beside the error message, the code that I have sent earlier works properly
as long as values inserted are within the range defined by the call to
Initialize(size,min,max).
I was just misleaded because of the erronous message.

Julien is fixing the error in the itkHistogram.txx file...

Regards,
Jean-Philippe

------=_NextPart_000_004B_01C3DC5A.5E420C20
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=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1276" name=3DGENERATOR></HEAD>
<BODY>
<DIV><SPAN class=3D635293222-16012004><FONT face=3DArial color=3D#0000ff =

size=3D2>Hello,</FONT></SPAN></DIV>
<DIV><FONT face=3DArial><FONT size=3D2><FONT color=3D#0000ff><SPAN=20
class=3D635293222-16012004><FONT face=3DArial color=3D#0000ff=20
size=3D2></FONT></SPAN></FONT></FONT></FONT>&nbsp;</DIV>
<DIV><SPAN class=3D635293222-16012004><FONT face=3DArial color=3D#0000ff =
size=3D2>The=20
actual exception message that is generated when I call Update() is=20
incorrect.</FONT></SPAN></DIV>
<DIV><SPAN class=3D635293222-16012004><FONT face=3DArial color=3D#0000ff =
size=3D2>It is=20
probably supposed to be something like:</FONT></SPAN></DIV>
<DIV><FONT face=3DArial><FONT size=3D2><FONT color=3D#0000ff><SPAN=20
class=3D635293222-16012004><FONT color=3D#0000ff=20
size=3D2></FONT></SPAN></FONT></FONT></FONT>&nbsp;</DIV>
<DIV><SPAN class=3D635293222-16012004><FONT face=3DArial color=3D#0000ff =

size=3D2>itk::ERROR: Histogram(0581A178): One of the measurement =
components=20
is<SPAN class=3D635293222-16012004>&nbsp;above the=20
</SPAN>maximum</FONT></SPAN></DIV>
<DIV><FONT face=3DArial><FONT size=3D2><FONT color=3D#0000ff><SPAN=20
class=3D635293222-16012004><FONT color=3D#0000ff size=3D2><FONT=20
face=3DArial></FONT></FONT></FONT></FONT>&nbsp;</DIV></FONT></SPAN>
<DIV><SPAN class=3D635293222-16012004><FONT face=3DArial color=3D#0000ff =

size=3D2>instead of:</FONT></SPAN></DIV>
<DIV><FONT face=3DArial><FONT size=3D2><FONT color=3D#0000ff><SPAN=20
class=3D635293222-16012004><FONT face=3DArial color=3D#0000ff=20
size=3D2></FONT></SPAN></FONT></FONT></FONT>&nbsp;</DIV>
<DIV><SPAN class=3D635293222-16012004><SPAN =
class=3D635293222-16012004><FONT=20
face=3DArial><FONT size=3D2><FONT color=3D#0000ff>itk::ERROR: =
Histogram(0581A178): One=20
of the measurement components is<SPAN =
class=3D635293222-16012004>&nbsp;below the=20
minimum</SPAN></FONT></FONT></FONT></SPAN></SPAN></DIV>
<DIV><FONT face=3DArial><FONT size=3D2><FONT color=3D#0000ff><SPAN=20
class=3D635293222-16012004><SPAN class=3D635293222-16012004><FONT =
color=3D#0000ff=20
size=3D2><SPAN=20
class=3D635293222-16012004></SPAN></FONT></SPAN></SPAN></FONT></FONT></FO=
NT>&nbsp;</DIV>
<DIV><SPAN class=3D635293222-16012004><SPAN =
class=3D635293222-16012004><FONT=20
face=3DArial color=3D#0000ff size=3D2><SPAN =
class=3D635293222-16012004>This is certainly=20
the consequence of an unfortunate copy/paste=20
:o)</SPAN></FONT></SPAN></SPAN></DIV>
<DIV><SPAN class=3D635293222-16012004><SPAN =
class=3D635293222-16012004><FONT=20
face=3DArial color=3D#0000ff size=3D2><SPAN =
class=3D635293222-16012004>Beside the error=20
message, the code that I have sent earlier works=20
p</SPAN></FONT></SPAN></SPAN><SPAN class=3D635293222-16012004><SPAN=20
class=3D635293222-16012004><FONT face=3DArial color=3D#0000ff =
size=3D2><SPAN=20
class=3D635293222-16012004>roperly as long as values inserted =
are&nbsp;within the=20
range defined by the call to Initialize(size,min,max).&nbsp;<BR>I was =
just=20
misleaded because of the erronous =
message.</SPAN></FONT></SPAN></SPAN></DIV>
<DIV><FONT face=3DArial><FONT size=3D2><FONT color=3D#0000ff><SPAN=20
class=3D635293222-16012004><SPAN class=3D635293222-16012004><FONT =
color=3D#0000ff=20
size=3D2><SPAN=20
class=3D635293222-16012004></SPAN></FONT></SPAN></SPAN></FONT></FONT></FO=
NT>&nbsp;</DIV>
<DIV><SPAN class=3D635293222-16012004><SPAN =
class=3D635293222-16012004><FONT=20
face=3DArial color=3D#0000ff size=3D2><SPAN=20
class=3D635293222-16012004>Julien&nbsp;is&nbsp;fixing the error in the=20
itkHistogram.txx file...&nbsp;</SPAN></FONT></SPAN></SPAN></DIV>
<DIV><FONT face=3DArial><FONT size=3D2><FONT color=3D#0000ff><SPAN=20
class=3D635293222-16012004><SPAN class=3D635293222-16012004><FONT =
color=3D#0000ff=20
size=3D2><SPAN=20
class=3D635293222-16012004></SPAN></FONT></SPAN></SPAN></FONT></FONT></FO=
NT>&nbsp;</DIV>
<DIV><SPAN class=3D635293222-16012004><SPAN =
class=3D635293222-16012004><FONT=20
face=3DArial color=3D#0000ff size=3D2><SPAN=20
class=3D635293222-16012004>Regards,</SPAN></FONT></SPAN></SPAN></DIV>
<DIV class=3DSection1>
<P class=3DMsoNormal><SPAN=20
style=3D"FONT-SIZE: 8pt; COLOR: blue; FONT-FAMILY: Arial; =
mso-bidi-font-size: 12.0pt"><SPAN=20
class=3D635293222-16012004><FONT=20
size=3D2>Jean-Philippe</FONT></SPAN></SPAN></P></DIV></BODY></HTML>

------=_NextPart_000_004B_01C3DC5A.5E420C20--