File tree Expand file tree Collapse file tree 3 files changed +18
-11
lines changed
Expand file tree Collapse file tree 3 files changed +18
-11
lines changed Original file line number Diff line number Diff line change @@ -3,9 +3,18 @@ branches:
33 only :
44 - master
55 - dev
6- os :
7- - linux
8- - osx
6+ jobs :
7+ include :
8+ - os : linux
9+ dist : xenial
10+ env : QT5=510 PPA=beineri/opt-qt-5.10.1-xenial
11+ - os : linux
12+ dist : bionic
13+ env : QT5=511 PPA=beineri/opt-qt-5.11.3-bionic
14+ # - os: osx
15+ # osx_image: xcode10.2
16+ # - os: osx
17+ # osx_image: xcode11.3
918
1019env :
1120 - CONFIG=Release
@@ -21,9 +30,7 @@ before_install:
2130 brew install opencv;
2231 brew install curl;
2332 else
24- QT_VERSION_MM=510;
25- QT_VERSION_FULL=5.10.1-xenial;
26- sudo apt-add-repository --yes ppa:beineri/opt-qt-$QT_VERSION_FULL && sudo apt-get update -qq && sudo apt-get install -qq qt${QT_VERSION_MM}base qt${QT_VERSION_MM}script qt${QT_VERSION_MM}tools && export CMAKE_PREFIX_PATH=/opt/qt${QT_VERSION_MM};
33+ sudo apt-add-repository --yes ppa:$PPA && sudo apt-get update -qq && sudo apt-get install -qy qt${QT5}base qt${QT5}script qt${QT5}multimedia && export CMAKE_PREFIX_PATH=/opt/qt${QT5};
2734 sudo apt-get install libopencv-dev curl libgl1-mesa-dev;
2835 fi
2936before_script :
Original file line number Diff line number Diff line change @@ -54,8 +54,8 @@ void ImageCanvas::loadImage(const QString &filename) {
5454
5555 _image = mat2QImage (cv::imread (_img_file.toStdString ()));
5656
57- _mask_file = file.dir ().absolutePath ()+ " /" + file.baseName () + " _mask.png" ;
58- _watershed_file = file.dir ().absolutePath ()+ " /" + file.baseName () + " _watershed_mask.png" ;
57+ _mask_file = file.dir ().absolutePath ()+ " /" + file.completeBaseName () + " _mask.png" ;
58+ _watershed_file = file.dir ().absolutePath ()+ " /" + file.completeBaseName () + " _watershed_mask.png" ;
5959
6060 _watershed = ImageMask (_image.size ());
6161 _undo_list.clear ();
@@ -88,7 +88,7 @@ void ImageCanvas::saveMask() {
8888// }
8989 watershed.save (_watershed_file);
9090 QFileInfo file (_img_file);
91- QString color_file = file.dir ().absolutePath () + " /" + file.baseName () + " _color_mask.png" ;
91+ QString color_file = file.dir ().absolutePath () + " /" + file.completeBaseName () + " _color_mask.png" ;
9292 idToColor (watershed, _ui->id_labels ).save (color_file);
9393 }
9494 _undo_list.clear ();
Original file line number Diff line number Diff line change 186186 <item >
187187 <widget class =" QDoubleSpinBox" name =" spinbox_scale" >
188188 <property name =" minimum" >
189- <double >0.500000000000000 </double >
189+ <double >0.050000000000000 </double >
190190 </property >
191191 <property name =" maximum" >
192192 <double >8.000000000000000</double >
193193 </property >
194194 <property name =" singleStep" >
195- <double >0.500000000000000 </double >
195+ <double >0.050000000000000 </double >
196196 </property >
197197 <property name =" value" >
198198 <double >1.000000000000000</double >
You can’t perform that action at this time.
0 commit comments