Horus Doc || C++ Reference || Class Overview   Pixels   Images   Detector   Geometry   Registry || Doxygen's quick Index  

HxKerNgbNormCorrelation.h

00001 /*
00002  *  Copyright (c) 2000, University of Amsterdam, The Netherlands.
00003  *  All rights reserved.
00004  *
00005  *
00006  *  Author(s):
00007  *  Dennis Koelma (koelma@wins.uva.nl)
00008  *  Edo Poll (poll@wins.uva.nl)
00009  */
00010 
00011 #ifndef HxKerNgbNormCorrelation_h
00012 #define HxKerNgbNormCorrelation_h
00013 
00014 
00028 template <class ArithT, class ResultT>
00029 class HxKerNgbNormCorrelation
00030 {
00031 public:
00032 
00034     typedef HxTagLoop           IteratorCategory;
00035 
00037     typedef HxTag2Phase         PhaseCategory;
00038 
00039 
00041                         HxKerNgbNormCorrelation(HxTagList& tags);
00042 
00044                         ~HxKerNgbNormCorrelation();
00045 
00047     HxSizes             size();
00048 
00050     void                init(int ix, int iy, ArithT imVal);
00051 
00053     void                next(int x, int y, ArithT pixV, ArithT maskV);
00054 
00056     void                init2(int ix, int iy, ArithT imVal);
00057 
00059     void                next2(int x, int y, ArithT pixV, ArithT maskV);
00060 
00062     ResultT             result();
00063 
00065     static HxString     className();
00066 
00067 private:
00068     int                 _num;
00069     ResultT             _fBar;
00070     ResultT             _wBar;
00071     ResultT             _sumFW;
00072     ResultT             _sumFSqr;
00073     ResultT             _sumWSqr;
00074 
00075     HxSizes             _ngbSize;
00076 };
00077 
00078 #ifdef INC_TEMPLATE_SRC
00079 #include "HxKerNgbNormCorrelation.c"
00080 #endif
00081 
00082 #endif

Generated on Mon Jan 27 15:48:46 2003 for C++Reference by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001