<commit_before>/*=========================================================================

  Program:   Insight Segmentation & Registration Toolkit
  Module:    itkRegistrationMapperImage.h
  Language:  C++
  Date:      $Date$
  Version:   $Revision$


  Copyright (c) 2000 National Library of Medicine
  All rights reserved.

  See COPYRIGHT.txt for copyright details.

=========================================================================*/
#ifndef __itkRegistrationMapperImage_h
#define __itkRegistrationMapperImage_h

#include "itkImage.h"
#include "itkPoint.h"
#include "itkRegistrationMapper.h"

namespace itk
{
  
/** \class RegistrationMapperImage
 * \brief Maps values from the image using a transformation
 *
 * This Class is templated over the image type and the 
 * transformation type. Using a point in space, it transforms
 * the point and gets the value of the image at that new point 
 * using some interpolation strategy.
 *
 */


template <class TImage, class TTransformation>
class ITK_EXPORT RegistrationMapperImage : 
  public RegistrationMapper< TImage, TTransformation > 

{

public:
  /**
   * Standard "Self" typedef.
   */
  typedef RegistrationMapper<TImage,TTransformation>  Self;

  /**
   * Standard "Superclass" typedef.
   */
  typedef RegistrationMapper< TImage, TTransformation >  Superclass;

  /** 
   * Smart pointer typedef support 
   */
  typedef SmartPointer<Self>   Pointer;
  typedef SmartPointer<const Self>  ConstPointer;


  /**
   * Typedef of the Point used to represent coordinates
   */
   typedef typename TTransformation::PointType   PointType;


  /**
   * Typedef of the Pixel type
   */
   typedef  typename   TImage::PixelType   PixelType;


  /**
   * Typedef of the image index
   */
   typedef  typename   TImage::IndexType   IndexType;


  /**
   * Typedef of the image region
   */
   typedef  typename   TImage::RegionType   RegionType;


  /**
   * Typedef of the image size
   */
   typedef  typename   TImage::SizeType   SizeType;



public: 

  /**
   * Specify the point for which the image value is wanted
   * this method will throw a MapperException is the mapped
   * point lies outside the image domain
   */
   PixelType Evaluate( const PointType & point ); // throw MapperException


protected:
  RegistrationMapperImage();
  ~RegistrationMapperImage(){};
  RegistrationMapperImage(const Self&) {}
  void operator=(const Self&) {}


};


} // end namespace itk

#ifndef ITK_MANUAL_INSTANTIATION
#include <itkRegistrationMapperImage.txx>
#endif

#endif


<commit_msg>ERR: ^M removed.<commit_after>/*=========================================================================

  Program:   Insight Segmentation & Registration Toolkit
  Module:    itkRegistrationMapperImage.h
  Language:  C++
  Date:      $Date$
  Version:   $Revision$


  Copyright (c) 2000 National Library of Medicine
  All rights reserved.

  See COPYRIGHT.txt for copyright details.

=========================================================================*/
#ifndef __itkRegistrationMapperImage_h
#define __itkRegistrationMapperImage_h

#include "itkImage.h"
#include "itkPoint.h"
#include "itkRegistrationMapper.h"

namespace itk
{
  
/** \class RegistrationMapperImage
 * \brief Maps values from the image using a transformation
 *
 * This Class is templated over the image type and the 
 * transformation type. Using a point in space, it transforms
 * the point and gets the value of the image at that new point 
 * using some interpolation strategy.
 *
 */


template <class TImage, class TTransformation>
class ITK_EXPORT RegistrationMapperImage : 
  public RegistrationMapper< TImage, TTransformation > 

{

public:
  /**
   * Standard "Self" typedef.
   */
  typedef RegistrationMapper<TImage,TTransformation>  Self;

  /**
   * Standard "Superclass" typedef.
   */
  typedef RegistrationMapper< TImage, TTransformation >  Superclass;

  /** 
   * Smart pointer typedef support 
   */
  typedef SmartPointer<Self>   Pointer;
  typedef SmartPointer<const Self>  ConstPointer;


  /**
   * Typedef of the Point used to represent coordinates
   */
   typedef typename TTransformation::PointType   PointType;


  /**
   * Typedef of the Pixel type
   */
   typedef  typename   TImage::PixelType   PixelType;


  /**
   * Typedef of the image index
   */
   typedef  typename   TImage::IndexType   IndexType;


  /**
   * Typedef of the image region
   */
   typedef  typename   TImage::RegionType   RegionType;


  /**
   * Typedef of the image size
   */
   typedef  typename   TImage::SizeType   SizeType;



public: 

  /**
   * Specify the point for which the image value is wanted
   * this method will throw a MapperException is the mapped
   * point lies outside the image domain
   */
   PixelType Evaluate( const PointType & point ); // throw MapperException


protected:
  RegistrationMapperImage();
  ~RegistrationMapperImage(){};
  RegistrationMapperImage(const Self&) {}
  void operator=(const Self&) {}


};


} // end namespace itk

#ifndef ITK_MANUAL_INSTANTIATION
#include <itkRegistrationMapperImage.txx>
#endif

#endif
{'fraction_non_alphanumeric': 0.13536345776031433, 'fraction_numerical': 0.0015717092337917485, 'mean_word_length': 3.6921658986175117, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1359193', 'n_tokens_mistral': 1488, 'n_tokens_neox': 1352, 'n_words': 450}