/usr/include/ITK-4.9/vnl/vnl_identity.h is in libinsighttoolkit4-dev 4.9.0-4ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | // 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_
|