计算机视觉图像代码程序 [英] Computer Vision image code program

查看:74
本文介绍了计算机视觉图像代码程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请在下面查看此代码:

Please look at this code below:

private void OnMouseMoved ( object sender, MouseEventArgs e ) {
            //throw new Exception( "The method or operation is not implemented." );
            mMouseMoveValid = true;
            mMouseX = e.X;
            mMouseY = e.Y;
            Invalidate();
        }



因此,我需要做的是修改此代码以同时显示图像的输出值……例如:(143,213)= 230,即x = 143,y = 213,(图像值位于这些坐标是我需要做的230像素值.

感谢您尝试



So, what I need to do is modify this code to show also the output value of the image... it is something like for example : (143,213)= 230 which is x = 143, y = 213 and (the image value at those coordinates is 230 pixel value which is what I need to do).

Thank you for trying

推荐答案

看看以下内容: ^ ]
它可能会满足您的要求.
Have a look at this: Color under Cursor in C#[^]
It probably does what you are asking for.


这篇关于计算机视觉图像代码程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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