Project

General

Profile

BitmapToolkit Scol plugin
ConversionTools Class Reference

#include <ScolConvert.h>

Static Public Member Functions

static void ScolBitmapToMatRGB (PtrObjBitmap scolBitmap, cv::Mat &mat)
 
static void ScolBitmapToMatRGBA (PtrObjBitmap scolBitmap, PtrObjBitmap scolBitmap8, cv::Mat &mat)
 
static void MatToScolBitmapRGB (cv::Mat mat, PtrObjBitmap scolBitmap)
 
static void MatToScolBitmapBGR (cv::Mat mat, PtrObjBitmap scolBitmap)
 
static void MatToScolBitmapRGBA (cv::Mat mat, PtrObjBitmap scolBitmap, PtrObjBitmap scolBitmap8)
 
static void Blend (cv::Mat &base, const cv::Mat &top, float mix)
 
static void Blend (cv::Mat &base, cv::Mat &abase, const cv::Mat &top, const cv::Mat &atop, float mix)
 
static int GetScolBitmapAlignment (int width, int nbcomponents)
 
static cv::Mat ScolBitmapToMat (PtrObjBitmap scolBitmap)
 
static cv::Mat ScolBitmapBufferToMat (void *buffer, int width, int height, int nbcomponents, bool align=true)
 
static bool ClipBitmapRect (const cv::Mat src, cv::Rect &srect, const cv::Mat dst, cv::Rect &drect)
 

Detailed Description

This class do not need to be instanciated, as all her member functions are static.

Definition at line 40 of file ScolConvert.h.

Member Function Documentation

◆ Blend() [1/2]

void ConversionTools::Blend ( cv::Mat &  base,
const cv::Mat &  top,
float  mix 
)
static

Definition at line 474 of file ScolConvert.cpp.

◆ Blend() [2/2]

void ConversionTools::Blend ( cv::Mat &  base,
cv::Mat &  abase,
const cv::Mat &  top,
const cv::Mat &  atop,
float  mix 
)
static

Definition at line 567 of file ScolConvert.cpp.

◆ ClipBitmapRect()

bool ConversionTools::ClipBitmapRect ( const cv::Mat  src,
cv::Rect &  srect,
const cv::Mat  dst,
cv::Rect &  drect 
)
static

Definition at line 638 of file ScolConvert.cpp.

◆ GetScolBitmapAlignment()

int ConversionTools::GetScolBitmapAlignment ( int  width,
int  nbcomponents 
)
static

Definition at line 576 of file ScolConvert.cpp.

◆ MatToScolBitmapBGR()

void ConversionTools::MatToScolBitmapBGR ( cv::Mat  mat,
PtrObjBitmap  scolBitmap 
)
static

Definition at line 278 of file ScolConvert.cpp.

◆ MatToScolBitmapRGB()

void ConversionTools::MatToScolBitmapRGB ( cv::Mat  mat,
PtrObjBitmap  scolBitmap 
)
static

Definition at line 258 of file ScolConvert.cpp.

◆ MatToScolBitmapRGBA()

void ConversionTools::MatToScolBitmapRGBA ( cv::Mat  mat,
PtrObjBitmap  scolBitmap,
PtrObjBitmap  scolBitmap8 
)
static

Definition at line 300 of file ScolConvert.cpp.

◆ ScolBitmapBufferToMat()

cv::Mat ConversionTools::ScolBitmapBufferToMat ( void *  buffer,
int  width,
int  height,
int  nbcomponents,
bool  align = true 
)
static

Definition at line 611 of file ScolConvert.cpp.

◆ ScolBitmapToMat()

cv::Mat ConversionTools::ScolBitmapToMat ( PtrObjBitmap  scolBitmap)
static

Definition at line 585 of file ScolConvert.cpp.

◆ ScolBitmapToMatRGB()

void ConversionTools::ScolBitmapToMatRGB ( PtrObjBitmap  scolBitmap,
cv::Mat &  mat 
)
static

Definition at line 225 of file ScolConvert.cpp.

◆ ScolBitmapToMatRGBA()

void ConversionTools::ScolBitmapToMatRGBA ( PtrObjBitmap  scolBitmap,
PtrObjBitmap  scolBitmap8,
cv::Mat &  mat 
)
static

Definition at line 233 of file ScolConvert.cpp.


The documentation for this class was generated from the following files: