iRoCS Toolbox
1.1.0
src
libsvmtl
svt_check
RequireSVMKernelUpdateCache.hh
Go to the documentation of this file.
1
/**************************************************************************
2
*
3
* Copyright (C) 2004-2015 Olaf Ronneberger, Florian Pigorsch, Jörg Mechnich,
4
* Thorsten Falk
5
*
6
* Image Analysis Lab, University of Freiburg, Germany
7
*
8
* This program is free software; you can redistribute it and/or modify
9
* it under the terms of the GNU General Public License as published by
10
* the Free Software Foundation; either version 3 of the License, or
11
* (at your option) any later version.
12
*
13
* This program is distributed in the hope that it will be useful,
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
* GNU General Public License for more details.
17
*
18
* You should have received a copy of the GNU General Public License
19
* along with this program; if not, write to the Free Software Foundation,
20
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21
*
22
**************************************************************************/
23
24
/**************************************************************************
25
** Title:
26
** $RCSfile$
27
** $Revision: 590 $$Name$
28
** $Date: 2005-01-28 15:29:34 +0100 (Fri, 28 Jan 2005) $
29
** Copyright: GPL $Author: fehr $
30
** Description:
31
**
32
**
33
**
34
**-------------------------------------------------------------------------
35
**
36
** $Log$
37
** Revision 1.4 2005/01/28 14:29:34 fehr
38
** some more include bugfixes
39
**
40
** Revision 1.3 2005/01/28 14:03:30 fehr
41
** some include bugfixing for external library use
42
**
43
** Revision 1.2 2004/09/03 09:13:04 ronneber
44
** - adapted to new updateCache() interface of Kernels
45
**
46
** Revision 1.1 2004/08/26 08:36:59 ronneber
47
** initital import
48
**
49
**
50
**
51
**************************************************************************/
52
#ifndef REQUIRESVMKERNELUPDATECACHE_HH
53
#define REQUIRESVMKERNELUPDATECACHE_HH
54
55
#ifdef HAVE_CONFIG_H
56
#include <config.hh>
57
#endif
58
59
#include "
RequireHelpers.hh
"
60
#include "../ProgressReporter.hh"
61
#include "../DirectAccessor.hh"
62
#include "../DereferencingAccessor.hh"
63
64
namespace
svt_check
65
{
66
67
/*======================================================================*/
72
/*======================================================================*/
73
template
<
typename
SVM,
typename
FV>
74
class
RequireSVMKernelUpdateCache
75
{
76
public
:
77
~RequireSVMKernelUpdateCache
()
78
{
79
if
(
false
)
80
{
81
SVM s;
82
std::vector<FV> v;
83
svt::ProgressReporter
pr;
84
s.kernel().updateCache( v.begin(), v.end(),
85
svt::DirectAccessor
(), &pr);
86
std::vector<FV*> v2;
87
s.kernel().updateCache( v2.begin(), v2.end(),
88
svt::DereferencingAccessor
(), &pr);
89
}
90
}
91
};
92
}
93
94
95
#endif
svt::DereferencingAccessor
Definition:
DereferencingAccessor.hh:58
svt_check::RequireSVMKernelUpdateCache
Ensure that SVM provides a kernel().updateCache( fv_begin, fv_end, progress) method.
Definition:
RequireSVMKernelUpdateCache.hh:74
svt::DirectAccessor
Definition:
DirectAccessor.hh:57
svt_check::RequireSVMKernelUpdateCache::~RequireSVMKernelUpdateCache
~RequireSVMKernelUpdateCache()
Definition:
RequireSVMKernelUpdateCache.hh:77
svt::ProgressReporter
Definition:
ProgressReporter.hh:83
RequireHelpers.hh
svt_check
Definition:
MinimalFeatureVector.hh:51
Generated on Wed Jul 31 2019 12:33:03 for iRoCS Toolbox by
1.8.13