ImageProc
— 对图片数据的操作集¶
使用示例::(python)¶
1 2 3 | # coding=utf-8
# This is a sample Python script.
from minicv import ImageProc
|
操作函数¶
-
open
(ImageProcType_t)¶ 打开模块
-
close
()¶ 关闭模块
-
cvtColor
(ImageBuffer_t* src,PixelFmt_t dst_format,ImageBuffer_t* dst)¶ 数据格式转换
-
resize
(ImageBuffer_t* src, width, height, ImageBuffer_t* dst)¶ 数据缩放
-
imgCopy
(ImageBuffer_t* src, ImageBuffer_t* dst)¶ 图片内容拷贝
-
rectangle
(ImageBuffer_t* src, left, top, right, bottom)¶ 在图片上面画矩形框
-
circle
(ImageBuffer_t* src, center_x, center_y, radius)¶ 在图片上面画圆形
-
drawMarker
(ImageBuffer_t* src, x, y, type)¶ 在图片上面打水印
-
fillPoly
(ImageBuffer_t* src, x, y, color)¶ 多边形填充
-
putText
(ImageBuffer_t* src, text, left, top)¶ 在图片上写字
-
dilateErode
(ImageBuffer_t* src, ImageBuffer_t* dst, iMode, iThresh)¶ 扩张和腐蚀
-
imageAdd
(ImageBuffer_t* src, ImageBuffer_t* added, ImageBuffer_t* dst)¶ 两张图片相加
-
imageMinus
(ImageBuffer_t* src, ImageBuffer_t* minused, ImageBuffer_t* dst)¶ 两张图片相减
-
imageElementMultiply
(ImageBuffer_t* src, ImageBuffer_t* multiplied, ImageBuffer_t* dst)¶ 两张图片相乘
-
imageElementDivide
(ImageBuffer_t* src, ImageBuffer_t* divied, ImageBuffer_t* dst)¶ 两张图片相除
-
writeImageToFile
(ImageBuffer_t* src, file_name)¶ 将图片内容存储成文件