/*********************************************************************/
/* */
/* 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 . */
/* */
/*********************************************************************/
#ifndef SLLIST_HPP
#define SLLIST_HPP
#include
#include
#include
#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 distance_avg(SLList*, QImage*) const;
static std::pair distance(SLList*, SLList*, QImage*);
// std::pair distance_hausdorff(SLList*, QImage*) const;
};
#endif