17 #ifndef itSmoothedClassProbabilites_cpp
18 #define itSmoothedClassProbabilites_cpp
21 #include "itkObjectFactory.h"
22 #include "itkImageRegionIterator.h"
23 #include "itkImageRegionConstIterator.h"
24 #include <itkDiscreteGaussianImageFilter.h>
36 template<
class TImage>
42 out->SetRegions(this->GetInput(0)->GetLargestPossibleRegion());
45 for(
unsigned int i = 0 ; i < this->GetNumberOfInputs(); i++)
49 gf->SetInput(this->GetInput(i));
50 gf->SetVariance(this->m_Sigma);
53 ImageRegionConstIterator<TImage> git(gf->GetOutput(),gf->GetOutput()->GetLargestPossibleRegion());
54 ImageRegionIterator<TImage> maskiter(m_MaskImage, m_MaskImage->GetLargestPossibleRegion());
55 ImageRegionIterator<TImage> outputIter(out, out->GetLargestPossibleRegion());
57 while (!outputIter.IsAtEnd())
59 if(maskiter.Value() > 0 ){
61 if(git.Value() > outputIter.Value())
83 #endif // itSmoothedClassProbabilites_cpp
itk::SmartPointer< Self > Pointer
virtual void GenerateData()
static itkEventMacro(BoundingShapeInteractionEvent, itk::AnyEvent) class MITKBOUNDINGSHAPE_EXPORT BoundingShapeInteractor Pointer New()
Basic interaction methods for mitk::GeometryData.