Skip to content
This repository has been archived by the owner on Jan 15, 2025. It is now read-only.

Commit

Permalink
1.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
losehu committed Aug 21, 2023
1 parent 3c263bf commit 2eaf12b
Show file tree
Hide file tree
Showing 53 changed files with 5,361 additions and 168 deletions.
55 changes: 53 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,54 @@
# RUBO-UDIPM
近期因网络问题无法将更新上传github,请移步CSDN
https://download.csdn.net/download/wu58430/86399773

github:https://github.com/wu58430/RUBO-UDIPM

提供了能同时完成去畸变与逆透视或去畸变+逆透视图像处理的上位机软件

去畸变教程:https://blog.csdn.net/wu58430/article/details/127324103

逆透视教程:https://blog.csdn.net/wu58430/article/details/126317900

去畸变+逆透视教程:https://blog.csdn.net/wu58430/article/details/127592501

如只需要上位机程序,请下载Release。

请为下载和使用此软件的每个用户阅读以下内容:

RUBO UDIPM遵循GPLv3协议,是开源的。

仅用于竞争、学习和交流,不用于商业或付费教学目的!!!!!!!

Please read the following for each user who downloads and uses this software:

Rubo IPM follows the GPLv3 protocol and is open source.

Only for competition, learning and communication, not for commercial or paid teaching purposes!!!!!!!

更新日志

2022.8.23 修复了不同版本windows兼容问题

2022.8.27 修复中文路径、视图大小异常问题,缩小程序体积

2022.9.23 增加了彩色图像显示,输出格式改为数组

2022.10.7 代码迁移至QT6.3.1环境,加入去畸变,加入保存图片功能

2022.10.29 融合两种方法,修复保存图像色彩错误问题

2023.1.12 修复去畸变+逆透视下位机代码中未考虑的可能

2023.8.21 修复结果图尺寸异常

特别鸣谢
华北电力大学(保定)欧 da jun
广东工业大学 刘 jun fan
安徽财经大学 陈 xin yun
山东农业工程学院 刘 hao xiang
哈尔滨工程大学
17届东北林业大学智能车战队

感谢TWU的兄弟提供的测试集,希望作为透视变换最快速度的指针映射法能够帮助更多队伍在智能车竞赛上大放光彩



