Classes | Enumerations | Functions
UCv2Qt.h File Reference
#include <QtGui/QImage>
#include <QtGui/QColor>
#include <opencv2/core/core.hpp>
#include <rtabmap/utilite/UMath.h>
#include <rtabmap/utilite/UThread.h>
#include <stdio.h>
Include dependency graph for UCv2Qt.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  UCvMat2QImageThread
 

Enumerations

enum  uCvQtDepthColorMap { uCvQtDepthWhiteToBlack, uCvQtDepthBlackToWhite, uCvQtDepthRedToBlue, uCvQtDepthBlueToRed }
 

Functions

QImage uCvMat2QImage (const cv::Mat &image, bool isBgr=true, uCvQtDepthColorMap colorMap=uCvQtDepthWhiteToBlack, float depthMin=0, float depthMax=0)
 

Enumeration Type Documentation

◆ uCvQtDepthColorMap

Enumerator
uCvQtDepthWhiteToBlack 
uCvQtDepthBlackToWhite 
uCvQtDepthRedToBlue 
uCvQtDepthBlueToRed 

Definition at line 30 of file UCv2Qt.h.

Function Documentation

◆ uCvMat2QImage()

QImage uCvMat2QImage ( const cv::Mat image,
bool  isBgr = true,
uCvQtDepthColorMap  colorMap = uCvQtDepthWhiteToBlack,
float  depthMin = 0,
float  depthMax = 0 
)
inline

Convert a cv::Mat image to a QImage. Support depth (float32, uint16) image and RGB/BGR 8bits images.

Parameters
imagethe cv::Mat image (can be 1 channel [CV_8U, CV_16U or CV_32F] or 3 channels [CV_U8])
isBgrif 3 channels, it is BGR or RGB order.
colorMapgradient of color to use to visualize depth
depthMinfixed minimum range (m) of the depth gradient (if depthMax<=depthMin, max/min are computed based on data in depth image)
depthMaxfixed maximum range (m) of the depth gradient (if depthMax<=depthMin, max/min are computed based on data in depth image)
Returns
the QImage

Definition at line 47 of file UCv2Qt.h.



rtabmap
Author(s): Mathieu Labbe
autogenerated on Thu Jul 25 2024 02:50:25