[Insight-users] Problemas con CellSegmentation...
Luis Ibanez
luis.ibanez at kitware.com
Fri Jul 13 09:07:13 EDT 2007
Hi Cesar,
Welcome to ITK !
Please note that you must build InisghtApplications by configuring the
top directory, not the subdirectories.
You should run CMake and provide the top directory of InsightApplications
as the "SOURCE" directory. Then you must provide in the ITK_DIR variable
the binary directory where you built ITK.
Once you have configured the entire InsightApplications tree, then
you can build any of the individual directories by just "cd" into it
and calling "make".
BTW: Please note that the "CellularSegmentation" application is not
an application for segmenting cells out of microscopy images. Instead
it is a segmentation method that "emulates" biological cells in order
to implement a variation of a Region Growing algorithm.
Regards,
Luis
--------------------------------------------------------------------------
On 7/13/07, Cesar Araujo <cesar.araujo at oulu.fi> wrote:
>
>
>
> Hi,
>
> I'm a newbie ITK user. I installed the ITK toolkit following the
> documentation. I have downloaded and installed also the InsightApplications.
> I could compile and run the HelloWorld example suggested in the
> documentation. However, when I try to compile the Applications for instance,
> CellularSegmentation it fails. I can run ccmake successfully after add and
> setup the FLTK_FLUID_EXECUTABLE to the proper value. However, when I run the
> "make" command it gives a lot of errors. Still I couldn't compile any of the
> application examples. I would appreciate any suggestion.
>
> Thanks in advance,
> César.-
>
> -----------------------------------------------------------
> Cesar Araujo, Lic. of Chemistry
> Research Center for Molecular Endocrinology
> P.O. Box 5000, FIN-90014 University of Oulu
> Finland
>
> phone: +358 8 3155632
> e-mail: cesar.araujo at oulu.fi
>
> PS: This is the list of errors that I've got:
>
> In file included from /home/caraujo/downloads/ITK/InsightApplications-
> 3.2.0/CellularSegmentation/CellularSegmentationApplicationBase.cxx:4:
> /home/caraujo/downloads/ITK/InsightApplications-3.2.0/CellularSegmentation/CellularSegmentationApplicationBase.h:9:22:
> itkImage.h: No such file or directory
> /home/caraujo/downloads/ITK/InsightApplications-3.2.0/CellularSegmentation/CellularSegmentationApplicationBase.h:10:32:
> itkImageFileReader.h: No such file or directory
> /home/caraujo/downloads/ITK/InsightApplications-3.2.0/CellularSegmentation/CellularSegmentationApplicationBase.h:11:38:
> itkImageToVTKImageFilter.h: No such file or directory
> /home/caraujo/downloads/ITK/InsightApplications-3.2.0/CellularSegmentation/CellularSegmentationApplicationBase.h:12:44:
> itkRescaleIntensityImageFilter.h: No such file or directory
> /home/caraujo/downloads/ITK/InsightApplications-3.2.0/CellularSegmentation/CellularSegmentationApplicationBase.h:13:24:
> itkCommand.h: No such file or directory
> In file included from /home/caraujo/downloads/ITK/InsightApplications-
> 3.2.0/CellularSegmentation/CellularSegmentationApplicationBase.cxx:4:
> /home/caraujo/downloads/ITK/InsightApplications-3.2.0/CellularSegmentation/CellularSegmentationApplicationBase.h:25:
> error: ISO
> C++ forbids declaration of `itk' with no type
> /home/caraujo/downloads/ITK/InsightApplications-3.2.0/CellularSegmentation/CellularSegmentationApplicationBase.h:25:
> error: parse
> error before `::' token
> /home/caraujo/downloads/ITK/InsightApplications-3.2.0/CellularSegmentation/CellularSegmentationApplicationBase.h:27:
> error: `
> int' is not an aggregate type
> /home/caraujo/downloads/ITK/InsightApplications-3.2.0/CellularSegmentation/CellularSegmentationApplicationBase.h:27:
> error: ISO
> C++ forbids declaration of `Image' with no type
> /home/caraujo/downloads/ITK/InsightApplications-3.2.0/CellularSegmentation/CellularSegmentationApplicationBase.h:27:
> error: template-id
> `Image<unsigned char, 2>' used as a declarator
> /home/caraujo/downloads/ITK/InsightApplications-3.2.0/CellularSegmentation/CellularSegmentationApplicationBase.h:27:
> error: parse
> error before `;' token
> /home/caraujo/downloads/ITK/InsightApplications-3.2.0/CellularSegmentation/CellularSegmentationApplicationBase.h:29:
> error: `
> ImageType' was not declared in this scope
> /home/caraujo/downloads/ITK/InsightApplications-3.2.0/CellularSegmentation/CellularSegmentationApplicationBase.h:29:
> error: `
> int' is not an aggregate type
> /home/caraujo/downloads/ITK/InsightApplications-3.2.0/CellularSegmentation/CellularSegmentationApplicationBase.h:29:
> error: ISO
> C++ forbids declaration of `ImageFileReader' with no type
> /home/caraujo/downloads/ITK/InsightApplications-3.2.0/CellularSegmentation/CellularSegmentationApplicationBase.h:29:
> error: template-id
> `ImageFileReader<<expression error> >' used as a declarator
> /home/caraujo/downloads/ITK/InsightApplications-3.2.0/CellularSegmentation/CellularSegmentationApplicationBase.h:29:
> error: parse
> error before `;' token
> /home/caraujo/downloads/ITK/InsightApplications-3.2.0/CellularSegmentation/CellularSegmentationApplicationBase.h:32:
> error: `
> ImageType' was not declared in this scope
> /home/caraujo/downloads/ITK/InsightApplications-3.2.0/CellularSegmentation/CellularSegmentationApplicationBase.h:33:
> error: `
> VisualizationImageType' was not declared in this scope
> /home/caraujo/downloads/ITK/InsightApplications-3.2.0/CellularSegmentation/CellularSegmentationApplicationBase.h:33:
> error: `
> int' is not an aggregate type
> /home/caraujo/downloads/ITK/InsightApplications-3.2.0/CellularSegmentation/CellularSegmentationApplicationBase.h:33:
> error: ISO
> C++ forbids declaration of `RescaleIntensityImageFilter' with no type
> /home/caraujo/downloads/ITK/InsightApplications-3.2.0/CellularSegmentation/CellularSegmentationApplicationBase.h:33:
> error: template-id
> `RescaleIntensityImageFilter<<expression error>, <expression error> >'
> used
> as a declarator
> /home/caraujo/downloads/ITK/InsightApplications-3.2.0/CellularSegmentation/CellularSegmentationApplicationBase.h:33:
> error: parse
> error before `;' token
> /home/caraujo/downloads/ITK/InsightApplications-3.2.0/CellularSegmentation/CellularSegmentationApplicationBase.h:36:
> error: `
> VisualizationImageType' was not declared in this scope
> /home/caraujo/downloads/ITK/InsightApplications-3.2.0/CellularSegmentation/CellularSegmentationApplicationBase.h:36:
> error: `
> int' is not an aggregate type
> /home/caraujo/downloads/ITK/InsightApplications-3.2.0/CellularSegmentation/CellularSegmentationApplicationBase.h:36:
> error: ISO
> C++ forbids declaration of `ImageToVTKImageFilter' with no type
> /home/caraujo/downloads/ITK/InsightApplications-3.2.0/CellularSegmentation/CellularSegmentationApplicationBase.h:36:
> error: template-id
> `ImageToVTKImageFilter<<expression error> >' used as a declarator
> /home/caraujo/downloads/ITK/InsightApplications-3.2.0/CellularSegmentation/CellularSegmentationApplicationBase.h:36:
> error: parse
> error before `;' token
> /home/caraujo/downloads/ITK/InsightApplications-3.2.0/CellularSegmentation/CellularSegmentationApplicationBase.h:39:
> error: `
> int' is not an aggregate type
> /home/caraujo/downloads/ITK/InsightApplications-3.2.0/CellularSegmentation/CellularSegmentationApplicationBase.h:39:
> error: ISO
> C++ forbids declaration of `SimpleMemberCommand' with no type
> /home/caraujo/downloads/ITK/InsightApplications-3.2.0/CellularSegmentation/CellularSegmentationApplicationBase.h:39:
> error: template-id
> `SimpleMemberCommand<CellularSegmentationApplicationBase>' used as a
> declarator
> /home/caraujo/downloads/ITK/InsightApplications-3.2.0/CellularSegmentation/CellularSegmentationApplicationBase.h:39:
> error: parse
> error before `;' token
> /home/caraujo/downloads/ITK/InsightApplications-3.2.0/CellularSegmentation/CellularSegmentationApplicationBase.h:57:
> error: syntax
> error before `::' token
> /home/caraujo/downloads/ITK/InsightApplications-3.2.0/CellularSegmentation/CellularSegmentationApplicationBase.h:59:
> error: syntax
> error before `::' token
> /home/caraujo/downloads/ITK/InsightApplications-3.2.0/CellularSegmentation/CellularSegmentationApplicationBase.h:61:
> error: syntax
> error before `::' token
> /home/caraujo/downloads/ITK/InsightApplications-3.2.0/CellularSegmentation/CellularSegmentationApplicationBase.h:63:
> error: syntax
> error before `::' token
> /home/caraujo/downloads/ITK/InsightApplications-3.2.0/CellularSegmentation/CellularSegmentationApplicationBase.cxx:
> In
> constructor `
>
> CellularSegmentationApplicationBase::CellularSegmentationApplicationBase()':
> /home/caraujo/downloads/ITK/InsightApplications-3.2.0/CellularSegmentation/CellularSegmentationApplicationBase.cxx:10:
> error: `
> m_ImageReader' undeclared (first use this function)
> /home/caraujo/downloads/ITK/InsightApplications-3.2.0/CellularSegmentation/CellularSegmentationApplicationBase.cxx:10:
> error: (Each
> undeclared identifier is reported only once for each function it
> appears
> in.)
> /home/caraujo/downloads/ITK/InsightApplications-3.2.0/CellularSegmentation/CellularSegmentationApplicationBase.cxx:10:
> error: `
> ImageReaderType' undeclared (first use this function)
> /home/caraujo/downloads/ITK/InsightApplications-3.2.0/CellularSegmentation/CellularSegmentationApplicationBase.cxx:10:
> error: parse
> error before `::' token
> /home/caraujo/downloads/ITK/InsightApplications-3.2.0/CellularSegmentation/CellularSegmentationApplicationBase.cxx:12:
> error: `
> m_RescaleIntensity' undeclared (first use this function)
> /home/caraujo/downloads/ITK/InsightApplications-3.2.0/CellularSegmentation/CellularSegmentationApplicationBase.cxx:12:
> error: `
> RescaleIntensityFilterType' undeclared (first use this function)
> /home/caraujo/downloads/ITK/InsightApplications-3.2.0/CellularSegmentation/CellularSegmentationApplicationBase.cxx:12:
> error: parse
> error before `::' token
> /home/caraujo/downloads/ITK/InsightApplications-3.2.0/CellularSegmentation/CellularSegmentationApplicationBase.cxx:14:
> error: `
> m_ITK2VTKAdaptor' undeclared (first use this function)
> /home/caraujo/downloads/ITK/InsightApplications-3.2.0/CellularSegmentation/CellularSegmentationApplicationBase.cxx:14:
> error: `
> ITK2VTKAdaptorFilterType' undeclared (first use this function)
> /home/caraujo/downloads/ITK/InsightApplications-3.2.0/CellularSegmentation/CellularSegmentationApplicationBase.cxx:14:
> error: parse
> error before `::' token
> /home/caraujo/downloads/ITK/InsightApplications-3.2.0/CellularSegmentation/CellularSegmentationApplicationBase.cxx:16:
> error: `
> int' is not an aggregate type
> /home/caraujo/downloads/ITK/InsightApplications-3.2.0/CellularSegmentation/CellularSegmentationApplicationBase.cxx:16:
> error: parse
> error before `>' token
> /home/caraujo/downloads/ITK/InsightApplications-3.2.0/CellularSegmentation/CellularSegmentationApplicationBase.cxx:16:
> error: `::
> max' undeclared (first use here)
> /home/caraujo/downloads/ITK/InsightApplications-3.2.0/CellularSegmentation/CellularSegmentationApplicationBase.cxx:16:
> error: parse
> error before `)' token
> /home/caraujo/downloads/ITK/InsightApplications-3.2.0/CellularSegmentation/CellularSegmentationApplicationBase.cxx:17:
> error: `
> int' is not an aggregate type
> /home/caraujo/downloads/ITK/InsightApplications-3.2.0/CellularSegmentation/CellularSegmentationApplicationBase.cxx:17:
> error: parse
> error before `>' token
> /home/caraujo/downloads/ITK/InsightApplications-3.2.0/CellularSegmentation/CellularSegmentationApplicationBase.cxx:17:
> error: `::
> min' undeclared (first use here)
> /home/caraujo/downloads/ITK/InsightApplications-3.2.0/CellularSegmentation/CellularSegmentationApplicationBase.cxx:17:
> error: parse
> error before `)' token
> /home/caraujo/downloads/ITK/InsightApplications-3.2.0/CellularSegmentation/CellularSegmentationApplicationBase.cxx:19:
> error: `
> m_IterationObserver' undeclared (first use this function)
> /home/caraujo/downloads/ITK/InsightApplications-3.2.0/CellularSegmentation/CellularSegmentationApplicationBase.cxx:19:
> error: `
> IterationObserverType' undeclared (first use this function)
> /home/caraujo/downloads/ITK/InsightApplications-3.2.0/CellularSegmentation/CellularSegmentationApplicationBase.cxx:19:
> error: parse
> error before `::' token
> /home/caraujo/downloads/ITK/InsightApplications-3.2.0/CellularSegmentation/CellularSegmentationApplicationBase.cxx:
> In
> member function `virtual void
> CellularSegmentationApplicationBase::IterationCallback()':
> /home/caraujo/downloads/ITK/InsightApplications-3.2.0/CellularSegmentation/CellularSegmentationApplicationBase.cxx:54:
> error: `
> cout' undeclared in namespace `std'
> /home/caraujo/downloads/ITK/InsightApplications-3.2.0/CellularSegmentation/CellularSegmentationApplicationBase.cxx:54:
> error: `
> endl' undeclared in namespace `std'
> make[2]: ***
> [CMakeFiles/CellularSegmentation.dir/CellularSegmentationApplicationBase.o]
> Error 1
> make[1]: *** [CMakeFiles/CellularSegmentation.dir/all] Error 2
> make: *** [all] Error 2
>
>
>
>
>
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/insight-users/attachments/20070713/813173e9/attachment-0001.html
More information about the Insight-users
mailing list