[Insight-developers] itkIndex signed -> unsigned

Joshua Cates cates@cayenne.cs.utah.edu
Thu, 8 Mar 2001 12:04:43 -0700 (MST)


Hi,

I agree that we should keep itkIndex signed, for the reasons Stephen has
mentioned.

Josh.

______________________________
 Josh Cates			
 School of Computer Science	
 University of Utah
 Email: cates@cs.utah.edu
 Phone: (801) 587-7697
 URL:   www.cs.utk.edu/~cates


On Thu, 8 Mar 2001, Stephen R. Aylward wrote:

> Hi,
> 
> I thought we had decided it would be best to keep itkIndex signed so
> that we could check for <0 for termination of certain methods and so
> that we can check offsets via subtraction and <0.
> 
> Stephen
> 
> Luis Ibanez wrote:
> > 
> > Hi,
> > 
> > Recently itkIndex changed from using signed to unsigned values.
> > That has the advantage to eliminate a lot of warnings when it is
> > compared against image size (in most iterator loops),
> > but has the disadvantage that negative positions can't be specified.
> > we found that for the Danielsson distance map filter a signed index
> > was quite useful.
> > 
> > Should we create another class to express vector distances
> > between indices ?
> > (the equivalent of what the vector class is for the point class).
> > 
> > Thanks
> > 
> > Luis
> > 
> > _______________________________________________
> > Insight-developers mailing list
> > Insight-developers@public.kitware.com
> > http://public.kitware.com/mailman/listinfo/insight-developers
> 
> -- 
> ===============================================
> Stephen R. Aylward
> Assistant Professor of Radiology
> Adjunct Assistant Professor of Computer Science
> http://www.cs.unc.edu/~aylward
> aylward@unc.edu
> (919) 966-9695
> 
> _______________________________________________
> Insight-developers mailing list
> Insight-developers@public.kitware.com
> http://public.kitware.com/mailman/listinfo/insight-developers
>