[Insight-developers] GetNorm()

Marius Staring marius at isi.uu.nl
Tue Jan 22 06:51:55 EST 2008


Hi Bill,

I was indeed being lazy. But I also have a problem with the mantis bug 
tracker: I cannot login. I have tried creating new accounts, but it 
never mails me a password, even if I ask for it, using the "lost your 
password?" button. My colleague has the same problem. Any thoughts?

Marius

Bill Lorensen wrote:
> Marius,
>  
> In the future, please add a bug for issues like this. Instructions are at:
>  
> http://www.itk.org/Wiki/ITK_Procedure_for_Contributing_Bug_Fixes
>  
> We do check the bug tracker on a regular basis. E-mail to the list is 
> a good start to bring attention to an issue, but the bugs registered 
> with the bug tracker are not so easily forgotten.
>  
> Thanks,
>  
> Bill
>
> On Jan 21, 2008 12:18 PM, Marius Staring <marius at isi.uu.nl 
> <mailto:marius at isi.uu.nl>> wrote:
>
>     Hi,
>
>     could one of the developers reply to this mail?
>
>     Regards,
>
>     Marius
>
>     Marius Staring wrote:
>     > Hi developers,
>     >
>     > I think the itk::VariableLengthVector is missing a function
>     GetNorm(),
>     > similar to itk::Vector
>     >
>     > This can be fixed by adding
>     >
>     >  /** Returns vector's Euclidean Norm  */
>     >  RealValueType GetNorm() const;
>     >
>     > to the header file, and
>     >
>     > /**
>     > * Returns vector's Euclidean Norm
>     > */
>     > template < typename TValueType >
>     > typename VariableLengthVector< TValueType >::RealValueType
>     > VariableLengthVector<TValueType >
>     > ::GetNorm( void ) const
>     > {
>     >  return RealValueType( vcl_sqrt(double(this->GetSquaredNorm()) ));
>     > }
>     >
>     > to the txx. I tested this code under windows xp and visual c++ 2003.
>     >
>     > The function GetNorm() is for example used in the
>     > GradientToMagnitudeImageFilter, so currently this filter won't work
>     > with images of VariableLengthVector pixel type.
>     >
>     > Regards,
>     >
>     > Marius
>     >
>
>     --
>     Marius Staring
>     Image Sciences Institute
>     University Medical Centre Utrecht
>     Heidelberglaan 100, 3584 CX Utrecht, The Netherlands
>     phone: +31 (0)88 75 53186, fax: +31 (0)30 251 3399
>     marius at isi.uu.nl <mailto:marius at isi.uu.nl>,
>     http://www.isi.uu.nl/People/Marius
>
>     _______________________________________________
>     Insight-developers mailing list
>     Insight-developers at itk.org <mailto:Insight-developers at itk.org>
>     http://www.itk.org/mailman/listinfo/insight-developers
>
>

-- 
Marius Staring
Image Sciences Institute
University Medical Centre Utrecht
Heidelberglaan 100, 3584 CX Utrecht, The Netherlands
phone: +31 (0)88 75 53186, fax: +31 (0)30 251 3399
marius at isi.uu.nl, http://www.isi.uu.nl/People/Marius

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.itk.org/mailman/private/insight-developers/attachments/20080122/12455829/attachment.htm


More information about the Insight-developers mailing list