Skip to content

Commit

Permalink
Small bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Brit0sh committed Nov 23, 2023
1 parent fb97bf8 commit 037e05f
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 10 deletions.
9 changes: 8 additions & 1 deletion GUI/Live_view_FLIR.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,9 +315,16 @@ def live_view(self):
scale_percent = 15 # percent of original size
width = int(width * scale_percent / 100)
height = int(height * scale_percent / 100)

#ensure dims are even to prevent diagonal cut in resized image
if (width % 2) != 0:
width = (width + 1)
if (height % 2) != 0:
height = (height + 1)

dim = (width, height)

# resize image

resized = cv2.resize(img_conv.GetNDArray(), dim, interpolation=cv2.INTER_AREA)

# Release image
Expand Down
4 changes: 2 additions & 2 deletions GUI/scAnt_GUI_mw.py
Original file line number Diff line number Diff line change
Expand Up @@ -1189,7 +1189,7 @@ def setupUi(self, MainWindow):
self.label_focalLengthIn35mmFormat.setObjectName("label_focalLengthIn35mmFormat")
self.gridLayout_13.addWidget(self.label_focalLengthIn35mmFormat, 9, 0, 1, 1)
self.label = QtWidgets.QLabel(self.frame_exinf)
self.label.setMaximumSize(QtCore.QSize(16777215, 18))
self.label.setMaximumSize(QtCore.QSize(16777215, 30))
font = QtGui.QFont()
font.setPointSize(11)
font.setBold(True)
Expand Down Expand Up @@ -1402,7 +1402,7 @@ def setupUi(self, MainWindow):
self.label_stackImages.setObjectName("label_stackImages")
self.gridLayout_10.addWidget(self.label_stackImages, 1, 0, 1, 1)
self.label_2 = QtWidgets.QLabel(self.frame_post_processing_2)
self.label_2.setMaximumSize(QtCore.QSize(16777215, 20))
self.label_2.setMaximumSize(QtCore.QSize(16777215, 30))
font = QtGui.QFont()
font.setPointSize(11)
font.setBold(True)
Expand Down
4 changes: 2 additions & 2 deletions GUI/scAnt_GUI_mw.ui
Original file line number Diff line number Diff line change
Expand Up @@ -2293,7 +2293,7 @@
<property name="maximumSize">
<size>
<width>16777215</width>
<height>18</height>
<height>30</height>
</size>
</property>
<property name="font">
Expand Down Expand Up @@ -2720,7 +2720,7 @@
<property name="maximumSize">
<size>
<width>16777215</width>
<height>20</height>
<height>30</height>
</size>
</property>
<property name="font">
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,6 @@ All outputs within Meshroom are automatically saved in the project’s environme
* check for the option to configure end-stop connection and location (front vs back)
* add support for generic USB stepper driver via 3D printer board / custom scAnt board (tbd)
* Add DSLR support through gphoto2 under Linux
* code-clean-up: remove all old post-processing code, make a single python file that contains all post-processing functions that can be both used from the scAnt GUI as well as a standalone command line-based script
* update documentation on anaconda environment use

#### make scAnt operating system agnostic
Expand Down
4 changes: 2 additions & 2 deletions processStack.py
Original file line number Diff line number Diff line change
Expand Up @@ -611,8 +611,8 @@ def mask_images(input_paths, min_rgb, max_rgb, min_bl, min_wh, create_cutout=Fal

ap = argparse.ArgumentParser()
ap.add_argument("-p", "--path", required=True, help="Path to scAnt project")
ap.add_argument("-s", "--stacking", default=True, help="stack RAW images [True / False]")
ap.add_argument("-m", "--masking", default=True, help="mask stacked images [True / False]")
ap.add_argument("-s", "--stacking", default=True, help="stack RAW images [True / False] (True by default)")
ap.add_argument("-m", "--masking", default=True, help="mask stacked images [True / False] (True by default)")
ap.add_argument("-f", "--focus_check", default=True,
help="check whether out-of-focus images should be discarded before stacking [True / False]")
ap.add_argument("-t", "--threshold", type=float,
Expand Down
5 changes: 3 additions & 2 deletions scAnt.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,9 @@ def __init__(self):

try:
self.scanner = ScannerController()
self.homeX()
self.homeZ()
# Uncomment if prefered homing on startup
# self.homeX()
# self.homeZ()
self.scanner_initialised = True

except IndexError:
Expand Down

0 comments on commit 037e05f

Please sign in to comment.