资源简介
基于matlab的图像目标定位,可以得到该图像的像素颜色变化明显的点的坐标。
代码片段和文件信息
clearclose all;
clc;
points = [2552.52852.52606.52894.52156.52168.52480.5;2727.52391.52559.52217.52409.52235.51959.5];
P1 = [points(11) points(21)];
P2 = [points(12) points(22)];
Pixel_D = norm(P1 - P2‘fro‘); Real_D = 300*sqrt(2);
global rate;
rate = Real_D / Pixel_D;
vanishPoint1_x = (points(11)*points(23)-points(21)*points(13))*(points(14)-points(17)) - (points(14)*points(27) - points(17)*points(24))*(points(11) - points(13));
tmp1 = ((points(24) - points(27))* (points(11) - points(13)) - (points(21) - points(23))*(points(14) - points(17)));
vanishPoint1_x = vanishPoint1_x / tmp1;
vanishPoint1_y = vanishPoint1_x * (points(24) - points(27)) + points(14)*points(27) - points(17)*points(24);
vanishPoint1_y = vanishPoint1_y / (points(14) - points(17));
vanishPoint2_x = (points(17)*points(23)-points(27)*points(13))*(points(14)-points(12)) - (points(14)*points(22) - points(12)*points(24))*(points(17) - points(13));
tmp2 = ((points(24) - points(22))* (points(17) - points(13)) - (points(27) - points(23))*(points(14) - points(12)));
vanishPoint2_x = vanishPoint2_x / tmp2;
vanishPoint2_y = vanishPoint2_x * (points(24) - points(22)) + points(14)*points(22) - points(12)*points(24);
vanishPoint2_y = vanishPoint2_y / (points(14) - points(12));
v_V1 = [vanishPoint1_x vanishPoint1_y];
v_V2 = [vanishPoint2_x vanishPoint2_y];
- 上一篇:三相逆变器仿真模型
- 下一篇:matlab实现边缘检测算法hough
相关资源
- matlab实现边缘检测算法hough
- 使用matlab安装LIBSVM及读入数据集
- 电力电子matlab仿真
-
二级倒立摆,matlab仿真,simuli
nk建模 - 多种DOA估计算法MATLAB,如MUSIC、ESPRI
- 人脸检测matlab代码程序
- hough变换检测圆的matlab程序
- 基于尺度形态学的边缘检测matlab程序
- 基于小波变换的边缘检测matlab程序
- canny边缘检测的matlab程序
- voicebox工具箱 ,,MATLAB,很多函数,
- matlab图片拼接
- 低秩表示 matlab 代码
- 基二fft快速算法的matlab代码
- 冲击电流发生器matlab程序非线性元件
- 冲击电流发生器matlab程序
- 2012年MATLAB创新奖《葡萄酒质量的评价
- Matlab坐标提取
- 基于Elman神经网络的房价预测matlab脚本
- 基于MATLAB GUI开发的TCP/IP通讯调试助手
- KNN算法代码
- 《生命游戏》的matlab实现
- 傅里叶变换轮廓术的MATLAB实现
- 基于matlab的整流器仿真
- ( 关于人脸检测的MATLAB代码
- MATLAB的系统动力学仿真.pdf
- ostu实现代码
- 有限差分声波方程正演
- matlab语音处理 gui(快放,加噪,去噪
-
基于Matlab-Simuli
nk的遥感图像处理
评论
共有 条评论