全方位图像极坐标遍历
来源:互联网 发布:淘宝所有类目列表 编辑:程序博客网 时间:2024/05/05 14:15
#include"stdafx.h"void on_mouse( int event, int x, int y, int flags, void* ustc) ;Mat MapSearch(Mat src);void main(){Mat image=imread("G:\\167.jpg",0);Mat output=MapSearch(image);imshow("输入图片",output);cvSetMouseCallback( "输入图片", on_mouse, 0 ); waitKey(0);}void on_mouse( int event, int x, int y, int flags, void* ustc) { CvFont font; cvInitFont(&font, CV_FONT_HERSHEY_SIMPLEX, 0.5, 0.5, 0, 1, CV_AA); if( event == CV_EVENT_LBUTTONDOWN ) { CvPoint pt = cvPoint(x,y); char temp[16]; sprintf(temp,"(%d,%d)",pt.x,pt.y); cout<<temp<<endl; } } Mat MapSearch(Mat src){double β=0.36;//遍历的角度步长double ratioH=1;//遍历的极坐标步长double tempJ = 0;//极径double angleX =0;//极角double centerX=320;double centerY=234;double innerRadius=50;//内径double outerRadius=228;//外径int x=0;//x坐标int y=0;//y坐标for(double angleX=0;angleX<360-1;angleX+=0.3)for(int tempJ=innerRadius;tempJ<outerRadius-1;tempJ+=ratioH){x=tempJ*cos(angleX)+centerX;y=tempJ*sin(angleX)+centerY;src.at<uchar>(y,x)=255;}return src;}
0 0
- 极坐标遍历全方位图像
- 全方位图像极坐标遍历
- 图像极坐标变换
- 【图像处理】图像的极坐标变换
- 图像的极坐标表示
- 图像基础:图像坐标
- 图像的Log-Polar极坐标变换
- 世界坐标与图像坐标
- 相机坐标,图像坐标,大地物理坐标
- 图像遍历
- opencv中的图像坐标
- 图像的坐标变换
- MATLAB描绘极坐标图像——polar
- 【python图像处理】极坐标变换及插值算法
- 图像极坐标变换及在OCR中的应用
- 极坐标 数组为例 图像处理 可旋转的极坐标
- 图像坐标求解三维坐标标准模板
- vc 下 用 opencv 实现的--- 遍历图像,返回值为 a 的 像素点 的坐标
- c# 获取相对路径
- Systemstate dump when connection to the instance is not possible (文档 ID 359536.1)
- Hadoop教程 第二章:Hadoop分布式文件系统[2]
- BT雷人的程序语言
- IPTABLES防火墙&&IP地址及端口过滤
- 全方位图像极坐标遍历
- manifold 流形
- 散热很重要
- Spring aop中 expression 星号(*)意思
- C各类库函数的实现(atoi,strcpy,strcmp...)
- 单例模式实例
- 一)中央空调变风量变水量整体群控节能系统(专利技术)
- c#使用椭圆签名算法制作软件序列号
- Mac设置快速锁屏