diff --git a/Modules/Segmentation/Algorithms/mitkSurfaceStampImageFilter.h b/Modules/Segmentation/Algorithms/mitkSurfaceStampImageFilter.h index 45e6c9ffa9..c96bf330be 100644 --- a/Modules/Segmentation/Algorithms/mitkSurfaceStampImageFilter.h +++ b/Modules/Segmentation/Algorithms/mitkSurfaceStampImageFilter.h @@ -1,106 +1,106 @@ /*=================================================================== The Medical Imaging Interaction Toolkit (MITK) Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All rights reserved. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See LICENSE.txt or http://www.mitk.org for details. ===================================================================*/ #ifndef _mitkSurfaceStampImageFilter_h__ #define _mitkSurfaceStampImageFilter_h__ #include "mitkCommon.h" -#include "MitkExports.h" +#include "SegmentationExports.h" #include "mitkImageToImageFilter.h" #include "mitkSurface.h" #include class vtkPolyData; namespace mitk { /** * * @brief Converts surface data to pixel data. Requires a surface and an * image, which header information defines the output image. * * The resulting image has the same dimension, size, and Geometry3D * as the input image. The image is cut using a vtkStencil. * The user can decide if he wants to keep the original values or create a * binary image by setting MakeBinaryOutputOn (default is \a false). If * set to \a true all voxels inside the surface are set to one and all * outside voxel are set to zero. * * NOTE: Since the reference input image is passed to the vtkStencil in * any case, the image needs to be initialized with pixel values greater than * the numerical minimum of the used pixel type (e.g. at least -127 for * unsigned char images, etc.) to produce a correct binary image * representation of the surface in MakeOutputBinary mode. * * @ingroup SurfaceFilters * @ingroup Process */ -class MITK_CORE_EXPORT SurfaceStampImageFilter : public ImageToImageFilter +class Segmentation_EXPORT SurfaceStampImageFilter : public ImageToImageFilter { public: mitkClassMacro(SurfaceStampImageFilter, ImageToImageFilter); itkNewMacro(Self); itkSetMacro(MakeOutputBinary, bool); itkGetMacro(MakeOutputBinary, bool); itkBooleanMacro(MakeOutputBinary); itkSetMacro(OverwriteBackground, bool); itkGetMacro(OverwriteBackground, bool); itkBooleanMacro(OverwriteBackground); itkGetConstMacro(BackgroundValue, float); itkSetMacro(BackgroundValue, float); itkGetConstMacro(ForegroundValue, float); itkSetMacro(ForegroundValue, float); virtual void GenerateInputRequestedRegion(); virtual void GenerateOutputInformation(); virtual void GenerateData(); void SetSurface(mitk::Surface *surface); protected: SurfaceStampImageFilter(); virtual ~SurfaceStampImageFilter(); void SurfaceStamp(int time = 0); typedef itk::QuadEdgeMesh< double, 3 > MeshType; template < typename TPixel > void SurfaceStampProcessing( itk::Image< TPixel, 3 >* input, MeshType* mesh); void SurfaceStampBinaryOutputProcessing( MeshType* mesh ); bool m_MakeOutputBinary; bool m_OverwriteBackground; float m_BackgroundValue; float m_ForegroundValue; mitk::Surface::Pointer m_Surface; }; } // namespace mitk #endif /* MITKCOONSPATCHFILTER_H_HEADER_INCLUDED_C10B22CD */