[Insight-users] How to use the itkSubtractImagFilter.h
Anders Almås
andersal at stud . ntnu . no
Fri, 3 Oct 2003 08:40:19 +0200 (CEST)
Hi!
I am new to ITK and I am trying to learn how to use it in segmentation. My
PROBLEM is for now how to use the itkSubtractImageFilter.h Should there
be two lines to set the input?
subtractImages->SetInput(GrayscaleErode->GetOutput());
subtractImages->SetInput(reader->GetOutput());
Where GrayscaleErode is of GrayScaleErodeFilter and reader is the input
image...
What is wrong??
I have instaniated the headerfile and made an typedef
typedef
itk::SubtractImageFilter<InputImageType,OutputImageType,OutputImageType>
SubtractImageType;
SubtractImageType::Pointer subtractImages = SubtractImageType::New();
Please give me some clues!!
Thanks
Anders
-------------------------------------------------------------------------------
Navn: Anders Almås
E-post: andersal at stud . ntnu . no
Tlf: 90550374
-------------------------------------------------------------------------------
...............................................................................
Anders Almås Min hjemmeside:
7230 Trondheim http://stud . ntnu . no/~andersal/
...............................................................................