[Insight-developers] broken code

Joshua Cates cates at cayenne.cs.utah.edu
Mon Nov 13 18:48:33 EST 2000


Hi Jim,

I did an update and it did get rid of the first problem.  Then I replaced
the ImageRegionSimpleIterators that I was using with your souped-up
(bravo!) ImageRegionIterator which compiles without any problems.

Thanks,

Josh.

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

On Mon, 13 Nov 2000, Miller, James V (CRD) wrote:

> Josh,
> 
> I checked in code this morning and this afternoon that introduced and fixed some of these problems.
> If you do an update some of these problems should go away.  In the meantime, I will look into these.
> 
> Jim
> 
> -----Original Message-----
> From: Joshua Cates [mailto:cates at cayenne.cs.utah.edu]
> Sent: Monday, November 13, 2000 5:03 PM
> To: Insight-Developers
> Subject: [Insight-developers] broken code
> 
> 
> Hello,
> 
> Recent changes in base classes (checked in since Thursday, I think) have
> broken some of my code exercised by:
> Insight/Testing/Code/Common/itkFilterImageAnisotropicDiffusionTest.cxx
> Insight/Testing/Code/Common/itkFilterImageSingleOperator.cxx
> and Insight/Testing/Code/Common/itkNeighborhoodOperatorTest.cxx.
> 
> Something appears to be wrong with the ImageIterators. In compiling 
> (linux, gcc) itkFilterImageAnisotropicDiffusionTest, for example, I get
> these errors and warnings:
> 
> /Insight/Code/Common/itkImageIteratorWithIndex.txx:
> In method
> `itk::ImageIteratorWithIndex<itk::Image<itk::Scalar<float>,4,itk::ValarrayImageContainer<long
> unsigned int,itk::Scalar<float> > > >::ImageIteratorWithIndex(const
> itk::Image<itk::Scalar<float>,4,itk::ValarrayImageContainer<long unsigned
> int,itk::Scalar<float> > > *, const itk::ImageRegion<4> &)':
> /Insight/Code/Common/itkImageRegionSimpleIterator.h:115:
> instantiated from
> `itk::ImageRegionSimpleIterator<itk::Image<itk::Scalar<float>,4,itk::ValarrayImageContainer<long
> unsigned int,itk::Scalar<float> > > >::ImageRegionSimpleIterator(const
> itk::Image<itk::Scalar<float>,4,itk::ValarrayImageContainer<long unsigned
> int,itk::Scalar<float> > > *, const itk::ImageRegion<4> &)'
> /Insight/Code/Common/itkFilterImageAnisotropicDiffusion.txx:58: 
> instantiated from
> `itk::FilterImageAnisotropicDiffusion<itk::Scalar<float>,4>::CopyInputToOutput()'
> /Insight/Code/Common/itkFilterImageAnisotropicDiffusion.txx:152:
> instantiated from
> `itk::FilterImageAnisotropicDiffusion<itk::Scalar<float>,4>::GenerateData()'
> /Insight/Code/Common/itkProcessObject.h:329:
> instantiated from here
> /Insight/Code/Common/itkImageIteratorWithIndex.txx:72:
> passing `const
> itk::Image<itk::Scalar<float>,4,itk::ValarrayImageContainer<long unsigned
> int,itk::Scalar<float> > > *' as argument 1 of
> `itk::SmartPointer<itk::Image<itk::Scalar<float>,4,itk::ValarrayImageContainer<long
> unsigned int,itk::Scalar<float> > > >::operator 
> =(itk::Image<itk::Scalar<float>,4,itk::ValarrayImageContainer<long 
> unsigned int,itk::Scalar<float> > > *)' discards qualifiers
> 
> /Insight/Code/Common/itkImageIteratorWithIndex.h: In
> method `class itk::Scalar<float> &
> itk::ImageIteratorWithIndex<itk::Image<itk::Scalar<float>,4,itk::ValarrayImageContainer<long
> unsigned int,itk::Scalar<float> > > >::operator *() const':
> /Insight/Code/Common/itkFilterImageAnisotropicDiffusion.txx:64:
> instantiated from
> `itk::FilterImageAnisotropicDiffusion<itk::Scalar<float>,4>::CopyInputToOutput()'
> /Insight/Code/Common/itkFilterImageAnisotropicDiffusion.txx:152:
> instantiated from
> `itk::FilterImageAnisotropicDiffusion<itk::Scalar<float>,4>::GenerateData()'
> /Insight/Code/Common/itkProcessObject.h:329:
> instantiated from here
> /Insight/Code/Common/itkImageIteratorWithIndex.h:243:
> initialization of non-const reference type `class itk::Scalar<float> &'
> /Insight/Code/Common/itkImageIteratorWithIndex.h:243:
> from rvalue of type `itk::Scalar<float>'
> 
> /Insight/Code/Common/itkImageIteratorWithIndex.h:243:
> warning: returning reference to temporary
> 
> Will someone please fix these as soon as possible? If my code requires
> changes to support recent base class modifications please let me know.
> 
> Thanks,
> 
> Josh.
> 
> 
> 
> +--+--+--+--+--+--+--+--+--+--+--+--
>  Josh Cates			
>  Department of Computer Science	
>  University of Utah
>  Email: cates at cs.utah.edu
>  Phone: (801) 587-7697
>  URL:   www.cs.utk.edu/~cates
> --+--+--+--+--+--+--+--+--+--+--+---
> 
> 
> _______________________________________________
> Insight-developers mailing list
> Insight-developers at public.kitware.com
> http://public.kitware.com/mailman/listinfo/insight-developers
> 





More information about the Insight-developers mailing list