Boost logo

Boost-Commit :

From: stephan.diederich_at_[hidden]
Date: 2008-08-11 17:25:46


Author: sdiederich
Date: 2008-08-11 17:25:44 EDT (Mon, 11 Aug 2008)
New Revision: 48090
URL: http://svn.boost.org/trac/boost/changeset/48090

Log:
-ported to qt4
-added cmake build files
-removed old kdevelop file
-adopted sink-source color mapping to changes done in rev37167

Added:
   sandbox/SOC/2006/mincut-maxflow/trunk/apps/segmentation/CMakeLists.txt (contents, props changed)
Removed:
   sandbox/SOC/2006/mincut-maxflow/trunk/apps/segmentation/segmentation.kdevelop
   sandbox/SOC/2006/mincut-maxflow/trunk/apps/segmentation/src/segmentationbase.ui.h
Text files modified:
   sandbox/SOC/2006/mincut-maxflow/trunk/apps/segmentation/src/graphboostkolmogorov.h | 4
   sandbox/SOC/2006/mincut-maxflow/trunk/apps/segmentation/src/segmentation.cpp | 79 +-
   sandbox/SOC/2006/mincut-maxflow/trunk/apps/segmentation/src/segmentation.h | 25
   sandbox/SOC/2006/mincut-maxflow/trunk/apps/segmentation/src/segmentationbase.ui | 1255 ++++++++++++++++++---------------------
   4 files changed, 627 insertions(+), 736 deletions(-)

Added: sandbox/SOC/2006/mincut-maxflow/trunk/apps/segmentation/CMakeLists.txt
==============================================================================
--- (empty file)
+++ sandbox/SOC/2006/mincut-maxflow/trunk/apps/segmentation/CMakeLists.txt 2008-08-11 17:25:44 EDT (Mon, 11 Aug 2008)
@@ -0,0 +1,25 @@
+cmake_minimum_required(VERSION 2.6)
+
+project(segmentation)
+
+find_package(Boost)
+
+find_package(Qt4 REQUIRED)
+SET(QT_USE_QT3SUPPORT true)
+INCLUDE(${QT_USE_FILE})
+
+
+
+QT4_WRAP_UI(segmentation_UIS_H src/segmentationbase.ui)
+include_directories( ${CMAKE_CURRENT_BINARY_DIR} src)
+
+QT4_WRAP_CPP(segmentation_MOC_SRCS src/segmentation.h)
+
+
+ADD_EXECUTABLE(segmentation
+ src/main.cpp src/graphcut.cpp src/segmentation.cpp
+ src/external/freeimpl/freegraph.cpp
+ src/external/kolmo_maxflow/adjacency_list/graph.cpp src/external/kolmo_maxflow/adjacency_list/maxflow.cpp
+ ${segmentation_MOC_SRCS} ${segmentation_UIS_H})
+
+TARGET_LINK_LIBRARIES(segmentation ${QT_LIBRARIES})

Deleted: sandbox/SOC/2006/mincut-maxflow/trunk/apps/segmentation/segmentation.kdevelop
==============================================================================
--- sandbox/SOC/2006/mincut-maxflow/trunk/apps/segmentation/segmentation.kdevelop 2008-08-11 17:25:44 EDT (Mon, 11 Aug 2008)
+++ (empty file)
@@ -1,193 +0,0 @@
-<?xml version = '1.0'?>
-<kdevelop>
- <general>
- <author>Stephan Diederich</author>
- <email>S.Diederich_at_[hidden]</email>
- <version>$VERSION$</version>
- <projectmanagement>KDevCustomProject</projectmanagement>
- <primarylanguage>C++</primarylanguage>
- <ignoreparts/>
- <projectname>segmentation</projectname>
- <projectdirectory>.</projectdirectory>
- <absoluteprojectpath>false</absoluteprojectpath>
- <description/>
- <defaultencoding/>
- <versioncontrol/>
- </general>
- <kdevcustomproject>
- <run>
- <mainprogram>bin/gcc/debug/segmentation</mainprogram>
- <directoryradio>build</directoryradio>
- <customdirectory>/</customdirectory>
- <programargs/>
- <terminal>false</terminal>
- <autocompile>true</autocompile>
- <envvars>
- <envvar value="profile" name="CPUPROFILE" />
- <envvar value="500" name="PROFILEFREQUENCY" />
- </envvars>
- </run>
- <build>
- <buildtool>make</buildtool>
- <builddir/>
- </build>
- <make>
- <abortonerror>true</abortonerror>
- <numberofjobs>1</numberofjobs>
- <prio>0</prio>
- <dontact>false</dontact>
- <makebin>bjam --v2 debug</makebin>
- <defaulttarget/>
- <makeoptions/>
- <selectedenvironment>default</selectedenvironment>
- <environments>
- <default>
- <envvar value="/home/diederich/src/boost_1_33_1" name="BOOST_ROOT" />
- <envvar value="optimization=speed" name="gaga" />
- </default>
- </environments>
- </make>
- </kdevcustomproject>
- <kdevdebugger>
- <general>
- <dbgshell/>
- <programargs/>
- <gdbpath/>
- <configGdbScript/>
- <runShellScript/>
- <runGdbScript/>
- <breakonloadinglibs>true</breakonloadinglibs>
- <separatetty>false</separatetty>
- <floatingtoolbar>false</floatingtoolbar>
- </general>
- <display>
- <staticmembers>false</staticmembers>
- <demanglenames>true</demanglenames>
- <outputradix>10</outputradix>
- </display>
- </kdevdebugger>
- <kdevdoctreeview>
- <ignoretocs>
- <toc>ada</toc>
- <toc>ada_bugs_gcc</toc>
- <toc>bash</toc>
- <toc>bash_bugs</toc>
- <toc>clanlib</toc>
- <toc>fortran_bugs_gcc</toc>
- <toc>gnome1</toc>
- <toc>gnustep</toc>
- <toc>gtk</toc>
- <toc>gtk_bugs</toc>
- <toc>haskell</toc>
- <toc>haskell_bugs_ghc</toc>
- <toc>java_bugs_gcc</toc>
- <toc>java_bugs_sun</toc>
- <toc>kde2book</toc>
- <toc>opengl</toc>
- <toc>pascal_bugs_fp</toc>
- <toc>php</toc>
- <toc>php_bugs</toc>
- <toc>perl</toc>
- <toc>perl_bugs</toc>
- <toc>python</toc>
- <toc>python_bugs</toc>
- <toc>qt-kdev3</toc>
- <toc>ruby</toc>
- <toc>ruby_bugs</toc>
- <toc>sdl</toc>
- <toc>sw</toc>
- <toc>w3c-dom-level2-html</toc>
- <toc>w3c-svg</toc>
- <toc>w3c-uaag10</toc>
- <toc>wxwidgets_bugs</toc>
- </ignoretocs>
- <ignoreqt_xml>
- <toc>Guide to the Qt Translation Tools</toc>
- <toc>Qt Assistant Manual</toc>
- <toc>Qt Designer Manual</toc>
- <toc>Qt Reference Documentation</toc>
- <toc>qmake User Guide</toc>
- </ignoreqt_xml>
- <ignoredoxygen>
- <toc>KDE Libraries (Doxygen)</toc>
- </ignoredoxygen>
- </kdevdoctreeview>
- <kdevfilecreate>
- <filetypes/>
- <useglobaltypes>
- <type ext="ui" />
- <type ext="cpp" />
- <type ext="h" />
- </useglobaltypes>
- </kdevfilecreate>
- <cppsupportpart>
- <filetemplates>
- <interfacesuffix>.h</interfacesuffix>
- <implementationsuffix>.cpp</implementationsuffix>
- </filetemplates>
- </cppsupportpart>
- <kdevcppsupport>
- <qt>
- <used>true</used>
- <version>3</version>
- <root>/usr/qt/3</root>
- </qt>
- <codecompletion>
- <includeGlobalFunctions>true</includeGlobalFunctions>
- <includeTypes>true</includeTypes>
- <includeEnums>true</includeEnums>
- <includeTypedefs>true</includeTypedefs>
- <automaticCodeCompletion>true</automaticCodeCompletion>
- <automaticArgumentsHint>true</automaticArgumentsHint>
- <automaticHeaderCompletion>true</automaticHeaderCompletion>
- <codeCompletionDelay>250</codeCompletionDelay>
- <argumentsHintDelay>400</argumentsHintDelay>
- <headerCompletionDelay>250</headerCompletionDelay>
- <showOnlyAccessibleItems>false</showOnlyAccessibleItems>
- <completionBoxItemOrder>0</completionBoxItemOrder>
- <howEvaluationContextMenu>true</howEvaluationContextMenu>
- <showCommentWithArgumentHint>true</showCommentWithArgumentHint>
- <statusBarTypeEvaluation>false</statusBarTypeEvaluation>
- <namespaceAliases>std=_GLIBCXX_STD</namespaceAliases>
- <processPrimaryTypes>true</processPrimaryTypes>
- <processFunctionArguments>false</processFunctionArguments>
- </codecompletion>
- <creategettersetter>
- <prefixGet/>
- <prefixSet>set</prefixSet>
- <prefixVariable>m_,_</prefixVariable>
- <parameterName>theValue</parameterName>
- <inlineGet>false</inlineGet>
- <inlineSet>false</inlineSet>
- </creategettersetter>
- <splitheadersource>
- <enabled>false</enabled>
- <synchronize>true</synchronize>
- <orientation>Vertical</orientation>
- </splitheadersource>
- <references/>
- </kdevcppsupport>
- <kdevfileview>
- <tree>
- <hidepatterns>*.o,*.lo,CVS</hidepatterns>
- <hidenonprojectfiles>false</hidenonprojectfiles>
- <showvcsfields>false</showvcsfields>
- </tree>
- <groups>
- <hidenonprojectfiles>false</hidenonprojectfiles>
- <hidenonlocation>false</hidenonlocation>
- </groups>
- </kdevfileview>
- <kdevdocumentation>
- <projectdoc>
- <docsystem/>
- <docurl/>
- <usermanualurl/>
- </projectdoc>
- </kdevdocumentation>
- <ctagspart>
- <customArguments/>
- <customTagfilePath>/home/diederich/projects/boost.soc/svnlocal/apps/segmentation/tags</customTagfilePath>
- <activeTagsFiles/>
- </ctagspart>
-</kdevelop>

