C ++找到图像中最亮和最暗的像素坐标? [英] C++ Find the brightest and darkest pixel coordinates in an image?
本文介绍了C ++找到图像中最亮和最暗的像素坐标?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
使用C ++查找图像中最亮和最暗的像素坐标?
Find the brightest and darkest pixel coordinates in an image using C++?
推荐答案
对于压缩图像;在(内存)DC上绘制图像并 GetPixel API获取值并进行比较。
对于未压缩的图像:您还可以访问内存中的图像并获取其数据,但这取决于内部数据格式。
For compressed images; draw the image on a (memory) DC and GetPixel API to get the values and compare them.
For uncompressed images: You can also access the image in the memory and fetch its data, but it depends on the internal data format.
这篇关于C ++找到图像中最亮和最暗的像素坐标?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文