当前位置:网站首页>Opencv 07, pixel read, change and bitmap write
Opencv 07, pixel read, change and bitmap write
2022-06-13 02:29:00 【An unforgettable squirrel】
Console Application , Pixel reading 、 Change and bitmap Write , I learned before .
Involving function
var pixel = src.Get<Vec3b>(y, x);
var newPixel = new Vec3b
{
Item0 = (byte)(255 - pixel.Item0), // B
Item1 = (byte)(255 - pixel.Item1), // G
Item2 = (byte)(255 - pixel.Item2) // R
};
dst.Set(y, x, newPixel);using (var bitmap = dst.ToBitmap()) // => OpenCvSharp.Extensions.BitmapConverter.ToBitmap(dst)
{
bitmap.Save("gray.png", ImageFormat.Png);
}边栏推荐
- Leetcode 926. 将字符串翻转到单调递增 [前缀和]
- [learning notes] xr872 GUI littlevgl 8.0 migration (display part)
- 【LeetCode-SQL】1532. Last three orders
- (novice to) detailed tutorial on machine / in-depth learning with colab from scratch
- [reading paper] generate confrontation network Gan
- Resource arrangement
- How to solve the problem of obtaining the time through new date() and writing out the difference of 8 hours between the database and the current time [valid through personal test]
- 1000粉丝啦~
- [work with notes] NDK compiles the open source library ffmpeg
- cmake_ example
猜你喜欢

03 recognize the first view component

Huawei equipment is configured with dual reflectors to optimize the backbone layer of the virtual private network

What are the differences in cache/tlb?

Hstack, vstack and dstack in numpy
![[reading papers] deep learning face representation from predicting 10000 classes. deepID](/img/40/94ac64998a34d03ea61ad0091a78bf.jpg)
[reading papers] deep learning face representation from predicting 10000 classes. deepID
![[pytorch]fixmatch code explanation (super detailed)](/img/22/66703bea0f8ee40eceb0687fcb3ad2.jpg)
[pytorch]fixmatch code explanation (super detailed)

微信云开发粗糙理解
![[pytorch] kaggle large image dataset data analysis + visualization](/img/b0/7b8aff44d6bedd7ca2c705f13a8556.jpg)
[pytorch] kaggle large image dataset data analysis + visualization
![[reading paper] generate confrontation network Gan](/img/88/950b47cac330f208c0c9e100f42b4f.jpg)
[reading paper] generate confrontation network Gan

Cumulative tax law: calculate how much tax you have paid in a year
随机推荐
智能安全配电装置如何减少电气火灾事故的发生?
Redirection setting parameters -redirectattributes
[51nod.3210] binary Statistics (bit operation)
An image is word 16x16 words: transformers for image recognition at scale
重定向设置参数-RedirectAttributes
What are the differences in cache/tlb?
[reading point paper] yolo9000:better, faster, stronger, (yolov2), integrating various methods to improve the idea of map and wordtree data fusion
[keras] generator for 3D u-net source code analysis py
AutoX. JS invitation code
Flow chart of interrupt process
[work with notes] NDK compiles the open source library ffmpeg
4.11 introduction to firmware image package
Test questions basic exercise 01 string
Stm32f4 DMA Da sine wave generator keil5 Hal library cubemx
Leetcode 93 recovery IP address
[pytorch]fixmatch code explanation - data loading
Termux SSH first shell start
Leetcode 473. 火柴拼正方形 [暴力+剪枝]
Basic exercises of test questions Fibonacci series
ROS learning-8 pit for custom action programming