/*========================================================================= Program: GIFT Select Maximum Feature Weight Generator Module: giftSelectMaximumFeature.h Language: C++ Date: 2005/11/24 Version: 0.1 Author: Dan Mueller [d.mueller@qut.edu.au] Copyright (c) 2005 Queensland University of Technology. All rights reserved. See giftCopyright.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the above copyright notices for more information. =========================================================================*/ #ifndef __giftSelectMaximumFeature_H #define __giftSelectMaximumFeature_H //ITK includes //GIFT includes #include "giftWeightGenerator.h" namespace gift { /** * \class SelectMaximumFeature * \brief Generators weight maps by setting the weight to be 1.0 for the * the level/band image with the maximum feature value, and 0.0 else. * * \ingroup Image Fusion Weight Generators */ template class SelectMaximumFeature : public WeightGenerator { public: /** Standard class typedefs. */ typedef SelectMaximumFeature Self; typedef WeightGenerator Superclass; typedef itk::SmartPointer Pointer; typedef itk::SmartPointer ConstPointer; /** Method for creation through the object factory. */ itkNewMacro(Self); /** Run-time type information (and related methods). */ itkTypeMacro(SelectMaximumFeature, WeightGenerator); /** ImageDimension enumeration. */ itkStaticConstMacro(ImageDimension, unsigned int, TImage::ImageDimension); /** Inherit types from Superclass. */ typedef typename Superclass::InputImageType InputImageType; typedef typename Superclass::OutputImageType OutputImageType; typedef typename Superclass::InputImagePointer InputImagePointer; typedef typename Superclass::OutputImagePointer OutputImagePointer; typedef typename Superclass::InputImageConstPointer InputImageConstPointer; typedef typename TImage::PixelType PixelType; typedef typename TImage::InternalPixelType InternalPixelType; protected: SelectMaximumFeature(); ~SelectMaximumFeature(){}; void PrintSelf(std::ostream&os, itk::Indent indent) const; /** Generate the output data. */ void GenerateData(); private: SelectMaximumFeature(const Self&); //purposely not implemented void operator=(const Self&); //purposely not implemented }; }// namespace gift //Include CXX #ifndef GIFT_MANUAL_INSTANTIATION #include "giftSelectMaximumFeature.txx" #endif #endif