123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- /*********************************************************************/
- /* */
- /* Copyright 2022-2023 Rémi Synave - remi.synave@univ-littoral.fr */
- /* */
- /* This file is part of DSL. */
- /* This software uses Qt to build the Graphical User Interface */
- /* https://www.qt.io/ */
- /* */
- /* DSL is free software: you can redistribute it and/or modify */
- /* it under the terms of the GNU General Public License as published */
- /* by the Free Software Foundation, either version 3 of the License, */
- /* or (at your option) any later version. */
- /* */
- /* DSL is distributed in the hope that it will be useful, */
- /* but WITHOUT ANY WARRANTY; without even the implied warranty of */
- /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
- /* GNU General Public License for more details. */
- /* */
- /* You should have received a copy of the GNU General Public License */
- /* along with DSL. If not, see <http://www.gnu.org/licenses/>. */
- /* */
- /*********************************************************************/
- #ifndef SLLIST_HPP
- #define SLLIST_HPP
- #include <QPoint>
- #include <QImage>
- #include <QList>
- #include "StrengthLine.hpp"
- class SLList
- {
- private:
- QList < StrengthLine* > list;
- public:
- SLList (const char* file);
- SLList (std::string file) : SLList(file.c_str()){}
- SLList (QString file) : SLList(file.toStdString()){}
- inline unsigned int size() const{return list.size();}
- inline StrengthLine* get(unsigned int i) const{return list.at(i);}
- std::pair<double, int> distance_avg(SLList*, QImage*) const;
- static std::pair<double, int> distance(SLList*, SLList*, QImage*);
- // std::pair<double, int> distance_hausdorff(SLList*, QImage*) const;
- };
- #endif
|