aimstil  5.0.5
convolution.h
Go to the documentation of this file.
1 #ifndef TIL_CONVOLUTION_H
2 #define TIL_CONVOLUTION_H
3 
4 // local includes
5 
6 #include "til/til_common.h"
7 
8 namespace til
9 {
10 
11  // NOTE: this is probably not the way to go.
12  // Would rather define a Action class to do point-wise correlation
13  // Thus I could be able to have convolution method independant of
14  // say boundary conditions
15 
16 
21  template < typename Extrapolation, typename TImageIn, typename TImageMask, typename TImageOut >
23  const TImageIn &im,
24  const TImageMask &mask,
25  TImageOut &out
26  )
27  {
28  typename TImageIn::ConstVolumetricIterator iIm(im);
29  typename TImageMask::ConstVolumetricIterator iMask(mask);
30  typename TImageOut::ConstVolumetricIterator iOut(out);
31 
32  for (; !iIm.isAtEnd(); ++iIm, ++iOut)
33  {
34  }
35  }
36 
42  template < typename Extrapolation, typename TImageIn, typename TImageMask, typename TImageOut >
44  const TImageIn &im,
45  const TImageMask &mask,
46  TImageOut &out)
47  {
48  }
49 
50 } // namespace
51 
52 
53 #endif
54 
Belongs to package Box Do not include directly, include til/Box.h instead.
Definition: Accumulator.h:10
General macros, definitions and functions.
void correlationSN(const TImageIn &im, const TImageMask &mask, TImageOut &out)
So-called &#39;Symmetric Neighbor&#39; correlation.
Definition: convolution.h:43
void correlation(const TImageIn &im, const TImageMask &mask, TImageOut &out)
Correlation between an image and a mask.
Definition: convolution.h:22