ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
qt_utils.h
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // - CloudViewer: www.cloudViewer.org -
3 // ----------------------------------------------------------------------------
4 // Copyright (c) 2018-2024 www.cloudViewer.org
5 // SPDX-License-Identifier: MIT
6 // ----------------------------------------------------------------------------
7 
8 #pragma once
9 
10 #include <Eigen/Core>
11 #include <QtCore>
12 #include <QtOpenGL>
13 
14 #include "feature/types.h"
15 #include "util/bitmap.h"
16 #include "util/types.h"
17 
18 namespace colmap {
19 
20 Eigen::Matrix4f QMatrixToEigen(const QMatrix4x4& matrix);
21 
22 QMatrix4x4 EigenToQMatrix(const Eigen::Matrix4f& matrix);
23 
24 QImage BitmapToQImageRGB(const Bitmap& bitmap);
25 
26 void DrawKeypoints(QPixmap* image,
27  const FeatureKeypoints& points,
28  const QColor& color = Qt::red);
29 
30 QPixmap ShowImagesSideBySide(const QPixmap& image1, const QPixmap& image2);
31 
32 QPixmap DrawMatches(const QPixmap& image1,
33  const QPixmap& image2,
34  const FeatureKeypoints& points1,
35  const FeatureKeypoints& points2,
36  const FeatureMatches& matches,
37  const QColor& keypoints_color = Qt::red);
38 
39 } // namespace colmap
std::shared_ptr< core::Tensor > image
int points
math::float4 color
QPixmap DrawMatches(const QPixmap &image1, const QPixmap &image2, const FeatureKeypoints &points1, const FeatureKeypoints &points2, const FeatureMatches &matches, const QColor &keypoints_color)
Definition: qt_utils.cc:109
QImage BitmapToQImageRGB(const Bitmap &bitmap)
Definition: qt_utils.cc:59
void DrawKeypoints(QPixmap *pixmap, const FeatureKeypoints &points, const QColor &color)
Definition: qt_utils.cc:86
Eigen::Matrix4f QMatrixToEigen(const QMatrix4x4 &matrix)
Definition: qt_utils.cc:39
QMatrix4x4 EigenToQMatrix(const Eigen::Matrix4f &matrix)
Definition: qt_utils.cc:49
std::vector< FeatureKeypoint > FeatureKeypoints
Definition: types.h:77
std::vector< FeatureMatch > FeatureMatches
Definition: types.h:80
QPixmap ShowImagesSideBySide(const QPixmap &image1, const QPixmap &image2)
Definition: qt_utils.cc:73
constexpr Rgb red(MAX, 0, 0)