The Fib multimedia system
Fib is a system for storing multimedia data (like images or films).
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
nCorrectPoints.h
Go to the documentation of this file.
1 /**
2  * @file nCorrectPoints
3  * file name: nCorrectPoints.h
4  * @author Betti Oesterholz
5  * @date 18.10.2010
6  * @mail webmaster@BioKom.info
7  *
8  * System: C++
9  *
10  * This header specifies functions for correcting points in fib -objects.
11  * Copyright (C) @c GPL3 2010 Betti Oesterholz
12  *
13  * This program is free software: you can redistribute it and/or modify
14  * it under the terms of the GNU General Public License (GPL) as
15  * published by the Free Software Foundation, either version 3 of the
16  * License, or any later version.
17  *
18  * This program is distributed in the hope that it will be useful,
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21  * GNU Lesser General Public License for more details.
22  *
23  * You should have received a copy of the GNU General Public License
24  * along with this program. If not, see <http://www.gnu.org/licenses/>.
25  *
26  *
27  * This header specifies functions for correcting points in fib -objects.
28  */
29 /*
30 History:
31 18.10.2010 Oesterholz created
32 */
33 
34 #ifndef ___N_CORRECT_POINTS_H__
35 #define ___N_CORRECT_POINTS_H__
36 
37 #include "version.h"
38 
39 #include "cFibElement.h"
40 #include "cList.h"
41 
42 
43 namespace fib{
44 
45 namespace algorithms{
46 
47 namespace nCorrectFibObject{
48 
49 namespace nCorrectPoints{
50 
51 
52  /**
53  * This function corrects the wron points in pToCorrectFibObject and
54  * returns corrected fib -objects.
55  * For every entry in this list liDistancesCountedWrong a corrected
56  * fib -object is given back.
57  * Every point in the evalued pToCorrectFibObject, wich properties
58  * have a greater distance as the n'th entry, in the sorted and
59  * uniqe liDistancesCountedWrong, will be included in the n'th
60  * returned fib -object.
61  * This function will ignore points, wich are background point in both
62  * the given list liPointWithPropertiesOrginal and fib -object
63  * pToCorrectFibObject.
64  *
65  * @param liPointWithPropertiesOrginal a list with points and ther
66  * properties, wich are correct
67  * @param pToCorrectFibObject the fib -object to correct
68  * @param liDistancesCountedWrong the list of distances of properties,
69  * till which a point is not wrong;
70  * for every entry in this list a corrected fib -object is given back;
71  * every point in the evalued pToCorrectFibObject, wich properties
72  * have a greater distance as the n'th entry, in the sorted and
73  * uniqe liDistancesCountedWrong, will be included in the n'th
74  * returned fib -object
75  * @return a list with the corrected fib -objects;
76  * the first element of the returned list is the changed pToCorrectFibObject
77  */
78  list<cFibElement *> replaceWrongPoints(
79  const list< pair< cVectorPosition, list< cVectorProperty > > > & liPointWithPropertiesOrginal,
80  cFibElement * pToCorrectFibObject, list<doubleFib> liDistancesCountedWrong );
81 
82 
83 
84 };//end namespace nCorrectPoints
85 };//end namespace nCorrectFibObject
86 };//end namespace algorithms
87 };//end namespace fib
88 
89 
90 #endif //___N_CORRECT_POINTS_H__