Modified: sandbox/SOC/2006/mincut-maxflow/trunk/apps/segmentation/src/graphboostkolmogorov.h
==============================================================================
--- sandbox/SOC/2006/mincut-maxflow/trunk/apps/segmentation/src/graphboostkolmogorov.h (original)
+++ sandbox/SOC/2006/mincut-maxflow/trunk/apps/segmentation/src/graphboostkolmogorov.h 2008-08-11 17:25:44 EDT (Mon, 11 Aug 2008)
@@ -71,8 +71,8 @@
                 
                 virtual eSegment what_segment(int f_node) const {
         if(m_segment[f_node] == boost::white_color)
- return GraphBase::SOURCE;
- return GraphBase::SINK;
+ return GraphBase::SINK;
+ return GraphBase::SOURCE;
       }
         
         private:

Modified: sandbox/SOC/2006/mincut-maxflow/trunk/apps/segmentation/src/segmentation.cpp
==============================================================================
--- sandbox/SOC/2006/mincut-maxflow/trunk/apps/segmentation/src/segmentation.cpp (original)
+++ sandbox/SOC/2006/mincut-maxflow/trunk/apps/segmentation/src/segmentation.cpp 2008-08-11 17:25:44 EDT (Mon, 11 Aug 2008)
@@ -26,33 +26,46 @@
 #include <qpixmap.h>
 #include <qpushbutton.h>
 #include <qspinbox.h>
-#include <qfiledialog.h>
-#include <qtextedit.h>
+#include <q3filedialog.h>
+#include <q3textedit.h>
 #include <qtabwidget.h>
 #include <qmenubar.h>
 #include <qcombobox.h>
 #include <qdatetime.h>
 #include <qevent.h>
+//Added by qt3to4:
+#include <QWheelEvent>
+#include <QMouseEvent>
+#include "ui_segmentationbase.h"
 using namespace std;
 // using namespace boost;
 
-Segmentation::Segmentation(QWidget* parent, const char* name, WFlags fl)
- : SegmentationBase(parent,name,fl),m_huePenalty(15),m_similarityWeight(5),m_neighborhoodWeight(500),m_backgroundDrawingEnabled(false),m_foregroundDrawingEnabled(false)
+Segmentation::Segmentation(QWidget* parent, const char* name, Qt::WFlags fl)
+ : Q3MainWindow(), mp_ui(new Ui::SegmentationBase), m_huePenalty(15),m_similarityWeight(5),m_neighborhoodWeight(500),m_backgroundDrawingEnabled(false),m_foregroundDrawingEnabled(false)
 {
- connect(mp_buttonSegment,SIGNAL(clicked()),this,SLOT(segment()));
+ mp_ui->setupUi(this);
 
- mp_spinHuePenalty->setValue(m_huePenalty);
- connect(mp_spinHuePenalty,SIGNAL(valueChanged(int)),this,SLOT(hueSpinBoxChanged(int)));
+ //connect the menubar
+ connect(mp_ui->fileOpenImageAction,SIGNAL(activated()),this,SLOT(fileOpenImage()));
+ connect(mp_ui->fileOpenMaskAction,SIGNAL(activated()),this,SLOT(fileOpenMask()));
+ connect(mp_ui->fileNewMaskAction,SIGNAL(activated()),this,SLOT(fileNewMask()));
+ connect(mp_ui->fileSaveAsActionss,SIGNAL(activated()),this,SLOT(fileSaveAs()));
+ connect(mp_ui->optionsStore_problem_as_DIMACSAction,SIGNAL(toggled(bool)),this,SLOT(storeProblemAsDimacsFile(bool)));
+
+
+ connect(mp_ui->mp_buttonSegment,SIGNAL(clicked()),this,SLOT(segment()));
+ mp_ui->mp_spinHuePenalty->setValue(m_huePenalty);
+ connect(mp_ui->mp_spinHuePenalty,SIGNAL(valueChanged(int)),this,SLOT(hueSpinBoxChanged(int)));
         
- mp_spinNeighborhoodWeight->setValue((int)m_neighborhoodWeight);
- connect(mp_spinNeighborhoodWeight,SIGNAL(valueChanged(int)),this,SLOT(neighborhoodWeightSpinBoxChanged(int)));
+ mp_ui->mp_spinNeighborhoodWeight->setValue((int)m_neighborhoodWeight);
+ connect(mp_ui->mp_spinNeighborhoodWeight,SIGNAL(valueChanged(int)),this,SLOT(neighborhoodWeightSpinBoxChanged(int)));
         
- mp_spinSimilarityWeight->setValue((int)m_similarityWeight);
- connect(mp_spinSimilarityWeight,SIGNAL(valueChanged(int)),this,SLOT(similarityWeightSpinBoxChanged(int)));
+ mp_ui->mp_spinSimilarityWeight->setValue((int)m_similarityWeight);
+ connect(mp_ui->mp_spinSimilarityWeight,SIGNAL(valueChanged(int)),this,SLOT(similarityWeightSpinBoxChanged(int)));
         
         //init the 2 image-showing qlabes with empty pixmaps
- mp_labelOrig->setPixmap(m_origPixmap);
- mp_labelSegmented->setPixmap(m_segmentedPixmap);
+ mp_ui->mp_labelOrig->setPixmap(m_origPixmap);
+ mp_ui->mp_labelSegmented->setPixmap(m_segmentedPixmap);
         
         update();
 }
