<div dir="ltr">Note: Discussion moved from Slicer developer list to ITK community list.<br><div><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Laurent Chauvin</b> <span dir="ltr"><<a href="mailto:lchauvin@bwh.harvard.edu" target="_blank">lchauvin@bwh.harvard.edu</a>></span><br>
Date: Wed, Jan 29, 2014 at 3:22 PM<br>Subject: [slicer-devel] itkLabelMapMaskImageFilter issue<br>To: Slicer Developers Mailing List <<a href="mailto:slicer-devel@bwh.harvard.edu" target="_blank">slicer-devel@bwh.harvard.edu</a>><br>
<br><br><div dir="ltr">Hello slicer developers,<div><br></div><div>I'm trying to create a CLI that use some itk filters, and it's working, but now I want to include a itkLabelMapMaskImageFilter but I got some errors.</div>
<div><br></div><div>This is the code:</div><div><br></div><div> const unsigned int Dimension = 3;</div><div> typedef unsigned short IntegralPixelType;<br></div><div> typedef itk::Image<IntegralPixelType, Dimension> IntegralImageType;<br>
</div><div> typedef itk::LabelMapMaskImageFilter<IntegralImageType, IntegralImageType> MaskFilter;<br></div><div><br></div><div><br></div><div> // This line create an issue<br clear="all"><div> typename MaskFilter::Pointer mFilter = MaskFilter::New();</div>
<div><br></div><div><br></div><div>Here is the error:</div><div><br></div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
In file included from /home/snr/Slicer4/Slicer-Debug/ITKv4/Modules/Filtering/LabelMap/include/itkLabelMapMaskImageFilter.h:21:0,<br> from /home/snr/Slicer4/ExternalModules/PointillismRegistration/PointillismRegistration/PointillismRegistration.cxx:7:<br>
/home/snr/Slicer4/Slicer-Debug/ITKv4/Modules/Filtering/LabelMap/include/itkLabelMapFilter.h: In instantiation of ‘class itk::LabelMapFilter<itk::Image<short unsigned int, 3u>, itk::Image<short unsigned int, 3u> >’:<br>
/home/snr/Slicer4/Slicer-Debug/ITKv4/Modules/Filtering/LabelMap/include/itkLabelMapMaskImageFilter.h:47:7: required from ‘class itk::LabelMapMaskImageFilter<itk::Image<short unsigned int, 3u>, itk::Image<short unsigned int, 3u> >’<br>
/home/snr/Slicer4/ExternalModules/PointillismRegistration/PointillismRegistration/PointillismRegistration.cxx:74:22: required from here<br>/home/snr/Slicer4/Slicer-Debug/ITKv4/Modules/Filtering/LabelMap/include/itkLabelMapFilter.h:80:55: error: no type named ‘LabelObjectType’ in ‘itk::LabelMapFilter<itk::Image<short unsigned int, 3u>, itk::Image<short unsigned int, 3u> >::InputImageType {aka class itk::Image<short unsigned int, 3u>}’<br>
/home/snr/Slicer4/Slicer-Debug/ITKv4/Modules/Filtering/LabelMap/include/itkLabelMapFilter.h:127:37: error: no type named ‘Iterator’ in ‘itk::LabelMapFilter<itk::Image<short unsigned int, 3u>, itk::Image<short unsigned int, 3u> >::InputImageType {aka class itk::Image<short unsigned int, 3u>}’<br>
</blockquote><div><br></div>I'm not sure why LabelObjectType cannot be found in LabelMapFilter (and why it's looking LabelMapFilter for it and not in LabelMapMaskFilter).<br></div><div><br></div><div>I tried to find examples of code with itkLabelMapMaskImageFilter but I couldn't find any.</div>
<div><br></div><div>Is there something wrong in the class or is it in my code ?</div><div><br></div><div>Thank you.</div><span><font color="#888888"><div>-Laurent</div><div><br></div>-- <br><div dir="ltr">
<div>Laurent Chauvin, MS</div><div>Surgical Navigation and Robotics Laboratory, Radiology Department</div>
<div>Brigham And Women's Hospital, Harvard Medical School<br></div><div><a href="http://wiki.ncigt.org/index.php/User:Lchauvin" target="_blank">http://wiki.ncigt.org/index.php/User:Lchauvin</a></div></div>
</font></span></div></div>
<br>_______________________________________________<br>
slicer-devel mailing list<br>
<a href="mailto:slicer-devel@bwh.harvard.edu" target="_blank">slicer-devel@bwh.harvard.edu</a><br>
<a href="http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel" target="_blank">http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel</a><br>
To unsubscribe: send email to <a href="mailto:slicer-devel-request@massmail.spl.harvard.edu" target="_blank">slicer-devel-request@massmail.spl.harvard.edu</a> with unsubscribe as the subject<br>
<a href="http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/FAQ" target="_blank">http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/FAQ</a><br>
<br>
<br>
The information in this e-mail is intended only for the person to whom it is<br>
addressed. If you believe this e-mail was sent to you in error and the e-mail<br>
contains patient information, please contact the Partners Compliance HelpLine at<br>
<a href="http://www.partners.org/complianceline" target="_blank">http://www.partners.org/complianceline</a> . If the e-mail was sent to you in error<br>
but does not contain patient information, please contact the sender and properly<br>
dispose of the e-mail.<br>
<br></div><br><br clear="all"><br>-- <br><a href="tel:%2B1%20919%20869%208849" value="+19198698849" target="_blank">+1 919 869 8849</a><br>
</div></div>