基于坐标指向图像 [英] Pointing image based on coordinates

查看:86
本文介绍了基于坐标指向图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨朋友们,

我有图像坐标,如X1,Y1,X2和Y2。我想基于其坐标突出显示图像部分。我用谷歌搜索,但我无法找到解决方案。请帮助我.....

解决方案

在MS GUI中突出显示选择的标准方法是反转颜色。所以你要做的是访问图像位图数据(更快地使用位图C# [ ^ ]和1 - 补充所需的像素。



或者,您可以考虑通过将所有三个颜色分量乘以一个公因子来增加亮度(说 1.33 ),但你需要限制因子以避免饱和,这可能会导致颜色漂移。所以在实践中,使用 Min(1.33,255。/ Red,255。/ Green,255。/ Blue)。出于这个原因,亮度增强不适用于已经很亮的区域。


嗨朋友们,感谢大家的建议。我找到了另一个链接的解决方案....



http ://odyniec.net/projects/imgareaselect/examples.html [ ^ ]

Hi friends,
I have coordinates of image such as X1,Y1,X2 and Y2. I want to highlight image part based upon its coordinates. I googled it but I am not able to find solutions. Please help me.....

解决方案

The standard way to highlight selections in MS GUIs is to invert the colors. So what you do is get access to the image bitmap data (Work with bitmaps faster in C#[^]) and 1-complement the desired pixels.

Alternatively, you can think of increasing the luminance by multiplying all three color components by a common factor (say 1.33), but you will need to limit the factor to avoid saturation, that could induce a color drift. So in practice, use Min(1.33, 255. / Red, 255. / Green, 255. / Blue). For this reason, luminance enhancement will not work on already light areas.


Hi friends, thanks all for the suggestions. I found another solutions that link is....

http://odyniec.net/projects/imgareaselect/examples.html[^]


这篇关于基于坐标指向图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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