[ITK Community] Fwd: [slicer-devel] itkLabelMapMaskImageFilter issue
Jean-Christophe Fillion-Robin
jchris.fillionr at kitware.com
Wed Jan 29 15:37:23 EST 2014
Note: Discussion moved from Slicer developer list to ITK community list.
---------- Forwarded message ----------
From: Laurent Chauvin <lchauvin at bwh.harvard.edu>
Date: Wed, Jan 29, 2014 at 3:22 PM
Subject: [slicer-devel] itkLabelMapMaskImageFilter issue
To: Slicer Developers Mailing List <slicer-devel at bwh.harvard.edu>
Hello slicer developers,
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.
This is the code:
const unsigned int Dimension = 3;
typedef unsigned short IntegralPixelType;
typedef itk::Image<IntegralPixelType, Dimension> IntegralImageType;
typedef itk::LabelMapMaskImageFilter<IntegralImageType,
IntegralImageType> MaskFilter;
// This line create an issue
typename MaskFilter::Pointer mFilter = MaskFilter::New();
Here is the error:
In file included from
> /home/snr/Slicer4/Slicer-Debug/ITKv4/Modules/Filtering/LabelMap/include/itkLabelMapMaskImageFilter.h:21:0,
> from
> /home/snr/Slicer4/ExternalModules/PointillismRegistration/PointillismRegistration/PointillismRegistration.cxx:7:
> /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> >':
> /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> >'
> /home/snr/Slicer4/ExternalModules/PointillismRegistration/PointillismRegistration/PointillismRegistration.cxx:74:22:
> required from here
> /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>}'
> /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>}'
>
I'm not sure why LabelObjectType cannot be found in LabelMapFilter (and why
it's looking LabelMapFilter for it and not in LabelMapMaskFilter).
I tried to find examples of code with itkLabelMapMaskImageFilter but I
couldn't find any.
Is there something wrong in the class or is it in my code ?
Thank you.
-Laurent
--
Laurent Chauvin, MS
Surgical Navigation and Robotics Laboratory, Radiology Department
Brigham And Women's Hospital, Harvard Medical School
http://wiki.ncigt.org/index.php/User:Lchauvin
_______________________________________________
slicer-devel mailing list
slicer-devel at bwh.harvard.edu
http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel
To unsubscribe: send email to
slicer-devel-request at massmail.spl.harvard.eduwith unsubscribe as the
subject
http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/FAQ
The information in this e-mail is intended only for the person to whom it is
addressed. If you believe this e-mail was sent to you in error and the
e-mail
contains patient information, please contact the Partners Compliance
HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in
error
but does not contain patient information, please contact the sender and
properly
dispose of the e-mail.
--
+1 919 869 8849
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20140129/11fc185d/attachment-0002.html>
More information about the Community
mailing list