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

Commit

Permalink
end
Browse files Browse the repository at this point in the history
  • Loading branch information
losehu committed Oct 29, 2022
1 parent 74be4bf commit 9d03af7
Show file tree
Hide file tree
Showing 51 changed files with 249 additions and 4,357 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
# 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协议,是开源的。
RUBO UDIPM遵循GPLv3协议,是开源的。

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

Expand Down
Binary file modified RUBO UDIPM.exe
Binary file not shown.
2 changes: 1 addition & 1 deletion Source/QT Source/change-view/IPM/change-view.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ void init_para() {
void out_to_clip(Mat un_warpMatrix)
{
QClipboard *clipboard = QApplication::clipboard();
string out_mat="";
string out_mat="double change_un_Mat[3][3] =";
for(int i=0; i<un_warpMatrix.rows; i++){
if(i==0) out_mat += "{{";
for(int j=0; j<un_warpMatrix.cols; j++)
Expand Down
2 changes: 2 additions & 0 deletions Source/QT Source/change-view/IPM/ipm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,8 @@ void IpmWindow::on_save_triggered()
if (!filename_pic.isNull())
{
//fileName是文件名
// cvtColor(src1, src1, COLOR_BGR2RGB);

Mat2QImage(src1).save(filename_pic,"BMP");
}
}
Expand Down
5 changes: 0 additions & 5 deletions Source/QT Source/change-view/MENU/menu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,6 @@ void MenuWindow::on_pushButton_clicked()

this->hide();//隐藏test窗口
emit udmshow();
}else if(ui->radioButton_udipm->isChecked())
{

this->hide();//隐藏test窗口
emit udipmshow();
}else
{
QMessageBox::information(this, tr("错误"), tr("请选择图像处理方案!"));
Expand Down
Empty file.
25 changes: 25 additions & 0 deletions Source/QT Source/change-view/UDIPM/change.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#ifndef CHANGE_H
#define CHANGE_H
//
// Created by RUBO on 2022/10/6.
//

#include "ty.h"
#include "QObject"
using namespace cv;
using namespace std;
int get_distorted_mat(string pic_name[], string pic_name_ok[], int pic_num, int conor_width, int conor_high, double parameter[]) ;
void out_to_clip();


extern string dir;
extern int conor_width ;
extern int conor_high ;
//cpp
extern double distorted_parameter[11];





#endif // CHANGE_H
15 changes: 0 additions & 15 deletions Source/QT Source/change-view/UDIPM/udipm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,24 +54,9 @@ void UdipmWindow::on_button_clear_2_clicked()

void UdipmWindow::on_button_opendir_clicked()
{
QString filePath = QFileDialog::getExistingDirectory(this, "选择图片文件夹路径...", "./");
string dir=filePath.toLocal8Bit().toStdString();



vector<string> allFileList = getFilesList(dir);
if(! path_check_ok)return;
int pic_num = allFileList.size();
if(pic_num<10){
QMessageBox::critical(this, "错误", "图片数目太少");

return;
}
string pic_name[pic_num];
pic_num = get_picname(dir, pic_name);
if(pic_num==-1)return;



}

3 changes: 2 additions & 1 deletion Source/QT Source/change-view/UDM/udm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,6 @@ cout<<InputPath<<endl;
init_windows(pic.show_width, pic.show_high); //1200--940 600-600
ui->label_pic1->setGeometry(ui->label_pic1->x(), ui->label_pic1->y(), pic.show_width, pic.show_high);


ui->label_pic1->setPixmap(QPixmap::fromImage(Mat2QImage(out1).scaled(ui->label_pic1->size())));

if(alpha){
Expand Down Expand Up @@ -526,6 +525,8 @@ void UdmWindow::on_save_triggered()

if (!filename_pic.isNull())
{
cvtColor(out1, out1, COLOR_BGR2RGB);

Mat2QImage(out1).save(filename_pic,"BMP");
}

Expand Down
4 changes: 3 additions & 1 deletion Source/QT Source/change-view/change-view.pro
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ SOURCES += \
IPM/ipm.cpp \
IPM/rubo_label.cpp \
MENU/menu.cpp \
UDIPM/change.cpp \
UDIPM/udipm.cpp \
UDM/all.cpp \
UDM/distorted.cpp \
Expand All @@ -43,6 +44,7 @@ HEADERS += \
IPM/ipm.h \
IPM/rubo_label.h \
MENU/menu.h \
UDIPM/change.h \
UDIPM/udipm.h \
UDM/all.h \
UDM/distorted.h \
Expand Down Expand Up @@ -88,7 +90,7 @@ TARGET="RUBO UDIPM"


#版本信息
VERSION = 1.5.0
VERSION = 1.6.0

#图标

Expand Down
5 changes: 3 additions & 2 deletions Source/QT Source/change-view/change-view.pro.user
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE QtCreatorProject>
<!-- Written by QtCreator 8.0.1, 2022-10-17T21:34:44. -->
<!-- Written by QtCreator 8.0.1, 2022-10-29T22:54:12. -->
<qtcreator>
<data>
<variable>EnvironmentId</variable>
Expand Down Expand Up @@ -102,7 +102,7 @@
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value>
<value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value>
<value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">true</value>
<valuelist type="QVariantList" key="QtProjectManager.QMakeBuildStep.SelectedAbis"/>
</valuemap>
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1">
Expand Down Expand Up @@ -164,6 +164,7 @@
<value type="bool" key="RunConfiguration.UseLibrarySearchPath">true</value>
<value type="bool" key="RunConfiguration.UseQmlDebugger">false</value>
<value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">true</value>
<value type="QString" key="RunConfiguration.WorkingDirectory.default">C:/Users/RUPC/Desktop/github/RUBO-IPM/QT-Source/change-view</value>
</valuemap>
<value type="qlonglong" key="ProjectExplorer.Target.RunConfigurationCount">1</value>
</valuemap>
Expand Down
17 changes: 0 additions & 17 deletions Source/QT Source/change-view/debug/object_script.RUBO IPM.Debug

This file was deleted.

17 changes: 0 additions & 17 deletions Source/QT Source/change-view/debug/object_script.change-view.Debug

This file was deleted.

17 changes: 2 additions & 15 deletions Source/QT Source/change-view/menu.ui
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<property name="geometry">
<rect>
<x>100</x>
<y>10</y>
<y>30</y>
<width>130</width>
<height>20</height>
</rect>
Expand All @@ -32,19 +32,6 @@
<string>逆 透 视</string>
</property>
</widget>
<widget class="QRadioButton" name="radioButton_udipm">
<property name="geometry">
<rect>
<x>100</x>
<y>90</y>
<width>130</width>
<height>20</height>
</rect>
</property>
<property name="text">
<string>去畸变+逆透视</string>
</property>
</widget>
<widget class="QPushButton" name="pushButton">
<property name="geometry">
<rect>
Expand All @@ -62,7 +49,7 @@
<property name="geometry">
<rect>
<x>100</x>
<y>50</y>
<y>80</y>
<width>130</width>
<height>20</height>
</rect>
Expand Down
Binary file removed Source/QT Source/change-view/release/all.o
Binary file not shown.
Binary file not shown.
Binary file removed Source/QT Source/change-view/release/change-view.o
Binary file not shown.
Binary file not shown.
Binary file removed Source/QT Source/change-view/release/distorted.o
Binary file not shown.
Binary file removed Source/QT Source/change-view/release/file.o
Binary file not shown.
Binary file removed Source/QT Source/change-view/release/ipm.o
Binary file not shown.
Binary file removed Source/QT Source/change-view/release/main.o
Binary file not shown.
Binary file removed Source/QT Source/change-view/release/menu.o
Binary file not shown.
Loading

0 comments on commit 9d03af7

Please sign in to comment.