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

Luis Ibanez luis.ibanez at kitware.com
Tue Feb 9 13:18:54 EST 2010


Hi Neal,

These classes are in the Insight/Code/Review directory.

In order to use them you should reconfigure ITK with CMake,
and turn ON the flag:

                    ITK_USE_REVIEW.


       Regards,


              Luis


-------------------------------------------------------------------
On Mon, Feb 8, 2010 at 5:02 PM, Neal R. Harvey <harve at lanl.gov> wrote:
> 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
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
>


More information about the Insight-users mailing list