00001 // -*- c-basic-offset: 4 -*- 00008 /* This is free software; you can redistribute it and/or 00009 * modify it under the terms of the GNU General Public 00010 * License as published by the Free Software Foundation; either 00011 * version 2 of the License, or (at your option) any later version. 00012 * 00013 * This software is distributed in the hope that it will be useful, 00014 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00016 * Lesser General Public License for more details. 00017 * 00018 * You should have received a copy of the GNU General Public 00019 * License along with this software; if not, write to the Free Software 00020 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00021 * 00022 */ 00023 00024 #ifndef LINESTYPES_H 00025 #define LINESTYPES_H 00026 #include <vector> 00027 #include <vigra/diff2d.hxx> 00028 00029 namespace HuginLines 00030 { 00031 00033 enum LineStatus 00034 { 00035 valid_line=0, 00036 valid_line_disabled, 00037 bad_length, 00038 bad_orientation, 00039 bad_curvature 00040 }; 00041 00043 struct SingleLine 00044 { 00045 std::vector<vigra::Point2D> line; 00046 LineStatus status; 00047 }; 00048 00050 typedef std::vector<SingleLine> Lines; 00051 00052 } //namespace 00053 #endif
1.3.9.1