<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
 <class>mainForm</class>
 <widget class="QDialog" name="mainForm">
  <property name="geometry">
   <rect>
    <x>0</x>
    <y>0</y>
    <width>705</width>
    <height>567</height>
   </rect>
  </property>
  <property name="windowTitle">
   <string>Contour Vectorizer</string>
  </property>
  <layout class="QVBoxLayout" name="verticalLayout">
   <item>
    <widget class="QTabWidget" name="mainTabWidget">
     <property name="tabShape">
      <enum>QTabWidget::Rounded</enum>
     </property>
     <property name="currentIndex">
      <number>0</number>
     </property>
     <widget class="QWidget" name="imageTab">
      <attribute name="title">
       <string>Image</string>
      </attribute>
      <layout class="QVBoxLayout">
       <property name="spacing">
        <number>6</number>
       </property>
       <property name="leftMargin">
        <number>8</number>
       </property>
       <property name="topMargin">
        <number>8</number>
       </property>
       <property name="rightMargin">
        <number>8</number>
       </property>
       <property name="bottomMargin">
        <number>8</number>
       </property>
       <item>
        <layout class="QHBoxLayout">
         <property name="spacing">
          <number>6</number>
         </property>
         <property name="leftMargin">
          <number>0</number>
         </property>
         <property name="topMargin">
          <number>0</number>
         </property>
         <property name="rightMargin">
          <number>0</number>
         </property>
         <property name="bottomMargin">
          <number>0</number>
         </property>
         <item>
          <widget class="QLabel" name="label_2">
           <property name="text">
            <string>FIR filter</string>
           </property>
          </widget>
         </item>
         <item>
          <widget class="QComboBox" name="firFilterComboBox">
           <item>
            <property name="text">
             <string>Binomic 3x3</string>
            </property>
           </item>
           <item>
            <property name="text">
             <string>Binomic 5x5</string>
            </property>
           </item>
           <item>
            <property name="text">
             <string>Box 3x3</string>
            </property>
           </item>
           <item>
            <property name="text">
             <string>Box 5x5</string>
            </property>
           </item>
          </widget>
         </item>
         <item>
          <widget class="QPushButton" name="applyFIRFilterPushButton">
           <property name="text">
            <string>Apply</string>
           </property>
          </widget>
         </item>
         <item>
          <spacer>
           <property name="orientation">
            <enum>Qt::Horizontal</enum>
           </property>
           <property name="sizeHint" stdset="0">
            <size>
             <width>40</width>
             <height>20</height>
            </size>
           </property>
          </spacer>
         </item>
        </layout>
       </item>
       <item>
        <widget class="cove::ImageView" name="imageView"/>
       </item>
      </layout>
     </widget>
     <widget class="QWidget" name="colorsTab">
      <attribute name="title">
       <string>Colors</string>
      </attribute>
      <layout class="QVBoxLayout">
       <property name="spacing">
        <number>6</number>
       </property>
       <property name="leftMargin">
        <number>8</number>
       </property>
       <property name="topMargin">
        <number>8</number>
       </property>
       <property name="rightMargin">
        <number>8</number>
       </property>
       <property name="bottomMargin">
        <number>8</number>
       </property>
       <item>
        <layout class="QHBoxLayout">
         <property name="spacing">
          <number>6</number>
         </property>
         <property name="leftMargin">
          <number>0</number>
         </property>
         <property name="topMargin">
          <number>0</number>
         </property>
         <property name="rightMargin">
          <number>0</number>
         </property>
         <property name="bottomMargin">
          <number>0</number>
         </property>
         <item>
          <widget class="QLabel" name="textLabel1">
           <property name="text">
            <string>Classify colors into</string>
           </property>
          </widget>
         </item>
         <item>
          <widget class="QSpinBox" name="howManyColorsSpinBox">
           <property name="minimum">
            <number>2</number>
           </property>
           <property name="value">
            <number>8</number>
           </property>
          </widget>
         </item>
         <item>
          <widget class="QLabel" name="textLabel1_2">
           <property name="text">
            <string>groups</string>
           </property>
          </widget>
         </item>
         <item>
          <widget class="QPushButton" name="runClassificationButton">
           <property name="toolTip">
            <string>Run colors classification now.</string>
           </property>
           <property name="text">
            <string>Now</string>
           </property>
           <property name="default">
            <bool>true</bool>
           </property>
          </widget>
         </item>
         <item>
          <spacer>
           <property name="orientation">
            <enum>Qt::Horizontal</enum>
           </property>
           <property name="sizeType">
            <enum>QSizePolicy::Expanding</enum>
           </property>
           <property name="sizeHint" stdset="0">
            <size>
             <width>51</width>
             <height>20</height>
            </size>
           </property>
          </spacer>
         </item>
         <item>
          <widget class="QPushButton" name="classificationOptionsButton">
           <property name="toolTip">
            <string>Set the classification options and parameters.</string>
           </property>
           <property name="text">
            <string>Classification options</string>
           </property>
          </widget>
         </item>
         <item>
          <widget class="QPushButton" name="initialColorsButton">
           <property name="toolTip">
            <string>Set the initial colors - select random colors options or set the predefined ones.</string>
           </property>
           <property name="text">
            <string>Initial colors</string>
           </property>
          </widget>
         </item>
         <item>
          <spacer>
           <property name="orientation">
            <enum>Qt::Horizontal</enum>
           </property>
           <property name="sizeType">
            <enum>QSizePolicy::Expanding</enum>
           </property>
           <property name="sizeHint" stdset="0">
            <size>
             <width>40</width>
             <height>20</height>
            </size>
           </property>
          </spacer>
         </item>
         <item>
          <widget class="QLabel" name="learnQualityLabel">
           <property name="text">
            <string>LQ: -</string>
           </property>
          </widget>
         </item>
        </layout>
       </item>
       <item>
        <widget class="QGroupBox" name="colorButtonsGroup">
         <property name="minimumSize">
          <size>
           <width>0</width>
           <height>100</height>
          </size>
         </property>
         <property name="toolTip">
          <string>Select colors in the image by clicking appropriate color buttons then follow to the Thinning tab.</string>
         </property>
         <property name="title">
          <string>Colors found</string>
         </property>
         <layout class="QGridLayout">
          <property name="leftMargin">
           <number>10</number>
          </property>
          <property name="topMargin">
           <number>10</number>
          </property>
          <property name="rightMargin">
           <number>10</number>
          </property>
          <property name="bottomMargin">
           <number>10</number>
          </property>
          <property name="spacing">
           <number>6</number>
          </property>
         </layout>
        </widget>
       </item>
       <item>
        <widget class="cove::ImageView" name="classifiedColorsView"/>
       </item>
      </layout>
     </widget>
     <widget class="QWidget" name="thinningTab">
      <attribute name="title">
       <string>Thinning</string>
      </attribute>
      <layout class="QVBoxLayout">
       <property name="spacing">
        <number>6</number>
       </property>
       <property name="leftMargin">
        <number>8</number>
       </property>
       <property name="topMargin">
        <number>8</number>
       </property>
       <property name="rightMargin">
        <number>8</number>
       </property>
       <property name="bottomMargin">
        <number>8</number>
       </property>
       <item>
        <layout class="QHBoxLayout">
         <property name="spacing">
          <number>2</number>
         </property>
         <property name="leftMargin">
          <number>0</number>
         </property>
         <property name="topMargin">
          <number>0</number>
         </property>
         <property name="rightMargin">
          <number>0</number>
         </property>
         <property name="bottomMargin">
          <number>0</number>
         </property>
         <item>
          <widget class="QPushButton" name="runErosionButton">
           <property name="toolTip">
            <string>Perform morphological erosion. Removes border pixels of objects in the image.</string>
           </property>
           <property name="text">
            <string>Erode</string>
           </property>
          </widget>
         </item>
         <item>
          <widget class="QPushButton" name="runDilationButton">
           <property name="toolTip">
            <string>Perform morphological dilation. Enlarges objects in the image by addng pixels to its border.</string>
           </property>
           <property name="text">
            <string>Dilate</string>
           </property>
          </widget>
         </item>
         <item>
          <spacer>
           <property name="orientation">
            <enum>Qt::Horizontal</enum>
           </property>
           <property name="sizeType">
            <enum>QSizePolicy::Expanding</enum>
           </property>
           <property name="sizeHint" stdset="0">
            <size>
             <width>100</width>
             <height>23</height>
            </size>
           </property>
          </spacer>
         </item>
         <item>
          <widget class="QPushButton" name="runThinningButton">
           <property name="toolTip">
            <string>Perform Rosenfeld's thinning.</string>
           </property>
           <property name="text">
            <string>Thin lines</string>
           </property>
          </widget>
         </item>
         <item>
          <widget class="QPushButton" name="runPruningButton">
           <property name="toolTip">
            <string>Perform morphological pruning - line endpoint removal.</string>
           </property>
           <property name="text">
            <string>Prune</string>
           </property>
          </widget>
         </item>
         <item>
          <spacer>
           <property name="orientation">
            <enum>Qt::Horizontal</enum>
           </property>
           <property name="sizeType">
            <enum>QSizePolicy::Expanding</enum>
           </property>
           <property name="sizeHint" stdset="0">
            <size>
             <width>150</width>
             <height>20</height>
            </size>
           </property>
          </spacer>
         </item>
         <item>
          <widget class="QPushButton" name="bwImageHistoryBack">
           <property name="enabled">
            <bool>false</bool>
           </property>
           <property name="toolTip">
            <string>Undo last operation.</string>
           </property>
           <property name="text">
            <string>Undo</string>
           </property>
          </widget>
         </item>
         <item>
          <widget class="QPushButton" name="bwImageHistoryForward">
           <property name="enabled">
            <bool>false</bool>
           </property>
           <property name="toolTip">
            <string>Redo last operation.</string>
           </property>
           <property name="text">
            <string>Redo</string>
           </property>
          </widget>
         </item>
         <item>
          <widget class="QPushButton" name="bwImageSaveButton">
           <property name="toolTip">
            <string>Save currently viewed image to a file.</string>
           </property>
           <property name="text">
            <string>Save B/W image</string>
           </property>
          </widget>
         </item>
        </layout>
       </item>
       <item>
        <layout class="QHBoxLayout">
         <property name="spacing">
          <number>2</number>
         </property>
         <property name="leftMargin">
          <number>0</number>
         </property>
         <property name="topMargin">
          <number>0</number>
         </property>
         <property name="rightMargin">
          <number>0</number>
         </property>
         <property name="bottomMargin">
          <number>0</number>
         </property>
         <item>
          <widget class="QPushButton" name="setVectorizationOptionsButton">
           <property name="toolTip">
            <string>Set joining and speckle size options.</string>
           </property>
           <property name="text">
            <string>Vectorization options</string>
           </property>
           <property name="flat">
            <bool>false</bool>
           </property>
          </widget>
         </item>
         <item>
          <widget class="QPushButton" name="createVectorsButton">
           <property name="toolTip">
            <string>Finds straight lines in the image. Do &quot;Thin lines&quot; before this.</string>
           </property>
           <property name="text">
            <string>Create vectors</string>
           </property>
           <property name="flat">
            <bool>false</bool>
           </property>
          </widget>
         </item>
         <item>
          <spacer>
           <property name="orientation">
            <enum>Qt::Horizontal</enum>
           </property>
           <property name="sizeHint" stdset="0">
            <size>
             <width>40</width>
             <height>20</height>
            </size>
           </property>
          </spacer>
         </item>
         <item>
          <widget class="OpenOrienteering::SymbolDropDown" name="symbolComboBox"/>
         </item>
         <item>
          <widget class="QPushButton" name="saveVectorsButton">
           <property name="enabled">
            <bool>false</bool>
           </property>
           <property name="toolTip">
            <string>Add the current vector lines to the map.</string>
           </property>
           <property name="text">
            <string>Add to map</string>
           </property>
           <property name="flat">
            <bool>false</bool>
           </property>
          </widget>
         </item>
        </layout>
       </item>
       <item>
        <widget class="cove::PolygonsView" name="bwImageView"/>
       </item>
      </layout>
     </widget>
    </widget>
   </item>
  </layout>
 </widget>
 <customwidgets>
  <customwidget>
   <class>cove::ImageView</class>
   <extends>QScrollArea</extends>
   <header>app/ImageView.h</header>
   <container>1</container>
  </customwidget>
  <customwidget>
   <class>cove::PolygonsView</class>
   <extends>QScrollArea</extends>
   <header>app/PolygonsView.h</header>
   <container>1</container>
  </customwidget>
  <customwidget>
   <class>OpenOrienteering::SymbolDropDown</class>
   <extends>QComboBox</extends>
   <header>gui/widgets/symbol_dropdown.h</header>
  </customwidget>
 </customwidgets>
 <resources/>
 <connections/>
</ui>
