当前位置:网站首页>VC Hacon Joint Programming genimage3extern writeimage
VC Hacon Joint Programming genimage3extern writeimage
2022-06-12 19:06:00 【Weixin 39926429】
//Les diagrammes de lecture de la programmation conjointe ont été décrits dans des articles précédents,Voir détailsvc halcon Configuration de la programmation conjointe ReadImage demo_weixin_39926429Blog de-CSDNBlogs
//Description du documentGénérer et enregistrer des imagesSur le disque dur.
void NewImage(HObject* pHobj)
{
unsigned char* image_red;
unsigned char* image_green;
unsigned char* image_blue;
int r, c;
image_red = (unsigned char*)malloc(640 * 480);
image_green =( unsigned char*) malloc(640 * 480);
image_blue = (unsigned char*)malloc(640 * 480);
for (r = 0; r < 480; r++)
for (c = 0; c < 640; c++)
{
image_red[r * 640 + c] = c % 255;
image_green[r * 640 + c] = (c + 64) % 255;
image_blue[r * 640 + c] = (c + 128) % 255;
}
//halcon Fonction générer une image
GenImage3Extern(pHobj, "byte", 640, 480, (Hlong)image_red, \
(Hlong)image_green, (Hlong)image_blue, (Hlong)free);
}
main()
{ HObject Image;
NewImage(&Image);
WriteImage(Image, "bmp", 0, "d:\\test1000.bmp");//Enregistrer l'image sur le disque dur
}
// L'image enregistrée s'ouvre comme suit

边栏推荐
- The 14th five year development plan and investment prospect analysis report of China's oil and gas pipeline engineering construction 2022-2027
- 六石认知学:大脑的显速与潜速
- Operational research optimization of meituan intelligent distribution system - Notes
- Leetcode 474. 一和零
- Cookie & Session & kaptcha驗證碼
- 什么是网络代理
- 【矩阵论 & 图论】期末考试复习思维导图
- Wincc7.5 SP1 method for adjusting picture size to display resolution
- 觀察網站的頁面
- RT thread simulator builds lvgl development and debugging environment
猜你喜欢

Chrome browser solves cross domain problems

Have a meal, dry pot, fat intestines + palm treasure!
![leetcode:6097. Match [set record + query one by one with the same length] after replacing characters](/img/03/d8286742bacf25b62c7dc3dcb0733e.png)
leetcode:6097. Match [set record + query one by one with the same length] after replacing characters

liunx部署Seata(Nacos版)

YOLOX网络结构详解

In 2021, the global revenue of chlorinated polyvinyl chloride (CPVC) was about $1809.9 million, and it is expected to reach $3691.5 million in 2028
![[image denoising] image denoising based on regularization with matlab code](/img/d9/74f4d9cdb4bfe157ba781ec8f6a184.png)
[image denoising] image denoising based on regularization with matlab code

no available service ‘null‘ found, please make sure registry config correct

收获满满的下午

Research Report on the overall scale, major manufacturers, major regions, products and application segments of lifeboats in the global market in 2022
随机推荐
Order allocation strategy for instant delivery: from modeling and Optimization - Notes
觀察網站的頁面
MySQL数据库(28):变量 variables
tarfile解压嵌套tar
leetcode:6095. 强密码检验器 II【简单模拟 + 不符合直接False】
Vue - Advanced Vue router routing (2) (replace attribute, programming route navigation, caching route components, and exclusive hooks for routes)
国内如何下载ProxyStrike
美团获得小样本学习榜单FewCLUE第一!Prompt Learning+自训练实战
[image denoising] image denoising based on regularization with matlab code
The Bean Validation API is on the classpath but no implementation could be found
原生Servlet - 文件的Upload&Download
Market development planning and investment prospect analysis report of Chinese government investment and financing platform 2022-2027
[5gc] Introduction to three SSC (session and service continuity) modes
leetcode:98. 统计得分小于 K 的子数组数目【双指针 + 计算子集个数 + 去重】
The practice of machine learning in meituan distribution system: restoring the real world with technology - Notes
leetcode:6094. Company name [group enumeration + cannot repeat set intersection + product Cartesian product (repeat indicates length)]
SCI Writing - Methodology
leetcode:5259. 计算应缴税款总额【简单模拟 + 看看在哪个区间】
On how to make digital transformation after the loan of large policy banks- Yixinhuachen
In 2021, the global revenue of chlorinated polyvinyl chloride (CPVC) was about $1809.9 million, and it is expected to reach $3691.5 million in 2028