⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 vnl_identity.h

📁 DTMK软件开发包,此为开源软件,是一款很好的医学图像开发资源.
💻 H
字号:
// This is core/vnl/vnl_identity.h
#ifndef vnl_identity_h_
#define vnl_identity_h_
#ifdef VCL_NEEDS_PRAGMA_INTERFACE
#pragma interface
#endif
//:
// \file
// \brief Contains class vnl_identity
// \author Andrew W. Fitzgibbon, Oxford RRG
// \date   07 Dec 98
//
// \verbatim
//  Modifications
//   LSB (Manchester) 23/1/01 Tidied documentation
// \endverbatim
//-----------------------------------------------------------------------------

#include <vnl/vnl_unary_function.h>

template <class T>
class vnl_identity : public vnl_unary_function<T,T>
{
 public:
  vnl_unary_function<T,T>* Copy() const {
    vnl_identity<T>* copy = new vnl_identity<T>;
    *copy = *this;
    return copy;
  }

  T f(T const& x) {
    return x;
  }
};

#endif // vnl_identity_h_

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -