head	1.3;
access;
symbols
	r0_10:1.3
	Eglin_alpha_1:1.3;
locks; strict;
comment	@// @;


1.3
date	93.05.27.11.22.25;	author thoth;	state Exp;
branches;
next	1.2;

1.2
date	93.04.08.13.19.13;	author thoth;	state Exp;
branches;
next	1.1;

1.1
date	93.03.18.11.05.56;	author thoth;	state Exp;
branches;
next	;


desc
@The implementation of a translation invariant template.
@


1.3
log
@Copyright Notices
@
text
@// Emacs: -*- C++ -*-

//
//	Copyright 1993, Center for Computer Vision and Visualization,
//	University of Florida.  All rights reserved.
//


//
// $Log:	InvariantDT.h,v $
// Revision 1.2  93/04/08  13:19:13  thoth
// Templates are now separate from images.
// restriction to a pointset is now a virtual method.
// 
// Revision 1.1  93/03/18  11:05:56  thoth
// Initial revision
// 

#ifndef InvariantDT_h_
#define InvariantDT_h_

#include "BaseDT.h"

template <class I>
class IA_InvariantDT: public IA_BaseDT<I> {
  private:
    static char dummy;

  public:
    I	value;
  public:
    IA_InvariantDT(const IA_IntPointSet &ps, const I &v)
    :IA_BaseDT<I>(ps), value(v) {}

    int extensivep() const { return 0; }

    I operator()(const IA_IntPoint &/*p*/) const { return value/*.xlate(p)*/; }
    ostream &print_this(ostream &) const;

    static IA_DiscreteImageType s_type() { return &dummy; }
    IA_DiscreteImageType type() const { return &dummy; }

    IA_BaseDT<I> *restricted_to(const IA_IntPointSet &ps) const;
};

#endif
@


1.2
log
@Templates are now separate from images.
restriction to a pointset is now a virtual method.
@
text
@d4 6
d11 4
@


1.1
log
@Initial revision
@
text
@d4 4
a7 1
// $Log:	BaseDI.h,v $
d12 1
a12 1
#include "BaseDI.h"
d15 1
a15 1
class IA_InvariantDT: public IA_BaseDI<I> {
d23 1
a23 1
    :IA_BaseDI<I>(ps), value(v) {}
d32 2
@