@@ -64,7 +77,7 @@
 
 void Segmentation::fileOpenImage()
 {
- QString s = QFileDialog::getOpenFileName(
+ QString s = Q3FileDialog::getOpenFileName(
                     "data/images",
                     "Images (*.png)",
                     this,
@@ -76,14 +89,14 @@
         {
                 m_origImage.load(s);
                 m_origPixmap.convertFromImage(m_origImage);
- mp_labelOrig->setPixmap(m_origPixmap);
+ mp_ui->mp_labelOrig->setPixmap(m_origPixmap);
                 m_shownOrigPixmap=OrigPixmap;
         }
 }
 
 void Segmentation::fileOpenMask()
 {
- QString s = QFileDialog::getOpenFileName(
+ QString s = Q3FileDialog::getOpenFileName(
                     "data/trimaps",
                     "Images (*.png)",
                     this,
@@ -94,7 +107,7 @@
         else{
                 m_trimapImage.load(s);
                 m_trimapPixmap.convertFromImage(m_trimapImage);
- mp_labelOrig->setPixmap(m_trimapPixmap);
+ mp_ui->mp_labelOrig->setPixmap(m_trimapPixmap);
                 m_shownOrigPixmap=TrimapPixmap;
         }
 }
@@ -102,7 +115,7 @@
 void Segmentation::fileSaveAs()
 {
   if(!m_segmentedImage.isNull()){
- QString s = QFileDialog::getSaveFileName (
+ QString s = Q3FileDialog::getSaveFileName (
         "data/segmented",
     "Images (*.png)",
     this,
@@ -116,47 +129,47 @@
         s.append(".png");
       }
       if(!m_segmentedImage.save(s,"PNG")){
- mp_logEdit->append(QString("ERROR saving segmented image to ")+s);
+ mp_ui->mp_logEdit->append(QString("ERROR saving segmented image to ")+s);
       }
       else{
- mp_logEdit->append(QString("Saved segmented image to ")+s);
+ mp_ui->mp_logEdit->append(QString("Saved segmented image to ")+s);
       }
     }
   }
   else
- mp_logEdit->append(QString("ERROR. No segmented image to save yet!"));
+ mp_ui->mp_logEdit->append(QString("ERROR. No segmented image to save yet!"));
 }
 
 void Segmentation::loadImages( std::string fcr_imageFileName, std::string fcr_maskFileName )
 {
- mp_logEdit->append("Loading images...");
+ mp_ui->mp_logEdit->append("Loading images...");
         
- if(!m_origImage.load(fcr_imageFileName))
+ if(!m_origImage.load(QString::fromStdString(fcr_imageFileName)))
                 cout << "Could not load image from " << fcr_imageFileName <<endl;
         m_origPixmap.convertFromImage(m_origImage);
         
- if(!m_trimapImage.load(fcr_maskFileName))
+ if(!m_trimapImage.load(QString::fromStdString(fcr_maskFileName)))
                 cout << "Could not load trimap from " << fcr_imageFileName <<endl;
         m_trimapPixmap.convertFromImage(m_trimapImage);
         
- mp_labelOrig->setPixmap(m_origPixmap);
+ mp_ui->mp_labelOrig->setPixmap(m_origPixmap);
         m_shownOrigPixmap=OrigPixmap;
         
         update();
- mp_logEdit->append("...done");
+ mp_ui->mp_logEdit->append("...done");
 }
 
 
 void Segmentation::wheelEvent( QWheelEvent * )
 {
- if(mp_labelOrig->hasMouse())
+ if(mp_ui->mp_labelOrig->hasMouse())
         {
                 if(m_shownOrigPixmap==OrigPixmap){
- mp_labelOrig->setPixmap(m_trimapPixmap);
+ mp_ui->mp_labelOrig->setPixmap(m_trimapPixmap);
                         m_shownOrigPixmap=TrimapPixmap;
                 }
                 else{
- mp_labelOrig->setPixmap(m_origPixmap);
+ mp_ui->mp_labelOrig->setPixmap(m_origPixmap);
                         m_shownOrigPixmap=OrigPixmap;
                 }
         }
@@ -171,14 +184,14 @@
           m_graphCut.setSimilarityWeight(m_similarityWeight);
         m_graphCut.setNeighborhoodWeight(m_neighborhoodWeight);
         m_graphCut.setNeighborhoodThreshold(m_huePenalty);
- mp_logEdit->append("Starting segmentation...");
+ mp_ui->mp_logEdit->append("Starting segmentation...");
         QTime time;
         time.start();
- m_segmentedImage=m_graphCut.segment(m_origImage,m_trimapImage,static_cast<GraphCut::eMode>(mp_comboAlgo->currentItem()));
+ m_segmentedImage=m_graphCut.segment(m_origImage,m_trimapImage,static_cast<GraphCut::eMode>(mp_ui->mp_comboAlgo->currentItem()));
         int neededTime=time.elapsed();
         m_segmentedPixmap.convertFromImage(m_segmentedImage);
- mp_labelSegmented->setPixmap(m_segmentedPixmap);
- mp_logEdit->append(QString("Done! Segmentation lasted: %1 ms (maxflow:%2)").arg(neededTime).arg(m_graphCut.maxflowTime()));
+ mp_ui->mp_labelSegmented->setPixmap(m_segmentedPixmap);
+ mp_ui->mp_logEdit->append(QString("Done! Segmentation lasted: %1 ms (maxflow:%2)").arg(neededTime).arg(m_graphCut.maxflowTime()));
 
 // visualizeResults();
 }

Modified: sandbox/SOC/2006/mincut-maxflow/trunk/apps/segmentation/src/segmentation.h
==============================================================================
--- sandbox/SOC/2006/mincut-maxflow/trunk/apps/segmentation/src/segmentation.h (original)
+++ sandbox/SOC/2006/mincut-maxflow/trunk/apps/segmentation/src/segmentation.h 2008-08-11 17:25:44 EDT (Mon, 11 Aug 2008)
@@ -19,33 +19,36 @@
 
 #include <qbitmap.h>
 #include <qimage.h>
-
-#include "segmentationbase.h"
+//Added by qt3to4:
+#include <QMouseEvent>
+#include <QWheelEvent>
+#include <QPixmap>
+#include <Q3MainWindow>
 #include <graphcut.h>
 
-class Segmentation: public SegmentationBase
+namespace Ui { class SegmentationBase; };
+class Segmentation: public Q3MainWindow
 {
   Q_OBJECT
 
 public:
- Segmentation(QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
+ Segmentation(QWidget* parent = 0, const char* name = 0, Qt::WFlags fl = 0 );
         ~Segmentation();
         /*$PUBLIC_FUNCTIONS$*/
         void loadImages(std::string fcr_filename,std::string fcr_maskFilename);
                   
 public slots:
-
-protected:
         virtual void fileOpenImage();
         virtual void fileOpenMask();
         virtual void fileNewMask();
- virtual void fileSaveAs();
+ virtual void fileSaveAs();
+ virtual void storeProblemAsDimacsFile(bool toggled);
+protected:
+
    
         virtual void mousePressEvent(QMouseEvent* e);
         virtual void mouseReleaseEvent(QMouseEvent* e);
         virtual void mouseMoveEvent(QMouseEvent* e);
-
- virtual void storeProblemAsDimacsFile(bool toggled);
         
 protected slots:
   /*$PROTECTED_SLOTS$*/
@@ -58,9 +61,9 @@
 private:
         
         virtual void wheelEvent ( QWheelEvent * e );
-
         void visualizeResults();
-
+
+ Ui::SegmentationBase* mp_ui;
         unsigned int m_huePenalty;
         GraphCut::tPrecision m_similarityWeight;
         GraphCut::tPrecision m_neighborhoodWeight;

Modified: sandbox/SOC/2006/mincut-maxflow/trunk/apps/segmentation/src/segmentationbase.ui
==============================================================================
--- sandbox/SOC/2006/mincut-maxflow/trunk/apps/segmentation/src/segmentationbase.ui (original)
+++ sandbox/SOC/2006/mincut-maxflow/trunk/apps/segmentation/src/segmentationbase.ui 2008-08-11 17:25:44 EDT (Mon, 11 Aug 2008)
@@ -1,696 +1,571 @@
-<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
-<class>SegmentationBase</class>
-<widget class="QMainWindow">
- <property name="name">
- <cstring>SegmentationBase</cstring>
- </property>
- <property name="geometry">
- <rect>
- <x>0</x>
- <y>0</y>
- <width>786</width>
- <height>688</height>
- </rect>
- </property>
- <property name="caption">
- <string>Demo App for Segmentation</string>
- </property>
- <grid>
- <property name="name">
- <cstring>unnamed</cstring>
- </property>
- <widget class="QTextEdit" row="3" column="0" rowspan="1" colspan="2">
- <property name="name">
- <cstring>mp_logEdit</cstring>
- </property>
- <property name="maximumSize">
- <size>
- <width>32767</width>
- <height>100</height>
- </size>
- </property>
- <property name="textFormat">
- <enum>LogText</enum>
- </property>
- <property name="readOnly">
- <bool>true</bool>
- </property>
- </widget>
- <widget class="Line" row="1" column="0" rowspan="1" colspan="2">
- <property name="name">
- <cstring>line1_2</cstring>
- </property>
- <property name="frameShape">
- <enum>HLine</enum>
- </property>
- <property name="frameShadow">
- <enum>Sunken</enum>
- </property>
- <property name="orientation">
- <enum>Horizontal</enum>
- </property>
+<ui version="4.0" >
+ <class>SegmentationBase</class>
+ <widget class="Q3MainWindow" name="SegmentationBase" >
+ <property name="geometry" >
+ <rect>
+ <x>0</x>
+ <y>0</y>
+ <width>1004</width>
+ <height>957</height>
+ </rect>
+ </property>
+ <property name="windowTitle" >
+ <string>Demo App for Segmentation</string>
+ </property>
+ <widget class="QWidget" name="widget" >
+ <property name="geometry" >
+ <rect>
+ <x>0</x>
+ <y>27</y>
+ <width>1004</width>
+ <height>930</height>
+ </rect>
+ </property>
+ <layout class="QVBoxLayout" name="verticalLayout" >
+ <item>
+ <layout class="QHBoxLayout" name="horizontalLayout_2" >
+ <item>
+ <widget class="QLabel" name="mp_labelOrig" >
+ <property name="sizePolicy" >
+ <sizepolicy vsizetype="Expanding" hsizetype="Expanding" >
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="minimumSize" >
+ <size>
+ <width>10</width>
+ <height>10</height>
+ </size>
+ </property>
+ <property name="toolTip" >
+ <string>Original Image/Trimap (use mousewheel)</string>
+ </property>
+ <property name="pixmap" >
+ <pixmap>image0</pixmap>
+ </property>
+ <property name="scaledContents" >
+ <bool>true</bool>
+ </property>
+ <property name="wordWrap" >
+ <bool>false</bool>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <spacer name="verticalSpacer" >
+ <property name="orientation" >
+ <enum>Qt::Vertical</enum>
+ </property>
+ <property name="sizeType" >
+ <enum>QSizePolicy::MinimumExpanding</enum>
+ </property>
+ <property name="sizeHint" stdset="0" >
+ <size>
+ <width>20</width>
+ <height>40</height>
+ </size>
+ </property>
+ </spacer>
+ </item>
+ <item>
+ <widget class="QLabel" name="mp_labelSegmented" >
+ <property name="sizePolicy" >
+ <sizepolicy vsizetype="Expanding" hsizetype="Expanding" >
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="minimumSize" >
+ <size>
+ <width>10</width>
+ <height>10</height>
+ </size>
+ </property>
+ <property name="toolTip" >
+ <string>Segmented Image</string>
+ </property>
+ <property name="pixmap" >
+ <pixmap>image0</pixmap>
+ </property>
+ <property name="scaledContents" >
+ <bool>true</bool>
+ </property>
+ <property name="wordWrap" >
+ <bool>false</bool>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </item>
+ <item>
+ <widget class="Line" name="line1_2" >
+ <property name="maximumSize" >
+ <size>
+ <width>16777215</width>
+ <height>100</height>
+ </size>
+ </property>
+ <property name="frameShape" >
+ <enum>QFrame::HLine</enum>
+ </property>
+ <property name="frameShadow" >
+ <enum>QFrame::Sunken</enum>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QGroupBox" name="groupBox" >
+ <property name="title" >
+ <string>Options</string>
+ </property>
+ <layout class="QHBoxLayout" name="horizontalLayout" >
+ <item>
+ <widget class="QComboBox" name="mp_comboAlgo" >
+ <item>
+ <property name="text" >
+ <string>Kolmogorov</string>
+ </property>
+ </item>
+ <item>
+ <property name="text" >
+ <string>FreeImpl</string>
+ </property>
+ </item>
+ <item>
+ <property name="text" >
+ <string>Boost_PushRelabel</string>
+ </property>
+ </item>
+ <item>
+ <property name="text" >
+ <string>Boost_Edmund_Karp</string>
+ </property>
+ </item>
+ <item>
+ <property name="text" >
+ <string>Boost_Kolmogorov</string>
+ </property>
+ </item>
         </widget>
- <widget class="QLayoutWidget" row="2" column="0" rowspan="1" colspan="2">
- <property name="name">
- <cstring>layout5</cstring>
- </property>
- <hbox>
- <property name="name">
- <cstring>unnamed</cstring>
- </property>
- <widget class="QComboBox">
- <item>
- <property name="text">
- <string>Kolmogorov</string>
- </property>
- </item>
- <item>
- <property name="text">
- <string>FreeImpl</string>
- </property>
- </item>
- <item>
- <property name="text">
- <string>Boost_PushRelabel</string>
- </property>
- </item>
- <item>
- <property name="text">
- <string>Boost_Edmund_Karp</string>
- </property>
- </item>
- <item>
- <property name="text">
- <string>Boost_Kolmogorov</string>
- </property>
- </item>
- <property name="name">
- <cstring>mp_comboAlgo</cstring>
- </property>
- </widget>
- <widget class="QPushButton">
- <property name="name">
- <cstring>mp_buttonSegment</cstring>
- </property>
- <property name="text">
- <string>Segme&amp;nt</string>
- </property>
- <property name="accel">
- <string>Alt+N</string>
- </property>
- </widget>
- <spacer>
- <property name="name">
- <cstring>spacer1</cstring>
- </property>
- <property name="orientation">
- <enum>Horizontal</enum>
- </property>
- <property name="sizeType">
- <enum>Expanding</enum>
- </property>
- <property name="sizeHint">
- <size>
- <width>139</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- <widget class="QLayoutWidget">
- <property name="name">
- <cstring>layout21</cstring>
- </property>
- <grid>
- <property name="name">
- <cstring>unnamed</cstring>
- </property>
- <widget class="QLabel" row="1" column="0">
- <property name="name">
- <cstring>textLabel1_2_2</cstring>
- </property>
- <property name="text">
- <string>Neighborhood Weight:</string>
- </property>
- </widget>
- <widget class="QSpinBox" row="0" column="1">
- <property name="name">
- <cstring>mp_spinSimilarityWeight</cstring>
- </property>
- <property name="maxValue">
- <number>10000</number>
- </property>
- <property name="minValue">
- <number>0</number>
- </property>
- </widget>
- <widget class="QLabel" row="0" column="0">
- <property name="name">
- <cstring>textLabel1_2</cstring>
- </property>
- <property name="text">
- <string>Similarity Weight:</string>
- </property>
- </widget>
- <widget class="QSpinBox" row="1" column="1">
- <property name="name">
- <cstring>mp_spinNeighborhoodWeight</cstring>
- </property>
- <property name="maxValue">
- <number>10000</number>
- </property>
- <property name="minValue">
- <number>0</number>
- </property>
- </widget>
- </grid>
- </widget>
- <widget class="QLabel">
- <property name="name">
- <cstring>textLabel1</cstring>
- </property>
- <property name="text">
- <string>Neighborhoud-Functor Threshold:</string>
- </property>
- </widget>
- <widget class="QSpinBox">
- <property name="name">
- <cstring>mp_spinHuePenalty</cstring>
- </property>
- <property name="maxValue">
- <number>255</number>
- </property>
- <property name="minValue">
- <number>1</number>
- </property>
- </widget>
- </hbox>
+ </item>
+ <item>
+ <widget class="QPushButton" name="mp_buttonSegment" >
+ <property name="text" >
+ <string>Segme&amp;nt</string>
+ </property>
+ <property name="shortcut" >
+ <string>Alt+N</string>
+ </property>
         </widget>
- <widget class="QLabel" row="0" column="0">
- <property name="name">
- <cstring>mp_labelOrig</cstring>
- </property>
- <property name="sizePolicy">
- <sizepolicy>
- <hsizetype>2</hsizetype>
- <vsizetype>2</vsizetype>
- <horstretch>0</horstretch>
- <verstretch>0</verstretch>
- </sizepolicy>
- </property>
- <property name="minimumSize">
- <size>
- <width>10</width>
- <height>10</height>
- </size>
- </property>
- <property name="pixmap">
- <pixmap>image0</pixmap>
- </property>
- <property name="scaledContents">
- <bool>true</bool>
- </property>
- <property name="toolTip" stdset="0">
- <string>Original Image/Trimap (use mousewheel)</string>
- </property>
+ </item>
+ <item>
+ <layout class="QGridLayout" >
+ <item row="1" column="0" >
+ <widget class="QLabel" name="textLabel1_2_2" >
+ <property name="text" >
+ <string>Neighborhood Weight:</string>
+ </property>
+ <property name="wordWrap" >
+ <bool>false</bool>
+ </property>
+ </widget>
+ </item>
+ <item row="0" column="1" >
+ <widget class="QSpinBox" name="mp_spinSimilarityWeight" >
+ <property name="minimum" >
+ <number>0</number>
+ </property>
+ <property name="maximum" >
+ <number>10000</number>
+ </property>
+ </widget>
+ </item>
+ <item row="0" column="0" >
+ <widget class="QLabel" name="textLabel1_2" >
+ <property name="text" >
+ <string>Similarity Weight:</string>
+ </property>
+ <property name="wordWrap" >
+ <bool>false</bool>
+ </property>
+ </widget>
+ </item>
+ <item row="1" column="1" >
+ <widget class="QSpinBox" name="mp_spinNeighborhoodWeight" >
+ <property name="minimum" >
+ <number>0</number>
+ </property>
+ <property name="maximum" >
+ <number>10000</number>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </item>
+ <item>
+ <widget class="QLabel" name="textLabel1" >
+ <property name="text" >
+ <string>Neighborhoud-Functor Threshold:</string>
+ </property>
+ <property name="wordWrap" >
+ <bool>false</bool>
+ </property>
         </widget>
- <widget class="QLabel" row="0" column="1">
- <property name="name">
- <cstring>mp_labelSegmented</cstring>
- </property>
- <property name="sizePolicy">
- <sizepolicy>
- <hsizetype>2</hsizetype>
- <vsizetype>2</vsizetype>
- <horstretch>0</horstretch>
- <verstretch>0</verstretch>
- </sizepolicy>
- </property>
- <property name="minimumSize">
- <size>
- <width>10</width>
- <height>10</height>
- </size>
- </property>
- <property name="pixmap">
- <pixmap>image0</pixmap>
- </property>
- <property name="scaledContents">
- <bool>true</bool>
- </property>
- <property name="toolTip" stdset="0">
- <string>Segmented Image</string>
- </property>
+ </item>
+ <item>
+ <widget class="QSpinBox" name="mp_spinHuePenalty" >
+ <property name="minimum" >
+ <number>1</number>
+ </property>
+ <property name="maximum" >
+ <number>255</number>
+ </property>
         </widget>
- </grid>
-</widget>
-<menubar>
- <property name="name">
- <cstring>menubar</cstring>
- </property>
- <item text="&amp;File" name="File">
- <action name="fileOpenImageAction"/>
- <action name="fileOpenMaskAction"/>
- <action name="fileNewMaskAction"/>
- <action name="fileSaveAsActionss"/>
- <separator/>
- <action name="fileExitAction"/>
- </item>
- <item text="&amp;Edit" name="editMenu">
- <action name="editUndoAction"/>
- <action name="editRedoAction"/>
- <separator/>
- </item>
- <item text="Options" name="Options">
- <action name="optionsStore_problem_as_DIMACSAction"/>
+ </item>
+ </layout>
+ </widget>
     </item>
- <item text="&amp;Help" name="helpMenu">
- <action name="helpAboutAction"/>
+ <item>
+ <widget class="Q3TextEdit" name="mp_logEdit" >
+ <property name="maximumSize" >
+ <size>
+ <width>32767</width>
+ <height>100</height>
+ </size>
+ </property>
+ <property name="textFormat" >
+ <enum>Qt::LogText</enum>
+ </property>
+ <property name="readOnly" >
+ <bool>true</bool>
+ </property>
+ </widget>
     </item>
-</menubar>
-<toolbars>
-</toolbars>
-<actions>
- <action>
- <property name="name">
- <cstring>fileNewAction</cstring>
- </property>
- <property name="iconSet">
- <iconset>image1</iconset>
- </property>
- <property name="text">
- <string>New</string>
- </property>
- <property name="menuText">
- <string>&amp;New</string>
- </property>
- <property name="accel">
- <string>N</string>
- </property>
- </action>
- <action>
- <property name="name">
- <cstring>fileOpenImageAction</cstring>
- </property>
- <property name="iconSet">
- <iconset>image2</iconset>
- </property>
- <property name="text">
- <string>OpenImage</string>
- </property>
- <property name="menuText">
- <string>&amp;OpenImage...</string>
- </property>
- <property name="toolTip">
- <string>OpenImage</string>
- </property>
- <property name="accel">
- <string>O</string>
- </property>
- </action>
- <action>
- <property name="name">
- <cstring>fileSaveAsActionss</cstring>
- </property>
- <property name="text">
- <string>Save Image &amp;As...</string>
- </property>
- <property name="menuText">
- <string>Save Image &amp;As...</string>
- </property>
- <property name="accel">
- <string></string>
- </property>
- </action>
- <action>
- <property name="name">
- <cstring>filePrintAction</cstring>
- </property>
- <property name="iconSet">
- <iconset>image3</iconset>
- </property>
- <property name="text">
- <string>Print</string>
- </property>
- <property name="menuText">
- <string>&amp;Print...</string>
- </property>
- <property name="accel">
- <string>P</string>
- </property>
- </action>
- <action>
- <property name="name">
- <cstring>fileExitAction</cstring>
- </property>
- <property name="text">
- <string>Exit</string>
- </property>
- <property name="menuText">
- <string>E&amp;xit</string>
- </property>
- <property name="accel">
- <string></string>
- </property>
- </action>
- <action>
- <property name="name">
- <cstring>editUndoAction</cstring>
- </property>
- <property name="iconSet">
- <iconset>image4</iconset>
- </property>
- <property name="text">
- <string>Undo</string>
- </property>
- <property name="menuText">
- <string>&amp;Undo</string>
- </property>
- <property name="accel">
- <string>Z</string>
- </property>
- </action>
- <action>
- <property name="name">
- <cstring>editRedoAction</cstring>
- </property>
- <property name="iconSet">
- <iconset>image5</iconset>
- </property>
- <property name="text">
- <string>Redo</string>
- </property>
- <property name="menuText">
- <string>&amp;Redo</string>
- </property>
- <property name="accel">
- <string>Y</string>
- </property>
- </action>
- <action>
- <property name="name">
- <cstring>editCutAction</cstring>
- </property>
- <property name="iconSet">
- <iconset>image6</iconset>
- </property>
- <property name="text">
- <string>Cut</string>
- </property>
- <property name="menuText">
- <string>&amp;Cut</string>
- </property>
- <property name="accel">
- <string>X</string>
- </property>
- </action>
- <action>
- <property name="name">
- <cstring>editCopyAction</cstring>
- </property>
- <property name="iconSet">
- <iconset>image7</iconset>
- </property>
- <property name="text">
- <string>Copy</string>
- </property>
- <property name="menuText">
- <string>C&amp;opy</string>
- </property>
- <property name="accel">
- <string>C</string>
- </property>
- </action>
- <action>
- <property name="name">
- <cstring>editPasteAction</cstring>
- </property>
- <property name="iconSet">
- <iconset>image8</iconset>
- </property>
- <property name="text">
- <string>Paste</string>
- </property>
- <property name="menuText">
- <string>&amp;Paste</string>
- </property>
- <property name="accel">
- <string>V</string>
- </property>
- </action>
- <action>
- <property name="name">
- <cstring>editFindAction</cstring>
- </property>
- <property name="iconSet">
- <iconset>image9</iconset>
- </property>
- <property name="text">
- <string>Find</string>
- </property>
- <property name="menuText">
- <string>&amp;Find...</string>
- </property>
- <property name="accel">
- <string>F</string>
- </property>
- </action>
- <action>
- <property name="name">
- <cstring>helpContentsAction</cstring>
- </property>
- <property name="text">
- <string>Contents</string>
- </property>
- <property name="menuText">
- <string>&amp;Contents...</string>
- </property>
- <property name="accel">
- <string></string>
- </property>
- </action>
- <action>
- <property name="name">
- <cstring>helpIndexAction</cstring>
- </property>
- <property name="text">
- <string>Index</string>
- </property>
- <property name="menuText">
- <string>&amp;Index...</string>
- </property>
- <property name="accel">
- <string></string>
- </property>
- </action>
- <action>
- <property name="name">
- <cstring>helpAboutAction</cstring>
- </property>
- <property name="text">
- <string>About</string>
- </property>
- <property name="menuText">
- <string>&amp;About</string>
- </property>
- <property name="accel">
- <string></string>
- </property>
- </action>
- <action>
- <property name="name">
- <cstring>fileOpenMaskAction</cstring>
- </property>
- <property name="text">
- <string>OpenMask</string>
- </property>
- <property name="menuText">
- <string>OpenMask...</string>
- </property>
- </action>
- <action>
- <property name="name">
- <cstring>fileNewMaskAction</cstring>
- </property>
- <property name="text">
- <string>NewMask</string>
- </property>
- <property name="menuText">
- <string>NewMask</string>
- </property>
- </action>
- <action>
- <property name="name">
- <cstring>optionsStore_problem_as_DIMACSAction</cstring>
- </property>
- <property name="toggleAction">
- <bool>true</bool>
- </property>
- <property name="text">
- <string>Store problem as DIMACS</string>
- </property>
- <property name="menuText">
- <string>Store problem as DIMACS</string>
- </property>
- </action>
-</actions>
-<images>
- <image name="image0">
- <data format="XPM.GZ" length="4833">789c8597596f23470e80dfe75718c3b7c182e9eabb11ec834fc9873cbeaf601fc86ec9966df994cfc5fef794483633934d10c836fcb9582cde55fee5dbd2d9de68e9db2f5f9ee7349fb64bed153d2d7deb5e66b38fdffef3efff7ef99aa64b8baf2c5b4abffeebcb57dc5c6a9720499290640b8613e110ff22eb941b07657e7256f90be742e4a7c6a9ed076791c7a1732efbd784d3f817615a71167db0e55c0a17ce95c88f8ced3c7e74d6f306cea29fd159f583b3e8a75367d18f5bce8df0b63389be67e3ccfcd97716fd78e22cfaf1d459edefedcbedbc63e75af4cf85b33edeb8616cfef1b5b39eb7e72cf6c28b7166fb53678df7b5b3fadf388b3d503a8b3d40c6b9eaa35767d9cf37c6a5e53f73d6f3769d55bedf5f2789ac6bfcf2de1fda33ce4cdfbb716eeb6fce1acf1de3c2f2bbe7acf573605cdafe2b67f5efd359f20bb97165febe38b3c453fd2bfa7cd0a67165fea97c9db416ff1de3b1e9d77a6d12567bf8c159ed9d1ab7969fc2b8d378e2ba304579c93769bd719457fd524f2184cae221f51bd250a8fd3c35ae4cfec1b8b6fa06e3c6eaffc859d651f215b2d0c7efdab8327b969d459e9e8d7bfd57c68df587c43be4c1e20b685c1b9f0b17c1e283cfce927f96f911ca40d63fcbce7afebd31eb3a91b3fa37376ead9e64dea5759606a94f546eb2
3499883d9bc69932bef4acf22cf594725c1f8bfca9b3c8d3aa711e82c82bb73de3817111a4fe2171d67e1a1b97ba8e87ce5a8f12bfb48b2cfae8ceb85206894f9666135bff2e5c45d6fae894a3393a3f5be13aaeb7729eca4ff2d6ce3f5b701ef2b1c95f0aa7715dfb4de657519675d0fc8d8c9ba0f527f12faab234fd8fc695f1ab716dfa3f84ebb2089dec5f779678d381711d74beae398b7f540b3751bfd6e39ab1c9033b6bbd07e326687dcb3c2da8ecf47cfa301e9bbe37e389c94b3c0a2edba0f5f361dc194b3c8b36eed77acf9c453fab7f6d95587e6e8d83c957c25dc9668fdc5fc538b2c6e3a6e754e7adcc836252b6a9d69bccffb2ad535d67e98fb2ab538befaab3e8439947e5b84e82f6ffa17165f1bd7096fcc1ccb8b67a981b375a0f20f92d2775b078493dd54c75aaef0de9dfba75167fea2eb2f683dc5771388d753fbe396b7fca7c6b52ea2c5e57ce621fcbfdd26464f1812767ed8f63e3ced665de34c464fe9e1bb3d5b3f45bc3dca67a7fc9fba7697b46a9bf66cc13cb8fcc8b66c2960f3832b6f3988dad1e2828b799c53371d6f9766b9c5b7f4afe286983f5c3aeb3be177ace6c1ecc9cb51f6a678def8a7169f351fca710f5a93d9db3d64febacf9981aa76a2f5e3b6b7d5d1af7f6df3aebfb67e4acf93f72d6f972675cd83c7d77d67cac3bebfdfce9acf7eb87b3c66b665cdabc5feed9f44bfd5
1caade59395dbc4fc3f33cecc9f9b9e35bf786fdccfffc459e7ffc059eb7fe2acefcfd459df13dbceda5f4367bddffed8affdf0665c243a6f769c351f6367f51f7ad6fcefcf9dd57e72567fd959e3dd3a6bbc3b677daf34ce6affadb3dadbdb57263a5f46ce7adf8e9dd5dededfbe5e2f9cb5de5b678df7bb71a5fa59f767dccf77cd57d6f7136c185b7e79d359f3159cf53df7e8acf19e19f7f57ee5acef9b0d67f5b733b6fa844b63f38f07ceea9fcc3fca5b9bef58199b3dbce5acefa53567bd6fee8c73d54f95b3fa3b34b6fcc3b3b3f6dba1b3f6afe6a788fb6bad9f1f3f08f19b90b18ddff0f3dafefc2fe4bb284948f1b7f1e2e73fca4ff012af708ad77883b77f2f8f33bc8b9aeff1011ff1099f718e2ff88a6ff88e1ff8196da33fc92fe30aaee21aaee3060e70889bb885dbb88323dc8d7a407df941be8dd2dfa3ec5e94dac7033cc4233cc6133cc5333cc78bffb327c18029669863812556d1ef1a9ba8168080a1850ec608daaf30814bb882296ec035dc486426700b33b8837b78c0213cc2133ce367af3f7a93c01c5e700b5ee10d6fe11d093ee01396610556f104d6601d36a2d77abf0da2f41036610bb6b1841d18c12e7c873dd887033884233886133885b318297d3fc558e114cee1021208d1e01432c8a180122aa8e3c5190f2322c63bb507995aea62bc37698c9f34a14bba822d9ad235ddd02dcde80e
87744f0f7fc823d1233de1363d634d737aa1577aa3ebf8047ba70ffaa4655aa1555aa375b37f0c298e6923ca0fb0a1212cd3266dd136edd08876e93bedd13e1dd0211d997e88f6031dd3099d624e67744e17f15f8b40296594cb273ef61632aa5ff34515d5d43032707c19449fd6e993db283b8217ee62fc0630fa31bf1cdf037c493bb1724ef98a162d30e56bcae185467cc3b731dfa0f935f919dff13daef1033ff2133fc77d039e73d41da55ff90d268b8afba17ea27d30a18edff9833f7999577895d7a88421aff31b6fc0e04ff5c6314acc031ef2266cc4c7ce036ff12ca66a10ff75d95eacfd2ccf3b0bfd38e651ac93f7d83b77f84e47d1e6f1222e0bf9c5ef3ff7a3f690766f4ffd0490aa85affffbf5cbef985d44a8</data>
- </image>
- <image name="image1">
- <data format="PNG" length="184">89504e470d0a1a0a0000000d4948445200000016000000160806000000c4b46c3b0000007f49444154388ded95510a0021084475d9db041ec0e8fa5ecbfdda852d4b11fa6b2028a3570c53a188c00edd7d819935b2504470357f5945559d36000022720f60823d11910b1fac88a894f2f599592d5b52e05aeb6f6cc153e0d6da50ebe12930e2321039f09b0c6fb3542a223ae0033ee085cc2b1d790b3ce1ae3f6f9b150f6d5433af47a4f4c20000000049454e44ae426082</data>
- </image>
- <image name="image2">
- <data format="PNG" length="231">89504e470d0a1a0a0000000d4948445200000016000000160806000000c4b46c3b000000ae49444154388db594510ec3200c436db45371b6691fd3cee66bb18f5135a219235af04f442b5e2c03a124ec50d942dd09be4537d45a9b5d4be2f85f1243e06393d748126d53661d9e854a624ac6633c40cff8576e51280010406b0d00dab104b9c69d19e887774201f64ebc7c8f342fc678b0ce553cc76b752e37e368d69edc8c2df4f58c01ef8f4f7533fe176a1e482ef4e2380b6ac0b9d0d36a57161430833e130aacdef62f9acd8ab4793cea0d051970cdbc4f01b20000000049454e44ae426082</data>
- </image>
- <image name="image3">
- <data format="PNG" length="709">89504e470d0a1a0a0000000d4948445200000016000000160806000000c4b46c3b0000028c49444154388d8d95af7bdb301086dfec0938319bc530b061350c2cf458cb5a18b83f6181a363a3851debd8020b1dd6b01a0adacc62772c03b21de7d7b38a28962eef7dbaef2c4fcab2e4d268db762f22a4697ab46e6600a82a0021049224c1393719c74d2f52011121cff30174ba371280f7fe2ce62a18a0aaaa33d8692255c539f779f02580999d25e8e753f8972bdcbd990dc1ce399c7347f5eeeb2f2267f5bdaa5855499284b66d1191c1a8f1b874fccf28c6ccce3a620ced935d32f7aae25ecd25a5e375553dea90ff82ebba663e9f9365d955786fe476bb2584b01749c8b274a8f5115855f7de7baa5d851482880c80d3b957dad62d6559d284869b9b9b7d5114a4693a99f46f9eaaeeabca13ea063580cb4a019ca408020e7ced797fdfd13435aac6623167b55a45c5bdd2e2ee0e97a6a81a9872668b1920946c79e32f4b5bb2fcc8a9aa1da8e1808ff70f7ee933d3086d78f8fa40324baeaaec4745c54f7ee0f1ecd8f1222f14fe9e97f699ba0e1846e33dd3d0049e9eeeafba7b3a5252ee5852221414dcdede9248466b35cf2fbf092190ce52a606785fc77e340311628e9848041c2e56dc14c4f1cdbe738f27b38c1d1598916659dcefdc99b6758d1789f53463f0
cd4174b13b89335001e29a00de1a8c7887f8aa1a3c7174edd62f580fc486a650a229b19d87c8a173a4f7743414658a80b5a33f6827761c688028d8e98ec3aca53b677f36f27cc9176ca47210abf1d1baf908eafab00eda01bb72ce663356aba7a8d87bdf5b0562100408d139b388915e951d601c6a8e1922b05eafc9b26c329dcfe7bc6ddef8b3d9a06ac4fb47386a3e193dcb01399cb3eba6f57a4d9ee71380e195aeeb7afffabaa1e9be5f8a76a61c9c397c3540b58dbf83912f731e1f1f592c16c325f40f010f7cb0f1b5c3040000000049454e44ae426082</data>
- </image>
- <image name="image4">
- <data format="PNG" length="212">89504e470d0a1a0a0000000d4948445200000016000000160806000000c4b46c3b0000009b49444154388ded943b0e80200c865be3a91889c7320e8463998ebd164e68417949184cfcc7b67c6de803991946681a42fdc152734bb052e49eecd600e845a3b4a19f0aa5c83187ce1230967c1f541cc363602931ede47ce5b73ff64112caac31059509d7edb23d362f86a6803965a7e22db408ae6d5a33b8075eb52025b8f75b73d9b0e7bad14e4e4e82ec49d74aa7a0009d15e7f4bdebf6834f1d172546d17f21be920000000049454e44ae426082</data>
- </image>
- <image name="image5">
- <data format="PNG" length="204">89504e470d0a1a0a0000000d4948445200000016000000160806000000c4b46c3b0000009349444154388ded943d0e80200c46a9f1548cc4631907c2b148c75e0b27b0226083b2f12d24d03efa0740446a849621d409e65af30df418f6a36c4c64400a063e155a639038d52ed01a433c4b11a3bfa02d47be72bb3ca854e3987e2b5d2203255829d3aee6b522fd04cee1bf82df1add05964c4f023b2b73928e64758e9d55ca6cf20791eb560ade90daeb930ae67f3cc10f9d5ba746085c06e1e50000000049454e44ae426082</data>
- </image>
- <image name="image6">
- <data format="PNG" length="214">89504e470d0a1a0a0000000d4948445200000016000000160806000000c4b46c3b0000009d49444154388dcdd4410e80200c04c0d6f8aa9e7936e7fd169e9a20222ca0d15e4c340eeda64101c81bb5b53e9a591a794fc32bf51f988981826b10005d8219600af6f2aed918444494d9e31c64a7f8762bbccb91ccc98c63ca9f8fc08e79b76631310774ee8a9880701a1f080a04ede1b7700d2d0f68e155b88732f80566d15e0ded3193ed145c566bba7df4e7bceb5664d5bb221f77366fea129aa903bb2561adb1d6f6e70000000049454e44ae426082</data>
- </image>
- <image name="image7">
- <data format="PNG" length="268">89504e470d0a1a0a0000000d4948445200000016000000160806000000c4b46c3b000000d349444154388db595b10e83300c44cf88af8a18d9f91936d485aa7fd5d99fd5eb5099461093109493bc70c9f3c94984a82a5aa86b4205200078b64055a51a4ca6d922520deff7109335230911e155f806f652d7c2b751a412ffbeada700d531d9ac60c62bc887e33f5d78f75f24878a1bee3dd3302c08e17d48b681491e2a96e74d531aeede0a8379be79f3dc01f8005810c28b3696a25b71e6db9c4d21bca93acaadc4a943b546b7137baa4e9c6bde2c716769bc8a13e72a569f7bff763fab679c53f58caf6c2a511178ff088af6b4fa997e01dfa4987b8b9435470000000049454e44ae426082</data>
- </image>
- <image name="image8">
- <data format="PNG" length="293">89504e470d0a1a0a0000000d4948445200000016000000160806000000c4b46c3b000000ec49444154388db5954d0e83201085df989e6a1237bd96c44583d7eaa6c95c6bba402dc850d0d29798093ff3cd13044944f00fddbe0d32b31efb44845ac0b439b62000a0512f159056b1a1156ab53759f9044001c03f3c0007c0c3cd6e07c52ee3b6353f764e00f438495ef50de59133780c1e420883219e51396ffd2a7c3289476e04a77906f83318bfdeb9986ab02b5f89a9d6cd2bc3dd9c27d94a37cf5ce3a313d5a988235aa03a6587275be3129c68c9a071c1005f54e44ecd8e6bae2d7837c7477817c756d19f1d5b058996be6bdccdb1a5ddc07ad16bf9f17a568057aafdf3989f85ebfdbbaae0ab7a030d36e3e74e2086d10000000049454e44ae426082</data>
- </image>
- <image name="image9">
- <data format="PNG" length="658">89504e470d0a1a0a0000000d4948445200000016000000160806000000c4b46c3b0000025949444154388db59521931b3910469fb7027a98c42c2838cb6cb686031d689685f95d86816b66c385033dcc0305354c62dd6c021c576d2e97f3a672fb21a94bf5f449ad6e2dfabee723f4f02154e0d3db4929654e299173a69a01e04488311263a4699ac51f8373ce737f3ee36360bdfb0c4eaef194185ecfa494d86c36b3f7fe5df045dff7e49ce7979717369f3b365f760098196a8a6154abf4df8e4836b6dbedbb9c3fa8eadc9f7bbaafcfb4db0e33c392a0690963a0f642c98576db41f00cc3f0aeab784829e16364d37500485e525266b2814946c43cd247ac56e2a6654c8952ca7c1f3c4db49b35866105d298487e4443219330293408960d4490e0c839df776caa38ef2856c8cd44594f8813ac188e0878521d51a76020ae619aa6bbe04f00550d11401503304372a4b1404e3dda26c063a50202d755ffed180cccae49b3db181a13f278a6b4198280292660b52022f7c1c107524a985e81560dc3c896b05031c0ca35a65529a51263bc0f8e3192fb0b5a15b37a051443cc43126aadfc3808354f0404e7dc3b1c87b008de33bcbea2802a80923853dc8813a1944a29151b126ddbe28327e73cabea6f9fdd03c06ab5c215a8c7338d298d35f8658344871804035e2f3c
3d3df1f8f8b84863e2743ab1dfefc939ff2b7c716b9baa3a0fc3c09812e2049a6b82ac54c4a0eb3a4208b7529e8fc72387c301e71cbbdd8ed56af553a92ffed98f4b2973ce995a2b2282f7fe96ac5ffa434a69fee19aaeeb7edafc17f09f4a55e7d3e9c4e17060b95cf2fcfccc7abd5efc35f8a6cbe532eff77ba66962bbddfebde3b72aa5cc87c30155fd7fc16ff5617fde773b427a020f23b15a0000000049454e44ae426082</data>
- </image>
-</images>
-<connections>
- <connection>
- <sender>fileNewAction</sender>
- <signal>activated()</signal>
- <receiver>SegmentationBase</receiver>
- <slot>fileNew()</slot>
- </connection>
- <connection>
- <sender>fileOpenImageAction</sender>
- <signal>activated()</signal>
- <receiver>SegmentationBase</receiver>
- <slot>fileOpenImage()</slot>
- </connection>
- <connection>
- <sender>fileSaveAsActionss</sender>
- <signal>activated()</signal>
- <receiver>SegmentationBase</receiver>
- <slot>fileSaveAs()</slot>
- </connection>
- <connection>
- <sender>filePrintAction</sender>
- <signal>activated()</signal>
- <receiver>SegmentationBase</receiver>
- <slot>filePrint()</slot>
- </connection>
- <connection>
- <sender>fileExitAction</sender>
- <signal>activated()</signal>
- <receiver>SegmentationBase</receiver>
- <slot>fileExit()</slot>
- </connection>
- <connection>
- <sender>editUndoAction</sender>
- <signal>activated()</signal>
- <receiver>SegmentationBase</receiver>
- <slot>editUndo()</slot>
- </connection>
- <connection>
- <sender>editRedoAction</sender>
- <signal>activated()</signal>
- <receiver>SegmentationBase</receiver>
- <slot>editRedo()</slot>
- </connection>
- <connection>
- <sender>editCutAction</sender>
- <signal>activated()</signal>
- <receiver>SegmentationBase</receiver>
- <slot>editCut()</slot>
- </connection>
- <connection>
- <sender>editCopyAction</sender>
- <signal>activated()</signal>
- <receiver>SegmentationBase</receiver>
- <slot>editCopy()</slot>
- </connection>
- <connection>
- <sender>editPasteAction</sender>
- <signal>activated()</signal>
- <receiver>SegmentationBase</receiver>
- <slot>editPaste()</slot>
- </connection>
- <connection>
- <sender>editFindAction</sender>
- <signal>activated()</signal>
- <receiver>SegmentationBase</receiver>
- <slot>editFind()</slot>
- </connection>
- <connection>
- <sender>helpIndexAction</sender>
- <signal>activated()</signal>
- <receiver>SegmentationBase</receiver>
- <slot>helpIndex()</slot>
- </connection>
- <connection>
- <sender>helpContentsAction</sender>
- <signal>activated()</signal>
- <receiver>SegmentationBase</receiver>
- <slot>helpContents()</slot>
- </connection>
- <connection>
- <sender>helpAboutAction</sender>
- <signal>activated()</signal>
- <receiver>SegmentationBase</receiver>
- <slot>helpAbout()</slot>
- </connection>
- <connection>
- <sender>fileOpenMaskAction</sender>
- <signal>activated()</signal>
- <receiver>SegmentationBase</receiver>
- <slot>fileOpenMask()</slot>
- </connection>
- <connection>
- <sender>fileNewMaskAction</sender>
- <signal>activated()</signal>
- <receiver>SegmentationBase</receiver>
- <slot>fileNewMask()</slot>
- </connection>
- <connection>
- <sender>optionsStore_problem_as_DIMACSAction</sender>
- <signal>toggled(bool)</signal>
- <receiver>SegmentationBase</receiver>
- <slot>storeProblemAsDimacsFile(bool)</slot>
- </connection>
-</connections>
-<includes>
- <include location="local" impldecl="in implementation">segmentationbase.ui.h</include>
-</includes>
-<slots>
- <slot>fileNew()</slot>
- <slot>fileOpenImage()</slot>
- <slot>fileOpenMask()</slot>
- <slot>fileSave()</slot>
- <slot>fileSaveAs()</slot>
- <slot>filePrint()</slot>
- <slot>fileExit()</slot>
- <slot>editUndo()</slot>
- <slot>editRedo()</slot>
- <slot>editCut()</slot>
- <slot>editCopy()</slot>
- <slot>editPaste()</slot>
- <slot>editFind()</slot>
- <slot>helpIndex()</slot>
- <slot>helpContents()</slot>
- <slot>helpAbout()</slot>
- <slot>storeProblemAsDimacsFile(bool)</slot>
- <slot>fileNewMask()</slot>
-</slots>
-<layoutdefaults spacing="6" margin="11"/>
-</UI>
+ </layout>
+ </widget>
+ <widget class="QMenuBar" name="menubar" >
+ <property name="geometry" >
+ <rect>
+ <x>0</x>
+ <y>0</y>
+ <width>1004</width>
+ <height>27</height>
+ </rect>
+ </property>
+ <widget class="QMenu" name="File" >
+ <property name="title" >
+ <string>&amp;File</string>
+ </property>
+ <addaction name="fileOpenImageAction" />
+ <addaction name="fileOpenMaskAction" />
+ <addaction name="fileNewMaskAction" />
+ <addaction name="fileSaveAsActionss" />
+ <addaction name="separator" />
+ <addaction name="fileExitAction" />
+ </widget>
+ <widget class="QMenu" name="Options" >
+ <property name="title" >
+ <string>Options</string>
+ </property>
+ <addaction name="optionsStore_problem_as_DIMACSAction" />
+ </widget>
+ <widget class="QMenu" name="helpMenu" >
+ <property name="title" >
+ <string>&amp;Help</string>
+ </property>
+ <addaction name="helpAboutAction" />
+ </widget>
+ <addaction name="File" />
+ <addaction name="Options" />
+ <addaction name="helpMenu" />
+ </widget>
+ <action name="fileNewAction" >
+ <property name="icon" >
+ <iconset>
+ <normaloff>image1</normaloff>image1</iconset>
+ </property>
+ <property name="text" >
+ <string>&amp;New</string>
+ </property>
+ <property name="iconText" >
+ <string>New</string>
+ </property>
+ <property name="shortcut" >
+ <string>N</string>
+ </property>
+ <property name="name" stdset="0" >
+ <string>fileNewAction</string>
+ </property>
+ </action>
+ <action name="fileOpenImageAction" >
+ <property name="icon" >
+ <iconset>
+ <normaloff>image2</normaloff>image2</iconset>
+ </property>
+ <property name="text" >
+ <string>&amp;OpenImage...</string>
+ </property>
+ <property name="iconText" >
+ <string>OpenImage</string>
+ </property>
+ <property name="toolTip" >
+ <string>OpenImage</string>
+ </property>
+ <property name="shortcut" >
+ <string>O</string>
+ </property>
+ <property name="name" stdset="0" >
+ <string>fileOpenImageAction</string>
+ </property>
+ </action>
+ <action name="fileSaveAsActionss" >
+ <property name="text" >
+ <string>Save Image &amp;As...</string>
+ </property>
+ <property name="iconText" >
+ <string>Save Image &amp;As...</string>
+ </property>
+ <property name="shortcut" >
+ <string/>
+ </property>
+ <property name="name" stdset="0" >
+ <string>fileSaveAsActionss</string>
+ </property>
+ </action>
+ <action name="filePrintAction" >
+ <property name="icon" >
+ <iconset>
+ <normaloff>image3</normaloff>image3</iconset>
+ </property>
+ <property name="text" >
+ <string>&amp;Print...</string>
+ </property>
+ <property name="iconText" >
+ <string>Print</string>
+ </property>
+ <property name="shortcut" >
+ <string>P</string>
+ </property>
+ <property name="name" stdset="0" >
+ <string>filePrintAction</string>
+ </property>
+ </action>
+ <action name="fileExitAction" >
+ <property name="text" >
+ <string>E&amp;xit</string>
+ </property>
+ <property name="iconText" >
+ <string>Exit</string>
+ </property>
+ <property name="shortcut" >
+ <string/>
+ </property>
+ <property name="name" stdset="0" >
+ <string>fileExitAction</string>
+ </property>
+ </action>
+ <action name="editUndoAction" >
+ <property name="icon" >
+ <iconset>
+ <normaloff>image4</normaloff>image4</iconset>
+ </property>
+ <property name="text" >
+ <string>&amp;Undo</string>
+ </property>
+ <property name="iconText" >
+ <string>Undo</string>
+ </property>
+ <property name="shortcut" >
+ <string>Z</string>
+ </property>
+ <property name="name" stdset="0" >
+ <string>editUndoAction</string>
+ </property>
+ </action>
+ <action name="editRedoAction" >
+ <property name="icon" >
+ <iconset>
+ <normaloff>image5</normaloff>image5</iconset>
+ </property>
+ <property name="text" >
+ <string>&amp;Redo</string>
+ </property>
+ <property name="iconText" >
+ <string>Redo</string>
+ </property>
+ <property name="shortcut" >
+ <string>Y</string>
+ </property>
+ <property name="name" stdset="0" >
+ <string>editRedoAction</string>
+ </property>
+ </action>
+ <action name="editCutAction" >
+ <property name="icon" >
+ <iconset>
+ <normaloff>image6</normaloff>image6</iconset>
+ </property>
+ <property name="text" >
+ <string>&amp;Cut</string>
+ </property>
+ <property name="iconText" >
+ <string>Cut</string>
+ </property>
+ <property name="shortcut" >
+ <string>X</string>
+ </property>
+ <property name="name" stdset="0" >
+ <string>editCutAction</string>
+ </property>
+ </action>
+ <action name="editCopyAction" >
+ <property name="icon" >
+ <iconset>
+ <normaloff>image7</normaloff>image7</iconset>
+ </property>
+ <property name="text" >
+ <string>C&amp;opy</string>
+ </property>
+ <property name="iconText" >
+ <string>Copy</string>
+ </property>
+ <property name="shortcut" >
+ <string>C</string>
+ </property>
+ <property name="name" stdset="0" >
+ <string>editCopyAction</string>
+ </property>
+ </action>
+ <action name="editPasteAction" >
+ <property name="icon" >
+ <iconset>
+ <normaloff>image8</normaloff>image8</iconset>
+ </property>
+ <property name="text" >
+ <string>&amp;Paste</string>
+ </property>
+ <property name="iconText" >
+ <string>Paste</string>
+ </property>
+ <property name="shortcut" >
+ <string>V</string>
+ </property>
+ <property name="name" stdset="0" >
+ <string>editPasteAction</string>
+ </property>
+ </action>
+ <action name="editFindAction" >
+ <property name="icon" >
+ <iconset>
+ <normaloff>image9</normaloff>image9</iconset>
+ </property>
+ <property name="text" >
+ <string>&amp;Find...</string>
+ </property>
+ <property name="iconText" >
+ <string>Find</string>
+ </property>
+ <property name="shortcut" >
+ <string>F</string>
+ </property>
+ <property name="name" stdset="0" >
+ <string>editFindAction</string>
+ </property>
+ </action>
+ <action name="helpContentsAction" >
+ <property name="text" >
+ <string>&amp;Contents...</string>
+ </property>
+ <property name="iconText" >
+ <string>Contents</string>
+ </property>
+ <property name="shortcut" >
+ <string/>
+ </property>
+ <property name="name" stdset="0" >
+ <string>helpContentsAction</string>
+ </property>
+ </action>
+ <action name="helpIndexAction" >
+ <property name="text" >
+ <string>&amp;Index...</string>
+ </property>
+ <property name="iconText" >
+ <string>Index</string>
+ </property>
+ <property name="shortcut" >
+ <string/>
+ </property>
+ <property name="name" stdset="0" >
+ <string>helpIndexAction</string>
+ </property>
+ </action>
+ <action name="helpAboutAction" >
+ <property name="text" >
+ <string>&amp;About</string>
+ </property>
+ <property name="iconText" >
+ <string>About</string>
+ </property>
+ <property name="shortcut" >
+ <string/>
+ </property>
+ <property name="name" stdset="0" >
+ <string>helpAboutAction</string>
+ </property>
+ </action>
+ <action name="fileOpenMaskAction" >
+ <property name="text" >
+ <string>OpenMask...</string>
+ </property>
+ <property name="iconText" >
+ <string>OpenMask</string>
+ </property>
+ <property name="name" stdset="0" >
+ <string>fileOpenMaskAction</string>
+ </property>
+ </action>
+ <action name="fileNewMaskAction" >
+ <property name="text" >
+ <string>NewMask</string>
+ </property>
+ <property name="iconText" >
+ <string>NewMask</string>
+ </property>
+ <property name="name" stdset="0" >
+ <string>fileNewMaskAction</string>
+ </property>
+ </action>
+ <action name="optionsStore_problem_as_DIMACSAction" >
+ <property name="checkable" >
+ <bool>true</bool>
+ </property>
+ <property name="text" >
+ <string>Store problem as DIMACS</string>
+ </property>
+ <property name="iconText" >
+ <string>Store problem as DIMACS</string>
+ </property>
+ <property name="name" stdset="0" >
+ <string>optionsStore_problem_as_DIMACSAction</string>
+ </property>
+ </action>
+ </widget>
+ <layoutdefault spacing="6" margin="11" />
+ <customwidgets>
+ <customwidget>
+ <class>Q3MainWindow</class>
+ <extends>QWidget</extends>
+ <header>q3mainwindow.h</header>
+ <container>1</container>
+ </customwidget>
+ <customwidget>
+ <class>Q3TextEdit</class>
+ <extends>Q3Frame</extends>
+ <header>q3textedit.h</header>
+ </customwidget>
+ </customwidgets>
+ <resources/>
+ <connections/>
+</ui>

Deleted: sandbox/SOC/2006/mincut-maxflow/trunk/apps/segmentation/src/segmentationbase.ui.h
==============================================================================
--- sandbox/SOC/2006/mincut-maxflow/trunk/apps/segmentation/src/segmentationbase.ui.h 2008-08-11 17:25:44 EDT (Mon, 11 Aug 2008)
+++ (empty file)
@@ -1,118 +0,0 @@
-/****************************************************************************
-** ui.h extension file, included from the uic-generated form implementation.
-**
-** If you want to add, delete, or rename functions or slots, use
-** Qt Designer to update this file, preserving your code.
-**
-** You should not define a constructor or destructor in this file.
-** Instead, write your code in functions called init() and destroy().
-** These will automatically be called by the form's constructor and
-** destructor.
-*****************************************************************************/
-
-
-void SegmentationBase::fileNew()
-{
-
-}
-
-
-void SegmentationBase::fileOpenImage()
-{
-
-}
-
-
-void SegmentationBase::fileOpenMask()
-{
-
-}
-
-
-void SegmentationBase::fileSave()
-{
-
-}
-
-
-void SegmentationBase::fileSaveAs()
-{
-
-}
-
-
-void SegmentationBase::filePrint()
-{
-
-}
-
-
-void SegmentationBase::fileExit()
-{
-
-}
-
-
-void SegmentationBase::editUndo()
-{
-
-}
-
-
-void SegmentationBase::editRedo()
-{
-
-}
-
-
-void SegmentationBase::editCut()
-{
-
-}
-
-
-void SegmentationBase::editCopy()
-{
-
-}
-
-
-void SegmentationBase::editPaste()
-{
-
-}
-
-
-void SegmentationBase::editFind()
-{
-
-}
-
-
-void SegmentationBase::helpIndex()
-{
-
-}
-
-
-void SegmentationBase::helpContents()
-{
-
-}
-
-
-void SegmentationBase::helpAbout()
-{
-
-}
-
-void SegmentationBase::fileNewMask()
-{
-
-}
-
-void SegmentationBase::storeProblemAsDimacsFile( bool )
-{
-
-}
-


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk