搜索资源列表
取颜色
- 一个用鼠标拾取屏幕颜色的程序,在鼠标移动的过程中取得屏幕的颜色,并记录移动点的坐标等-A program for get screen color with mouse.Get the screen color as the mouse moving and remember the coordinate which the mouse pass by.
liujunpeng03081528
- 实验内容: 1 实现扫描转换多边形的算法填充多边形。 实现内容: 1, 可以画任意多边形。 2, 三角形也是通过扫描转换多边形的算法实现。 具体实现: 画多边形用moveto(),lineto(),两个函数实现画没一条边。 构造ET表,AEL表,通过这两个表填充多边形。 画图步骤: 1. 取顶点:用n记录顶点个数,按下鼠标开始取点,第二次按下取得第二个顶点,第i次按下取得第i 个顶点。取得的顶点放到Verex[]中。 2. 画多边形:按下菜单按钮----多
hsv_detection
- 本例程提供OpenCV使用者以鼠标选定窗口中图片区域,并侦测选定区域内的色调hue 及饱合度saturation 最大值最小值。适用于影像侦测肤色范围,程序终止后自动记录侦测结果于硬盘内。
基本画线实现算法
- 新建一个C++Builder项目 设置Form1的font为“宋体,小五” 在Form1中添加一个TRadioGroup组件rgDrawWhat供选择画什么图形;添加一个Tbutton组件colorBtn和一个TcolorDialog组件ColorDialog1;添加一个TImage组件Image1。 3、 将当前项目保存在自己实验文件夹的exp1子文件夹中(以防错误操作而前功尽弃)。 编写colorBtn的OnClick事件,激活ColorDialog1,并获取所选择的颜色: if (Col
MouseTrackForTablet
- 主要程序模块包括: (1) 鼠标事件捕获:对点击鼠标左键、拖动鼠标、松开左键等动作进行跟踪。 (2) 鼠标坐标捕获:把捕获的鼠标事件:点击左键、拖动鼠标、松开左键作为一组输入的图形,记录下图形的坐标轨迹。 -Main program modules include: (1) to capture mouse events: on the left mouse button, drag the mouse, release the left to track such act
txx
- 1) 直线的生成 内容:用Bresenham算法画直线 要求: 将象素网格表现出来,建立网格坐标系 用橡皮筋的形式输入参数 鼠标移动时,显示鼠标当前位置 显示判别式的计算过程和下一点的选择策略 记录生成点的坐标,建议用表的形式 图形生成过程可以重复进行 2) 圆弧的生成 内容:用Bresenham算法画圆 要求: 将象素网
Graph
- 将象素网格表现出来,建立网格坐标系 用橡皮筋的形式输入参数 鼠标移动时,显示鼠标当前位置 显示判别式的计算过程和下一点的选择策略 记录生成点的坐标,建议用表的形式 图形生成过程可以重复进行 - pixel grid will be shown, the establishment of the grid coordinate system ɧ
mouse-draw
- 用鼠标在C**View区画相应的直线,可以保存记录-mouse draw save
sierpinski
- 用鼠标指定随意三个点,生成sierpinski垫片。记录左键单击次数,用此坐标作为初始点。-Specify arbitrary three points with the mouse, generate sierpinski gasket. Left-click the record number, use this as a starting point coordinates.
test
- 读取视频,获取鼠标点击的当前点,并保存到指定的文件夹下面,可以用以记录点击过程。-Reads the video, mouse click to obtain the current point, and saved to the specified folder, you can click on to record the process.
CaptureMouse
- 用鼠标在图像上框选出想要的目标,将自动保存该目标并记录框选的位置-Using the mouse to the desired object on the image, the object will be automatically saved and the selected position will be recorded.
实验一
- MFC+OPENGL实现Windows自带绘图工具效果,实现鼠标交互,平面记录多条直线(MFC+OPENGL draw lines,the mathod of which looks same to the drawing method in Windows)
Bspine
- 主要功能是根据任意给定控制点,绘制B样条曲线。可以用鼠标、键盘输入控制点,并能记录输入控制点的坐标。也包含清除、退出等基本的GUI功能。(Drawing B-spline curve according to any given control point.)