[Insight-users] Detecting border of a segment
Bill Lorensen
bill.lorensen at gmail.com
Mon Sep 28 08:32:34 EDT 2009
Although not mentioned in the documentation, the output pixel type
must an RGBPixel. At least, that is what I gather from the code in
itkLabelOverlayFunctor.
Bill
On Mon, Sep 28, 2009 at 6:28 AM, Michael Xanadu
<xanadu.michael at googlemail.com> wrote:
> Thanks Kevin, that was the clue. And the solution leds to next problem. :-(
> If I create a filter object I get some strange errors, all reference line
> 106 of itkLabelOverlayImageFilter.h:
>
> error C2825:
> 'itk::LabelOverlayImageFilter<TInputImage,TLabelImage,TOutputImage>::OutputPixelType':
> must be a class or namespace when followed by '::'
> error C2039: 'ValueType' : is not a member of '`global namespace''
> error C2146: syntax error : missing ',' before identifier 'ValueType'
> error C2065: 'ValueType' : undeclared identifier
> error C2027: use of undefined type 'itk::Concept::BracketOperator'
>
> What I did was this:
>
> typedef itk::LabelOverlayImageFilter<ImageType,ImageType,ImageType>
> LabelOverlayImageFilterType;
> LabelOverlayImageFilterType::Pointer overlayer =
> LabelOverlayImageFilterType::New();
>
> where ImageType is this:
>
> typedef itk::Image< short, 3> ImageType;
>
>
>
> 2009/9/28 Kevin H. Hobbs <hobbsk at ohiou.edu>
>>
>> It looks like this filter is in the review directory.
>>
>> $ locate itkLabelOverlayImageFilter.h
>> /home/kevin/kitware/Insight/Code/Review/itkLabelOverlayImageFilter.h
>>
>> To use it please set the cmake variable ITK_USE_REVIEW to ON when you
>> configure ITK. I think it's an advanced variable so you'll have to hit
>> 't' to change it in ccmake.
>
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
>
>
More information about the Insight-users
mailing list