Skip to content

Commit

Permalink
implemented the calibration
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandrequ committed Dec 16, 2024
1 parent f13cd02 commit 5fee14e
Show file tree
Hide file tree
Showing 2 changed files with 530 additions and 670 deletions.
222 changes: 2 additions & 220 deletions arcjetCV/gui/arcjetCV.ui
Original file line number Diff line number Diff line change
Expand Up @@ -18,231 +18,13 @@
<item>
<widget class="QTabWidget" name="tabWidget">
<property name="currentIndex">
<number>1</number>
<number>0</number>
</property>
<widget class="QWidget" name="tab_8">
<attribute name="title">
<string>Calibrate</string>
</attribute>
<layout class="QGridLayout" name="gridLayout_4">
<item row="3" column="3">
<spacer name="verticalSpacer_3">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Fixed</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>15</height>
</size>
</property>
</spacer>
</item>
<item row="0" column="3" rowspan="2">
<widget class="QGroupBox" name="groupBox_5">
<property name="maximumSize">
<size>
<width>350</width>
<height>16777215</height>
</size>
</property>
<property name="title">
<string>Load images</string>
</property>
<layout class="QGridLayout" name="gridLayout_10">
<item row="0" column="0">
<widget class="QPushButton" name="pushButton">
<property name="text">
<string>Load Calibration Images</string>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QPushButton" name="pushButton_2">
<property name="text">
<string>Select Orientation Images</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item row="0" column="1" rowspan="6">
<widget class="QWidget" name="Window_calib" native="true">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>741</width>
<height>200</height>
</size>
</property>
</widget>
</item>
<item row="2" column="3">
<widget class="QListView" name="listView_calibration_imgs">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Minimum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
</widget>
</item>
<item row="6" column="0" colspan="2">
<widget class="QTextBrowser" name="textBrowser_calibration_values">
<property name="maximumSize">
<size>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
</widget>
</item>
<item row="6" column="3">
<widget class="QGroupBox" name="groupBox_4">
<property name="minimumSize">
<size>
<width>300</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>350</width>
<height>16777215</height>
</size>
</property>
<property name="title">
<string>Calibration Pattern Parameters</string>
</property>
<layout class="QGridLayout" name="gridLayout_9">
<item row="4" column="0" colspan="2">
<widget class="QLabel" name="label_23">
<property name="text">
<string>Distance per pixel:</string>
</property>
</widget>
</item>
<item row="1" column="4">
<widget class="QSpinBox" name="spinBox_pattern_ny">
<property name="value">
<number>9</number>
</property>
</widget>
</item>
<item row="2" column="0" colspan="2">
<widget class="QLabel" name="label_diag_len">
<property name="text">
<string>Diagonal distance:</string>
</property>
</widget>
</item>
<item row="3" column="0" colspan="2">
<widget class="QLabel" name="label_24">
<property name="text">
<string>Length units:</string>
</property>
</widget>
</item>
<item row="1" column="2">
<widget class="QSpinBox" name="spinBox_pattern_nx">
<property name="value">
<number>4</number>
</property>
</widget>
</item>
<item row="1" column="0" colspan="2">
<widget class="QLabel" name="label_pattern_nxm">
<property name="text">
<string>Pattern:</string>
</property>
</widget>
</item>
<item row="1" column="3">
<widget class="QLabel" name="label_26">
<property name="text">
<string>X</string>
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QLabel" name="label_pattern_type">
<property name="text">
<string>Pattern type: </string>
</property>
</widget>
</item>
<item row="0" column="1" colspan="5">
<widget class="QComboBox" name="comboBox_pattern_type">
<item>
<property name="text">
<string>Checkerboard</string>
</property>
</item>
<item>
<property name="text">
<string>Asymmetric Dots</string>
</property>
</item>
</widget>
</item>
<item row="2" column="2" colspan="4">
<widget class="QDoubleSpinBox" name="doubleSpinBox_diag_len"/>
</item>
<item row="3" column="2" colspan="4">
<widget class="QComboBox" name="comboBox">
<item>
<property name="text">
<string>[mm]</string>
</property>
</item>
<item>
<property name="text">
<string>[in]</string>
</property>
</item>
<item>
<property name="text">
<string>[cm]</string>
</property>
</item>
</widget>
</item>
<item row="4" column="2" colspan="4">
<widget class="QDoubleSpinBox" name="doubleSpinBox"/>
</item>
<item row="6" column="0" colspan="6">
<widget class="QPushButton" name="pushButton_save_calib">
<property name="text">
<string>Save Calibration</string>
</property>
</widget>
</item>
<item row="1" column="5">
<spacer name="horizontalSpacer_2">
<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>
</widget>
</item>
</layout>
<layout class="QGridLayout" name="gridLayout_4"/>
</widget>
<widget class="QWidget" name="tab">
<attribute name="title">
Expand Down
Loading

0 comments on commit 5fee14e

Please sign in to comment.