MRPT  2.0.4
Macros | Functions | Variables
CImage.cpp File Reference
#include "img-precomp.h"
#include <mrpt/core/cpu.h>
#include <mrpt/core/round.h>
#include <mrpt/img/CImage.h>
#include <mrpt/io/CFileInputStream.h>
#include <mrpt/io/CFileOutputStream.h>
#include <mrpt/io/CMemoryStream.h>
#include <mrpt/math/CMatrixF.h>
#include <mrpt/math/fourier.h>
#include <mrpt/math/utils.h>
#include <mrpt/serialization/CArchive.h>
#include <mrpt/system/CTicTac.h>
#include <mrpt/system/CTimeLogger.h>
#include <mrpt/system/filesystem.h>
#include <mrpt/system/memory.h>
#include <iostream>
#include <mrpt/3rdparty/do_opencv_includes.h>
#include "CImage_impl.h"
#include <mexplus/mxarray.h>
#include "CImage.SSEx.h"
Include dependency graph for CImage.cpp:

Go to the source code of this file.

Macros

#define IMAGE_ALLOC_PERFLOG   0
 
#define MRPT_DISABLE_FULL_OPTIMIZATION
 

Functions

static std::string IMAGES_PATH_BASE (".")
 
static int interpolationMethod2Cv (TInterpolationMethod i)
 
template<typename RET = uint32_t>
constexpr RET pixelDepth2CvDepth (PixelDepth d)
 
template<typename RET = uint32_t>
RET pixelDepth2IPLCvDepth (PixelDepth d)
 
static PixelDepth cvDepth2PixelDepth (int64_t d)
 
static bool my_img_to_grayscale (const cv::Mat &src, cv::Mat &dest)
 
template<unsigned int HALF_WIN_SIZE>
void MRPT_DISABLE_FULL_OPTIMIZATION image_KLT_response_template (const uint8_t *in, const int widthStep, unsigned int x, unsigned int y, int32_t &_gxx, int32_t &_gyy, int32_t &_gxy)
 

Variables

static bool DISABLE_JPEG_COMPRESSION_value = true
 
static int SERIALIZATION_JPEG_QUALITY_value = 95
 

Macro Definition Documentation

◆ IMAGE_ALLOC_PERFLOG

#define IMAGE_ALLOC_PERFLOG   0

Definition at line 86 of file CImage.cpp.

◆ MRPT_DISABLE_FULL_OPTIMIZATION

#define MRPT_DISABLE_FULL_OPTIMIZATION

Definition at line 1929 of file CImage.cpp.

Function Documentation

◆ cvDepth2PixelDepth()

static PixelDepth cvDepth2PixelDepth ( int64_t  d)
static

Definition at line 142 of file CImage.cpp.

References mrpt::img::D16S, mrpt::img::D16U, mrpt::img::D32F, mrpt::img::D32S, mrpt::img::D64F, mrpt::img::D8S, and mrpt::img::D8U.

Referenced by mrpt::img::CImage::getPixelDepth(), and mrpt::img::CImage::serializeTo().

Here is the caller graph for this function:

◆ image_KLT_response_template()

template<unsigned int HALF_WIN_SIZE>
void MRPT_DISABLE_FULL_OPTIMIZATION image_KLT_response_template ( const uint8_t *  in,
const int  widthStep,
unsigned int  x,
unsigned int  y,
int32_t &  _gxx,
int32_t &  _gyy,
int32_t &  _gxy 
)

Definition at line 1933 of file CImage.cpp.

◆ IMAGES_PATH_BASE()

static std::string IMAGES_PATH_BASE ( "."  )
static

Referenced by mrpt::img::CImage::getExternalStorageFileAbsolutePath(), mrpt::img::CImage::getImagesPathBase(), and mrpt::img::CImage::setImagesPathBase().

Here is the caller graph for this function:

◆ interpolationMethod2Cv()

static int interpolationMethod2Cv ( TInterpolationMethod  i)
static

Definition at line 93 of file CImage.cpp.

References mrpt::img::IMG_INTERP_AREA, mrpt::img::IMG_INTERP_CUBIC, mrpt::img::IMG_INTERP_LINEAR, and mrpt::img::IMG_INTERP_NN.

Referenced by mrpt::img::CImage::scaleHalf(), and mrpt::img::CImage::scaleImage().

Here is the caller graph for this function:

◆ my_img_to_grayscale()

static bool my_img_to_grayscale ( const cv::Mat &  src,
cv::Mat &  dest 
)
static

Definition at line 948 of file CImage.cpp.

References image_SSSE3_bgr_to_gray_8u(), mrpt::cpu::SSSE3, and mrpt::cpu::supports().

Referenced by mrpt::img::CImage::grayscale().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ pixelDepth2CvDepth()

template<typename RET = uint32_t>
constexpr RET pixelDepth2CvDepth ( PixelDepth  d)

Definition at line 108 of file CImage.cpp.

References mrpt::img::D16S, mrpt::img::D16U, mrpt::img::D32F, mrpt::img::D32S, mrpt::img::D64F, mrpt::img::D8S, and mrpt::img::D8U.

Referenced by mrpt::img::CImage::resize().

Here is the caller graph for this function:

◆ pixelDepth2IPLCvDepth()

template<typename RET = uint32_t>
RET pixelDepth2IPLCvDepth ( PixelDepth  d)

Variable Documentation

◆ DISABLE_JPEG_COMPRESSION_value

bool DISABLE_JPEG_COMPRESSION_value = true
static

Definition at line 52 of file CImage.cpp.

Referenced by mrpt::img::CImage::DISABLE_JPEG_COMPRESSION().

◆ SERIALIZATION_JPEG_QUALITY_value

int SERIALIZATION_JPEG_QUALITY_value = 95
static

Definition at line 53 of file CImage.cpp.

Referenced by mrpt::img::CImage::SERIALIZATION_JPEG_QUALITY().




Page generated by Doxygen 1.8.14 for MRPT 2.0.4 Git: 33de1d0ad Sat Jun 20 11:02:42 2020 +0200 at sáb jun 20 17:35:17 CEST 2020