Binary file renamed RUBO UDIPM.exe → RUBO_UDIPM.exe
Binary file not shown.
13 changes: 6 additions & 7 deletions Source/QT Source/change-view/IPM/change-view.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,7 @@ void change_view() {
warpMatrix = getPerspectiveTransform(src_coners, dst_coners);
cout << "逆矩阵solve333" << endl << endl;

double change_Mat[3][3];
for (int i = 0; i < 3; i++)
for (int j = 0; j < 3; j++)
change_Mat[i][j] = warpMatrix.at<double>(i, j);

cout << "逆矩阵solve44444" << endl << endl;
cout<<high<<" "<<width<<endl;
cout << "逆矩阵solve555" << endl << endl;
Expand Down Expand Up @@ -164,9 +161,11 @@ cout<<high<<" "<<width<<endl;
// }}

namedWindow("result", 0);
int n1 = screenX / 5 * 3 / width_end;
int n2 = screenY / 5 * 3 / high_end;
resizeWindow("result", width_end * min(n1, n2), high_end * min(n1, n2));
double n1 = 1.0*screenX * 3/5 / width_end;
double n2 =1.0* screenY * 3 /5/ high_end;


resizeWindow("result",(int) width_end * min(n1, n2),(int) high_end * min(n1, n2));
imshow("result", src1);


Expand Down
4 changes: 2 additions & 2 deletions Source/QT Source/change-view/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#############################################################################
# Makefile for building: change-view
# Makefile for building: RUBO_UDIPM
# Generated by qmake (3.1) (Qt 6.4.0)
# Project: change-view.pro
# Template: app
Expand Down Expand Up @@ -33,7 +33,7 @@ IDC = idc
IDL = midl
ZIP = zip -r -9
DEF_FILE =
RES_FILE = change-view_resource_res.o
RES_FILE = RUBO_UDIPM_resource_res.o
SED = $(QMAKE) -install sed
MOVE = move
SUBTARGETS = \
Expand Down
58 changes: 38 additions & 20 deletions Source/QT Source/change-view/Makefile.Debug

Large diffs are not rendered by default.

58 changes: 38 additions & 20 deletions Source/QT Source/change-view/Makefile.Release

Large diffs are not rendered by default.

40 changes: 40 additions & 0 deletions Source/QT Source/change-view/RUBO_UDIPM_resource.rc
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
#include <windows.h>

IDI_ICON1 ICON "C:\\Users\\RUPC\\Desktop\\RUBO-UDIPM\\Source\\QT Source\\change-view\\RUBO1-tou.ico"

VS_VERSION_INFO VERSIONINFO
FILEVERSION 1,8,0,0
PRODUCTVERSION 1,8,0,0
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
FILEFLAGS VS_FF_DEBUG
#else
FILEFLAGS 0x0L
#endif
FILEOS VOS_NT_WINDOWS32
FILETYPE VFT_DLL
FILESUBTYPE VFT2_UNKNOWN
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "000404b0"
BEGIN
VALUE "CompanyName", "RUBO\0"
VALUE "FileDescription", "MADE BY RUBO\0"
VALUE "FileVersion", "1.8.0.0\0"
VALUE "LegalCopyright", "RUBO\0"
VALUE "OriginalFilename", "RUBO_UDIPM.exe\0"
VALUE "ProductName", "RUBO UDIPM\0"
VALUE "ProductVersion", "1.8.0.0\0"
VALUE "InternalName", "\0"
VALUE "Comments", "\0"
VALUE "LegalTrademarks", "\0"
END
END
BLOCK "VarFileInfo"
BEGIN
VALUE "Translation", 0x0004, 1200
END
END
/* End of Version info */

1 change: 1 addition & 0 deletions Source/QT Source/change-view/UDM/udm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include "distorted.h"
#include "qstring"
#include"QImage"
#include "QTime"
#include<QRegularExpression>
bool alpha=1;
udm_p udm_pic;
Expand Down
9 changes: 2 additions & 7 deletions Source/QT Source/change-view/UI/ui_menu.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ class Ui_MenuWindow
QAction *action_exit;
QWidget *centralwidget;
QRadioButton *radioButton_ipm;
QRadioButton *radioButton_udipm;
QPushButton *pushButton;
QRadioButton *radioButton_udm;
QMenuBar *menubar;
Expand All @@ -47,19 +46,16 @@ class Ui_MenuWindow
centralwidget->setObjectName("centralwidget");
radioButton_ipm = new QRadioButton(centralwidget);
radioButton_ipm->setObjectName("radioButton_ipm");
radioButton_ipm->setGeometry(QRect(100, 10, 130, 20));
radioButton_ipm->setGeometry(QRect(100, 30, 130, 20));
QFont font;
font.setKerning(true);
radioButton_ipm->setFont(font);
radioButton_udipm = new QRadioButton(centralwidget);
radioButton_udipm->setObjectName("radioButton_udipm");
radioButton_udipm->setGeometry(QRect(100, 90, 130, 20));
pushButton = new QPushButton(centralwidget);
pushButton->setObjectName("pushButton");
pushButton->setGeometry(QRect(100, 130, 93, 28));
radioButton_udm = new QRadioButton(centralwidget);
radioButton_udm->setObjectName("radioButton_udm");
radioButton_udm->setGeometry(QRect(100, 50, 130, 20));
radioButton_udm->setGeometry(QRect(100, 80, 130, 20));
MenuWindow->setCentralWidget(centralwidget);
menubar = new QMenuBar(MenuWindow);
menubar->setObjectName("menubar");
Expand Down Expand Up @@ -89,7 +85,6 @@ class Ui_MenuWindow
action_exit->setShortcut(QCoreApplication::translate("MenuWindow", "Ctrl+Q", nullptr));
#endif // QT_CONFIG(shortcut)
radioButton_ipm->setText(QCoreApplication::translate("MenuWindow", "\351\200\206 \351\200\217 \350\247\206", nullptr));
radioButton_udipm->setText(QCoreApplication::translate("MenuWindow", "\345\216\273\347\225\270\345\217\230+\351\200\206\351\200\217\350\247\206", nullptr));
pushButton->setText(QCoreApplication::translate("MenuWindow", "\347\241\256\345\256\232", nullptr));
radioButton_udm->setText(QCoreApplication::translate("MenuWindow", "\345\216\273 \347\225\270 \345\217\230", nullptr));
menu_doc->setTitle(QCoreApplication::translate("MenuWindow", "\346\226\207\344\273\266", nullptr));
Expand Down
10 changes: 5 additions & 5 deletions Source/QT Source/change-view/UI/ui_udipm.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class Ui_UdipmWindow
QTextEdit *text_len;
QLabel *label_ysite;
QTextEdit *text_y3;
QPushButton *button_clear_2;
QPushButton *button_opendir;
QMenuBar *menubar;
QMenu *menu;
QStatusBar *statusbar;
Expand Down Expand Up @@ -163,9 +163,9 @@ class Ui_UdipmWindow
text_y3 = new QTextEdit(centralwidget);
text_y3->setObjectName("text_y3");
text_y3->setGeometry(QRect(1130, 320, 60, 30));
button_clear_2 = new QPushButton(centralwidget);
button_clear_2->setObjectName("button_clear_2");
button_clear_2->setGeometry(QRect(1050, 420, 93, 28));
button_opendir = new QPushButton(centralwidget);
button_opendir->setObjectName("button_opendir");
button_opendir->setGeometry(QRect(1050, 420, 93, 28));
UdipmWindow->setCentralWidget(centralwidget);
menubar = new QMenuBar(UdipmWindow);
menubar->setObjectName("menubar");
Expand Down Expand Up @@ -218,7 +218,7 @@ class Ui_UdipmWindow
button_clear->setText(QCoreApplication::translate("UdipmWindow", "\346\270\205\351\231\244", nullptr));
button_openpic->setText(QCoreApplication::translate("UdipmWindow", "\346\211\223\345\274\200\345\233\276\347\211\207", nullptr));
label_ysite->setText(QCoreApplication::translate("UdipmWindow", "\346\226\271\345\275\242\344\270\255\345\277\203\350\267\235\351\241\266\351\203\250\345\203\217\347\264\240\357\274\232", nullptr));
button_clear_2->setText(QCoreApplication::translate("UdipmWindow", "\346\240\207\345\256\232\345\233\276\350\267\257\345\276\204", nullptr));
button_opendir->setText(QCoreApplication::translate("UdipmWindow", "\346\240\207\345\256\232\345\233\276\350\267\257\345\276\204", nullptr));
menu->setTitle(QCoreApplication::translate("UdipmWindow", "\346\226\207\344\273\266", nullptr));
} // retranslateUi

Expand Down
6 changes: 3 additions & 3 deletions Source/QT Source/change-view/change-view.pro
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ QT += core gui

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

TARGET = change-view
TARGET = RUBO_UDIPM
TEMPLATE = app

# The following define makes your compiler emit warnings if you use
Expand Down Expand Up @@ -86,11 +86,11 @@ LIBS += C:\OPENCV\QT-BUILD\install\x64\mingw\lib\libopencv_*.a


#可执行文件名称
TARGET="RUBO UDIPM"
TARGET="RUBO_UDIPM"


#版本信息
VERSION = 1.6.0
VERSION = 1.8.0

#图标

Expand Down
Loading

0 comments on commit 2eaf12b

Please sign in to comment.