[6fbcca]: contrib / tbl / vipl / Templates / vipl_filter_2d+vil_image.vil_image.double.uchar-.cxx  Maximize  Restore  History

Download this file

36 lines (27 with data), 1.4 kB

 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
#include <vil/vil_image.h>
#define FILTER_IMPTR_DEC_REFCOUNT(v) ((v)=0)
#define FILTER_IMPTR_INC_REFCOUNT(v)
#define FILTER_KERNPTR_DEC_REFCOUNT(v)
// this must be here for filter-2d to work
#include <vipl/section/vipl_section_container.h>
#include <vipl/section/vipl_section_iterator.h>
vipl_section_container<double>*
vipl_filterable_section_container_generator(const vil_image& im, double*)
{
vipl_section_container<double> *rtn = new vipl_section_container<double>((vipl_section_container<double>*)0);
rtn->put_imgptr((void*) &im);
rtn->ref_imgsz()[0] = im.width();
rtn->ref_imgsz()[1] = im.height();
rtn->ref_secsz()[0] = im.width(); // should actually be block_width for block-buffered images
rtn->ref_secsz()[1] = im.height(); // should actually be block_height for block-buffered images
return rtn;
}
vipl_section_container<unsigned char>*
vipl_filterable_section_container_generator(const vil_image& im, unsigned char*);
#include <vcl/vcl_compiler.h> // for the definition of VCL_DFL_TMPL_ARG
#include <vipl/filter/vipl_filter.h>
#include <vipl/filter/vipl_filter.txx>
template class vipl_filter<vil_image, vil_image, double, unsigned char, 2 VCL_DFL_TMPL_ARG(vipl_trivial_pixeliter)>;
#include <vipl/filter/vipl_filter_2d.h>
#include <vipl/filter/vipl_filter_2d.txx>
template class vipl_filter_2d<vil_image, vil_image, double, unsigned char VCL_DFL_TMPL_ARG(vipl_trivial_pixeliter)>;