Revision 38b22f7bf846544d8054ac93e1925a0209768ad6 authored by Konrad Werys on 08 August 2019, 11:35:05 UTC, committed by Konrad Werys on 08 August 2019, 11:35:05 UTC
1 parent ded8e4d
itkColorbar2DImageFilter.h
//
// itkColorbar2DImageFilter
// TomatoLib
//
// Created by Konrad Werys on 13/7/17.
// Copyright © 2017 Konrad Werys. All rights reserved.
//
#ifndef TomatoLIB_ITKColorbar2DImageFilter_H
#define TomatoLIB_ITKColorbar2DImageFilter_H
#include "itkImageToImageFilter.h"
#include "itkImageRegionIteratorWithIndex.h"
#include "itkImageRegionConstIteratorWithIndex.h"
namespace itk {
/**
* \class Colorbar2DImageFilter
* @tparam TImage
*/
template<typename TImage>
class Colorbar2DImageFilter : public ImageToImageFilter<TImage, TImage> {
public:
/** Standard class typedefs. */
typedef Colorbar2DImageFilter Self;
typedef ImageToImageFilter<TImage, TImage> Superclass;
typedef SmartPointer<Self> Pointer;
/** Method for creation through the object factory. */
itkNewMacro(Self);
/** Run-time type information (and related methods). */
itkTypeMacro(OxColorbarImageFilter, ImageToImageFilter);
typedef typename TImage::PixelType PixelTypeIn;
typedef typename TImage::PixelType PixelTypeOut;
itkSetMacro(ZerosInsteadOfColorbar, bool);
itkGetMacro(ZerosInsteadOfColorbar, bool);
protected:
/** Constructor. */
Colorbar2DImageFilter() {
m_ZerosInsteadOfColorbar = false;
};
/** Destructor. */
~Colorbar2DImageFilter() {};
/** Does the real work. */
virtual void GenerateData() ITK_OVERRIDE;
private:
bool m_ZerosInsteadOfColorbar;
ITK_DISALLOW_COPY_AND_ASSIGN(Colorbar2DImageFilter); //purposely not implemented
};
} //namespace ITK
#ifdef TomatoLib_EXPORTS
#ifndef ITK_MANUAL_INSTANTIATION
#include "itkColorbar2DImageFilter.txx"
#endif //ITK_MANUAL_INSTANTIATION
#endif //TomatoLib_EXPORTS
#endif //TomatoLIB_ITKColorbar2DImageFilter_H
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...