ReadFramework
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
LayoutTest.h
Go to the documentation of this file.
1
/*******************************************************************************************************
2
ReadFramework is the basis for modules developed at CVL/TU Wien for the EU project READ.
3
4
Copyright (C) 2016 Markus Diem <diem@caa.tuwien.ac.at>
5
Copyright (C) 2016 Stefan Fiel <fiel@caa.tuwien.ac.at>
6
Copyright (C) 2016 Florian Kleber <kleber@caa.tuwien.ac.at>
7
8
This file is part of ReadFramework.
9
10
ReadFramework is free software: you can redistribute it and/or modify
11
it under the terms of the GNU General Public License as published by
12
the Free Software Foundation, either version 3 of the License, or
13
(at your option) any later version.
14
15
ReadFramework is distributed in the hope that it will be useful,
16
but WITHOUT ANY WARRANTY; without even the implied warranty of
17
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
GNU General Public License for more details.
19
20
You should have received a copy of the GNU General Public License
21
along with this program. If not, see <http://www.gnu.org/licenses/>.
22
23
The READ project has received funding from the European Union’s Horizon 2020
24
research and innovation programme under grant agreement No 674943
25
26
related links:
27
[1] http://www.caa.tuwien.ac.at/cvl/
28
[2] https://transkribus.eu/Transkribus/
29
[3] https://github.com/TUWien/
30
[4] http://nomacs.org
31
*******************************************************************************************************/
32
33
#pragma once
34
35
#pragma warning(push, 0) // no warnings from includes
36
// Qt Includes
37
#pragma warning(pop)
38
39
#include "
TestUtils.h
"
40
41
// Qt defines
42
namespace
cv
{
43
class
Mat;
44
}
45
46
namespace
rdf
{
47
48
class
PageXmlParser;
49
50
// read defines
51
class
BaselineTest
{
52
53
public
:
54
BaselineTest
(
const
TestConfig
&
config
=
TestConfig
());
55
56
bool
baselineTest()
const
;
57
58
protected
:
59
TestConfig
mConfig
;
60
61
bool
layoutToXml(
const
cv::Mat& img,
const
PageXmlParser
&
parser
)
const
;
62
};
63
64
class
SuperPixelTest
{
65
66
public
:
67
SuperPixelTest
(
const
TestConfig
&
config
=
TestConfig
());
68
69
bool
testSuperPixel()
const
;
70
bool
collectFeatures()
const
;
71
bool
train()
const
;
72
bool
eval()
const
;
73
74
protected
:
75
TestConfig
mConfig
;
76
77
bool
load
(cv::Mat& img)
const
;
78
bool
load
(
rdf::PageXmlParser
&
parser
)
const
;
79
};
80
81
82
}
rdf::BaselineTest
Definition:
LayoutTest.h:51
cv
Definition:
Drawer.h:53
rdf::TestConfig
Definition:
TestUtils.h:46
TestUtils.h
DependencyCollector.config
config
Definition:
DependencyCollector.py:271
rdf::PageXmlParser
Definition:
PageParser.h:60
rdf::SuperPixelTest::mConfig
TestConfig mConfig
Definition:
LayoutTest.h:75
rdf::Image::load
DllCoreExport QImage load(const QString &path, bool *ok=0)
Definition:
Image.cpp:152
rdf::BaselineTest::mConfig
TestConfig mConfig
Definition:
LayoutTest.h:59
rdf::SuperPixelTest
Definition:
LayoutTest.h:64
rdf
Definition:
Algorithms.cpp:45
DependencyCollector.parser
parser
Definition:
DependencyCollector.py:216
src
UnitTests
LayoutTest.h
Generated by
1.8.11