[Insight-users] Very basic help required: Compiling and using binaryAttributeMorphology

Neal R. Harvey harve at lanl.gov
Mon Feb 8 17:02:16 EST 2010


Neal R. Harvey wrote:
> I would like to be able to calculate some attributes of objects in 
> images that I have found using segmentation
> algorithms.
>
> I have found the binaryAttributeMorphology code and the associated 
> paper and was hoping that
> these would prove useful. However, I have to say that I have had no 
> luck so far. I can't even get the code to
> compile. 
e.g. Here is the result I get from trying to compile

In file included from 
/data0/harve/itk/InsightToolkit-3.10.1/Code/binaryAttributeMorphology/label_overlay.cxx:6:
/data0/harve/itk/InsightToolkit-3.10.1/Code/binaryAttributeMorphology/itkLabelMapOverlayImageFilter.h:22:36: 
error: itkLabelOverlayFunctor.h: No such file or directory
/data0/harve/itk/InsightToolkit-3.10.1/Code/binaryAttributeMorphology/itkLabelMapOverlayImageFilter.h:77: 
error: ‘LabelOverlayFunctor’ in namespace ‘itk::Functor’ does not name a 
type
/data0/harve/itk/InsightToolkit-3.10.1/Code/binaryAttributeMorphology/itkLabelMapOverlayImageFilter.h:77: 
error: expected unqualified-id before ‘<’ token
/data0/harve/itk/InsightToolkit-3.10.1/Code/binaryAttributeMorphology/itkLabelMapOverlayImageFilter.txx: 
In member function ‘virtual void 
itk::LabelMapOverlayImageFilter<TInputImage, TFeatureImage, 
TOutputImage>::ThreadedGenerateData(const typename 
TOutputImage::RegionType&, int)’:
/data0/harve/itk/InsightToolkit-3.10.1/Code/binaryAttributeMorphology/itkLabelMapOverlayImageFilter.txx:83: 
error: ‘FunctorType’ was not declared in this scope
/data0/harve/itk/InsightToolkit-3.10.1/Code/binaryAttributeMorphology/itkLabelMapOverlayImageFilter.txx:83: 
error: expected `;' before ‘function’
/data0/harve/itk/InsightToolkit-3.10.1/Code/binaryAttributeMorphology/itkLabelMapOverlayImageFilter.txx:84: 
error: ‘function’ was not declared in this scope
/data0/harve/itk/InsightToolkit-3.10.1/Code/binaryAttributeMorphology/itkLabelMapOverlayImageFilter.txx: 
In member function ‘virtual void 
itk::LabelMapOverlayImageFilter<TInputImage, TFeatureImage, 
TOutputImage>::ThreadedGenerateData(typename 
TInputImage::LabelObjectType*)’:
/data0/harve/itk/InsightToolkit-3.10.1/Code/binaryAttributeMorphology/itkLabelMapOverlayImageFilter.txx:114: 
error: ‘FunctorType’ was not declared in this scope
/data0/harve/itk/InsightToolkit-3.10.1/Code/binaryAttributeMorphology/itkLabelMapOverlayImageFilter.txx:114: 
error: expected `;' before ‘function’
/data0/harve/itk/InsightToolkit-3.10.1/Code/binaryAttributeMorphology/itkLabelMapOverlayImageFilter.txx:115: 
error: ‘function’ was not declared in this scope
/data0/harve/itk/InsightToolkit-3.10.1/Code/binaryAttributeMorphology/itkLabelMapOverlayImageFilter.txx: 
In member function ‘void itk::LabelMapOverlayImageFilter<TInputImage, 
TFeatureImage, TOutputImage>::ThreadedGenerateData(typename 
TInputImage::LabelObjectType*) [with TInputImage = 
itk::LabelMap<itk::LabelObject<unsigned char, 2u> >, TFeatureImage = 
itk::Image<unsigned char, 2u>, TOutputImage = 
itk::Image<itk::RGBPixel<unsigned char>, 2u>]’:
/data0/harve/itk/InsightToolkit-3.10.1/Code/binaryAttributeMorphology/label_overlay.cxx:50: 
instantiated from here
/data0/harve/itk/InsightToolkit-3.10.1/Code/binaryAttributeMorphology/itkLabelMapOverlayImageFilter.txx:111: 
warning: unused variable ‘input’
make[2]: *** 
[Code/binaryAttributeMorphology/CMakeFiles/ITKbinaryAttributeMorphology.dir/label_overlay.o] 
Error 1
make[1]: *** 
[Code/binaryAttributeMorphology/CMakeFiles/ITKbinaryAttributeMorphology.dir/all] 
Error 2
make: *** [all] Error 2


More information about the Insight-users mailing list