当前位置:网站首页>Opencv image enhancement
Opencv image enhancement
2022-04-22 06:10:00 【From deliberate to habit】
// Mask , Two methods of image enhancement
cols = src.cols * src.channels();
rows = src.rows;
int offset = src.channels();
Mat dst1 = Mat::zeros(src.size(), src.type());
/*for (int row = 1; row < rows; row++)
{
const uchar* current = src.ptr<uchar>(row);
const uchar* previous = src.ptr<uchar>(row - 1);
const uchar* next = src.ptr<uchar>(row + 1);
uchar* output = img.ptr<uchar>(row);
for (int col = offset; col < cols; col++)
output[col] = saturate_cast<uchar>(5 * current[col] - (current[col - offset] + current[col + offset] + previous[col] + next[col]));
}*/
Mat kernel = (Mat_<char>(3, 3) << 0, -1, 0, -1, 5, -1, 0, -1, 0);
filter2D(src, dst1, src.depth(),kernel);
版权声明
本文为[From deliberate to habit]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204220542471065.html
边栏推荐
- Part 85 leetcode sword refers to offer dynamic programming (II) frog jumping steps
- I/O多路复用(select/poll/epoll)
- Jeecgboot online development 3
- 记录AD软件学习之坑
- On the relationship between the Euler angle of RT matrix and the type of pose in Halcon in hand eye calibration
- Halcon and opencv or Halcon configuration modify the inheritance value of the included directory and Library Directory
- After compiling the official program of punctual atom stm32f429, it cannot be downloaded with j-link
- CMake及交叉工具编译链的安装使用
- Compiling OpenSSL of arm64 on M1 chip
- Experience of constructing H-bridge with MOS tube
猜你喜欢

蓝桥杯嵌入式扩展板学习之光敏电阻

LeetCode: 322. Change exchange (dynamic programming, recursion, memo recursion and backtracking)

Initial knowledge of data linked list

Jeecgboot online development 3

Characteristics and usage of QT signal and slot

蓝桥杯嵌入式扩展板学习之DHT11

蓝桥杯嵌入式扩展板学习之ADC按键

Part 75 leetcode exercise (8) 8 String to integer

Installation of QT learning

AD5724 bipolar ADC
随机推荐
Characteristics and usage of QT signal and slot
Setting time and date display of QT learning
Blue Bridge Cup embedded expansion board learning lis302dl
Geojson file ShapeFile file batch conversion gadget
标准输入、标准输出、标准错误 重定向及管道
deep learning object detection 精选
stm32单片机与LD3320语音模块交互法一
qt.qpa.plugin: Could not find the Qt platform plugin “xcb“ in ““
LeetCode: 322. Change exchange (dynamic programming, recursion, memo recursion and backtracking)
deep learning object detection
Chapter 86 leetcode refers to offer dynamic programming (III) maximum profit of stock
蓝桥杯嵌入式省赛第七届:模拟液位检测告警系统”
蓝桥杯嵌入式扩展板学习之光敏电阻
通用定时器
AD5724 双极性ADC
jeecgboot开发经验过程
ADC
VB operation, Excel format setting and printing page setting (Simplified)
STM32 learning note 2 - set GPIO register to realize running water lamp
Interaction method I between STM32 single chip microcomputer and ld3320 voice module