如何更改图像的颜色直方图? [英] How Can I Change The Color Histogram Of An Image?

查看:235
本文介绍了如何更改图像的颜色直方图?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hi
我想创建一个图像处理项目。

在这个项目中我需要加载图像并制作颜色直方图,然后通过更改直方图来更改图片但是我不知道怎么办。

hi I'd like to create a image processing project.
in this project i need to load an image and make its color histogram then change the picture by changing in the histogram.but i do not know how can i do it.

推荐答案

图像中的直方图是图像中使用的颜色的频率。图像对于特定图像不是唯一的,并且在其中没有位置信息。许多图像可能具有完全相同的直方图。



因此您无法通过其直方图更改图像颜色。



查找OpenCV,它可能会有所帮助。或者C#中的Bitmap类允许逐个像素地获取和设置颜色。
The histogram from an image is the frequency of colours used in an image. An image is not unique for a specific image and has no position information in it. It is possible that many images can have the exact same histogram.

So you cannot change an images colours via its histogram.

Look up OpenCV, it may help. Or Bitmap class in C# allows to get and set colours pixel by pixel.


这篇关于如何更改图像的颜色直方图?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