Clodan,<div><br></div><div>Are you using ITK 3.8 or 3.18?</div><div><br></div><div>In order to use  itkLabelShapeKeepNObjectsImageFilter you need to compile ITK with ITK_USE_REVIEW set to ON. This is true for ITK 3.18, but I don&#39;t know if it was availiable for 3.8 version.</div>
<div><br></div><div>Best regards</div><div><br></div><div><div class="gmail_quote">On Sat, May 5, 2012 at 9:34 PM, Clodan <span dir="ltr">&lt;<a href="mailto:Majin_Clodan@t-online.de" target="_blank">Majin_Clodan@t-online.de</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Hello guys,<br>
<br>
well I tested the program on the following link:<br>
<a href="http://www.itk.org/Wiki/ITK/Examples/ImageSegmentation/ExtractLargestConnectedComponentFromBinaryImage" target="_blank">http://www.itk.org/Wiki/ITK/Examples/ImageSegmentation/ExtractLargestConnectedComponentFromBinaryImage</a><br>

<a href="http://www.itk.org/Wiki/ITK/Examples/ImageSegmentation/ExtractLargestConnectedComponentFromBinaryImage" target="_blank">http://www.itk.org/Wiki/ITK/Examples/ImageSegmentation/ExtractLargestConnectedComponentFromBinaryImage</a><br>

<br>
If I do:<br>
cmake<br>
<br>
I don&#39;t get any error but if I do:<br>
make -j 2<br>
<br>
then I get the following error:<br>
<br>
[100%] Building CXX object<br>
CMakeFiles/ExtractLargestConnectedComponentFromBinaryImage.dir/test.cpp.o<br>
/Users/System/HiwiJob/Ticket/_ Extract the largest connected component from<br>
a Binary Image/test.cpp:5:50: error: itkLabelShapeKeepNObjectsImageFilter.h:<br>
No such file or directory<br>
/Users/System/HiwiJob/Ticket/_ Extract the largest connected component from<br>
a Binary Image/test.cpp: In function ‘int main(int, char**)’:<br>
/Users/System/HiwiJob/Ticket/_ Extract the largest connected component from<br>
a Binary Image/test.cpp:35: error: expected initializer before ‘&lt;’ token<br>
/Users/System/HiwiJob/Ticket/_ Extract the largest connected component from<br>
a Binary Image/test.cpp:36: error: ‘LabelShapeKeepNObjectsImageFilterType’<br>
has not been declared<br>
/Users/System/HiwiJob/Ticket/_ Extract the largest connected component from<br>
a Binary Image/test.cpp:36: error: expected `;&#39; before<br>
‘labelShapeKeepNObjectsImageFilter’<br>
/Users/System/HiwiJob/Ticket/_ Extract the largest connected component from<br>
a Binary Image/test.cpp:37: error: ‘labelShapeKeepNObjectsImageFilter’ was<br>
not declared in this scope<br>
/Users/System/HiwiJob/Ticket/_ Extract the largest connected component from<br>
a Binary Image/test.cpp:40: error: ‘LabelShapeKeepNObjectsImageFilterType’<br>
has not been declared<br>
make[2]: ***<br>
[CMakeFiles/ExtractLargestConnectedComponentFromBinaryImage.dir/test.cpp.o]<br>
Error 1<br>
make[1]: ***<br>
[CMakeFiles/ExtractLargestConnectedComponentFromBinaryImage.dir/all] Error 2<br>
make: *** [all] Error 2<br>
<br>
In short he can&#39;t find the itkLabelShapeKeepNObjectsImageFilter.<br>
I have the 3.8 version. Why don&#39;t he find the file? do I need a newer<br>
version? If yes how can I do this? Or is there another reason? :(<br>
<br>
<br>
Greetings, Clodan<br>
<br>
--<br>
View this message in context: <a href="http://old.nabble.com/error%3A-itkLabelShapeKeepNObjectsImageFilter.h-tp33763483p33763483.html" target="_blank">http://old.nabble.com/error%3A-itkLabelShapeKeepNObjectsImageFilter.h-tp33763483p33763483.html</a><br>

Sent from the ITK - Users mailing list archive at Nabble.com.<br>
<br>
_____________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.php" target="_blank">http://www.kitware.com/products/protraining.php</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Sergio Vera<br><br> Alma IT Systems<br> C/ Vilana, 4B, 4º 1ª<br> 08022 Barcelona<br> T. (+34) 932 380 592<br> <a href="http://www.alma3d.com">www.alma3d.com</a><br>

</div>