[Insight-users] Gatens Label Object Representation and Manipulation
Gaëtan Lehmann
gaetan.lehmann at jouy.inra.fr
Sat Feb 27 16:59:40 EST 2010
Le 27 févr. 10 à 20:24, Christian Werner a écrit :
> Hello!
>
> I am off to make some serious object labling and manipulation.
> Unfortunately some very basic code does not compile:
>
> #include "itkBinaryImageToLabelMapFilter.h"
> int main( int argc, char * argv[] )
> {
> }
>
> christian at trinity:~/programming/itk/labeling/bin$ make -j2
> Scanning dependencies of target testITK
> [100%] Building CXX object CMakeFiles/testITK.dir/testITK.o
> In file included from /home/christian/programming/itk/labeling/
> testITK.cxx:2:
> /opt/InsightToolkit-3.16.0/Code/Review/
> itkBinaryImageToLabelMapFilter.h:54: error: expected type-specifier
> before ‘LabelMap’
> /opt/InsightToolkit-3.16.0/Code/Review/
> itkBinaryImageToLabelMapFilter.h:54: error: expected ‘>’ before
> ‘LabelMap’
> make[2]: *** [CMakeFiles/testITK.dir/testITK.o] Error 1
> make[1]: *** [CMakeFiles/testITK.dir/all] Error 2
> make: *** [all] Error 2
>
> I can fix this, when I edit (and this already feels bad) the
> itkBinaryImageToLabelMapFilter.h by adding
>
> #include "itkLabelMap.h"
> #include "itkLabelObject.h"
>
> The above code compiles this way.
You've actually found a bug. You don't have to fill bad to fix it that
way though: that's the exact fix I'm about to commit in ITK cvs.
> However if I actually use some functions out of the
> itkBinaryImageToLabelMapFilter.h I get errors over errors.
Can you provide the exact errors you get and the code used?
Regards,
Gaëtan
--
Gaëtan Lehmann
Biologie du Développement et de la Reproduction
INRA de Jouy-en-Josas (France)
tel: +33 1 34 65 29 66 fax: 01 34 65 29 09
http://voxel.jouy.inra.fr http://www.itk.org
http://www.mandriva.org http://www.bepo.fr
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 203 bytes
Desc: Ceci est une signature ?lectronique PGP
URL: <http://www.itk.org/pipermail/insight-users/attachments/20100227/edf3e538/attachment.pgp>
More information about the Insight-users
mailing list