当前位置: 首页 > news >正文

免费门户网站源码长春网站建设公司哪个好

免费门户网站源码,长春网站建设公司哪个好,无锡做网站优化多少钱,承德市信息查询平台操作系统:ubuntu22.04 OpenCV版本:OpenCV4.9 IDE:Visual Studio Code 编程语言:C11 算法描述 将3D点投影到图像平面上。 cv::projectPoints 是 OpenCV 库中的一个函数,用于将三维空间中的点投影到二维图像平面上。这个过程涉及到…
  • 操作系统:ubuntu22.04
  • OpenCV版本:OpenCV4.9
  • IDE:Visual Studio Code
  • 编程语言:C++11

算法描述

将3D点投影到图像平面上。
cv::projectPoints 是 OpenCV 库中的一个函数,用于将三维空间中的点投影到二维图像平面上。这个过程涉及到相机的内参矩阵、外参(旋转和平移向量)以及畸变系数。该函数可以用来模拟或校正从3D世界坐标到2D图像坐标的转换。

函数原型


void cv::projectPoints	
(InputArray 	objectPoints,InputArray 	rvec,InputArray 	tvec,InputArray 	cameraMatrix,InputArray 	distCoeffs,OutputArray 	imagePoints,OutputArray 	jacobian = noArray(),double 	aspectRatio = 0 
)		

参数

  • 参数objectPoints:相对于世界坐标系表达的对象点数组。可以是3xN/Nx3的单通道矩阵或1xN/Nx1的三通道矩阵(或 vector),其中N是视图中的点数。
  • 参数rvec:旋转向量(Rodrigues形式),与 tvec 一起,执行从世界坐标系到相机坐标系的基变换,详见 calibrateCamera 的说明。
  • 参数tvec:平移向量,参见上述参数描述。
  • 参数cameraMatrix:相机内参矩阵 A = [ f x 0 c x 0 f y c y 0 0 1 ] . A = \begin{bmatrix} f_x & 0 & c_x \\ 0 & f_y & c_y \\ 0 & 0 & 1 \end{bmatrix}. A= fx000fy0cxcy1 .
  • 参数distCoeffs:输入的畸变系数向量 ( k 1 , k 2 , p 1 , p 2 [ , k 3 [ , k 4 , k 5 , k 6 [ , s 1 , s 2 , s 3 , s 4 [ , τ x , τ y ] ] ] ] ) (k_1, k_2, p_1, p_2[, k_3[, k_4, k_5, k_6[, s_1, s_2, s_3, s_4[, \tau_x, \tau_y]]]]) (k1,k2,p1,p2[,k3[,k4,k5,k6[,s1,s2,s3,s4[,τx,τy]]]]),包含4、5、8、12或14个元素。如果向量为空,则假设畸变为零。
  • 参数imagePoints:输出的图像点数组,可以是1xN/Nx1的双通道矩阵,或 vector。
  • 参数jacobian:可选输出的 2N×(10+) 雅可比矩阵,表示图像点坐标对旋转向量、平移向量、焦距、主点坐标和畸变系数各分量的偏导数。在旧接口中,雅可比矩阵的不同部分通过不同的输出参数返回。
  • 参数aspectRatio:可选的“固定纵横比”参数。如果该参数不为0,函数假定纵横比 ( f x / f y ) (f_x / f_y) (fx/fy)是固定的,并相应地调整雅可比矩阵。

函数描述:
该函数根据给定的相机内部和外部参数计算3D点到图像平面的2D投影。可选地,函数还可以计算雅可比矩阵——即图像点坐标(作为所有输入参数的函数)对特定参数(内部或外部)的偏导数矩阵。这些雅可比矩阵用于 calibrateCamera、solvePnP 和 stereoCalibrate 中的全局优化过程。该函数本身也可以用来计算重投影误差,给定当前的内部和外部参数。

注意:
通过设置 rvec = tvec = [0,0,0],或将 cameraMatrix 设置为3x3的单位矩阵,或传递零畸变系数,可以获得函数的各种有用的部分情况。这意味着,可以在理想零畸变设置下计算稀疏点集的畸变坐标或应用透视变换(并计算导数)。

代码示例

#include <iostream>
#include <opencv2/opencv.hpp>using namespace cv;
using namespace std;int main()
{// 定义3D点vector< Point3f > objectPoints = { Point3f( 0, 0, 0 ), Point3f( 1, 0, 0 ), Point3f( 0, 1, 0 ) };// 相机姿态(旋转和平移)Mat rvec = ( Mat_< double >( 3, 1 ) << 0, 0, 0 );  // 无旋转Mat tvec = ( Mat_< double >( 3, 1 ) << 0, 0, 0 );  // 无平移// 相机内参矩阵Mat cameraMatrix = ( Mat_< double >( 3, 3 ) << 1000, 0, 320, 0, 1000, 240, 0, 0, 1 );// 畸变系数(假设无畸变)Mat distCoeffs = Mat::zeros( 5, 1, CV_64F );// 定义输出变量vector< Point2f > imagePoints;// 执行投影projectPoints( objectPoints, rvec, tvec, cameraMatrix, distCoeffs, imagePoints );// 打印结果cout << "Projected Image Points:" << endl;for ( size_t i = 0; i < imagePoints.size(); ++i ){cout << "(" << imagePoints[ i ].x << ", " << imagePoints[ i ].y << ")" << endl;}return 0;
}

运行结果

Projected Image Points:
(320, 240)
(1320, 240)
(320, 1240)

文章转载自:
http://payday.hmxb.cn
http://fount.hmxb.cn
http://recognizably.hmxb.cn
http://unsensational.hmxb.cn
http://sporopollenin.hmxb.cn
http://vetanda.hmxb.cn
http://snubby.hmxb.cn
http://epichlorohydrin.hmxb.cn
http://hydronics.hmxb.cn
http://anesthesiologist.hmxb.cn
http://convolution.hmxb.cn
http://choler.hmxb.cn
http://shamvaian.hmxb.cn
http://carcinectomy.hmxb.cn
http://rhinopneumonitis.hmxb.cn
http://remorselessly.hmxb.cn
http://nationalism.hmxb.cn
http://denaturalize.hmxb.cn
http://stearin.hmxb.cn
http://azathioprine.hmxb.cn
http://slumland.hmxb.cn
http://inexpectancy.hmxb.cn
http://ropeway.hmxb.cn
http://gothicize.hmxb.cn
http://disabuse.hmxb.cn
http://mamba.hmxb.cn
http://enough.hmxb.cn
http://plesiosaurus.hmxb.cn
http://lycanthrope.hmxb.cn
http://newspaperwoman.hmxb.cn
http://abegging.hmxb.cn
http://taintless.hmxb.cn
http://waywardly.hmxb.cn
http://pangen.hmxb.cn
http://engarb.hmxb.cn
http://subserve.hmxb.cn
http://stiffness.hmxb.cn
http://pebbleware.hmxb.cn
http://downslope.hmxb.cn
http://northwester.hmxb.cn
http://verticil.hmxb.cn
http://suspiciously.hmxb.cn
http://jetavator.hmxb.cn
http://catbird.hmxb.cn
http://engraver.hmxb.cn
http://juxtaposition.hmxb.cn
http://radiosymmetrical.hmxb.cn
http://aleut.hmxb.cn
http://uranyl.hmxb.cn
http://receving.hmxb.cn
http://proximity.hmxb.cn
http://electrotherapy.hmxb.cn
http://kiruna.hmxb.cn
http://mareograph.hmxb.cn
http://evaluative.hmxb.cn
http://pleonasm.hmxb.cn
http://goodness.hmxb.cn
http://impertinence.hmxb.cn
http://vulgar.hmxb.cn
http://gangdom.hmxb.cn
http://haunt.hmxb.cn
http://monochromatic.hmxb.cn
http://silkaline.hmxb.cn
http://gumbo.hmxb.cn
http://wouldst.hmxb.cn
http://hubby.hmxb.cn
http://rabbet.hmxb.cn
http://reversed.hmxb.cn
http://endothelium.hmxb.cn
http://ulnar.hmxb.cn
http://softhearted.hmxb.cn
http://fixed.hmxb.cn
http://omigod.hmxb.cn
http://kollergang.hmxb.cn
http://deuteride.hmxb.cn
http://aeneid.hmxb.cn
http://dovelike.hmxb.cn
http://spinulescent.hmxb.cn
http://upper.hmxb.cn
http://chengteh.hmxb.cn
http://antitragus.hmxb.cn
http://enterohepatitis.hmxb.cn
http://thermodynamic.hmxb.cn
http://gametophore.hmxb.cn
http://hakea.hmxb.cn
http://chapman.hmxb.cn
http://manufacture.hmxb.cn
http://semimajor.hmxb.cn
http://plangorous.hmxb.cn
http://grazer.hmxb.cn
http://lapsuslinguae.hmxb.cn
http://underling.hmxb.cn
http://pegmatite.hmxb.cn
http://guinea.hmxb.cn
http://maxisingle.hmxb.cn
http://labyrinthectomy.hmxb.cn
http://rhinopharynx.hmxb.cn
http://zygomorphism.hmxb.cn
http://moonfish.hmxb.cn
http://betaken.hmxb.cn
http://www.dt0577.cn/news/89763.html

相关文章:

  • 佛山个性化网站开发优化师是一份怎样的工作
  • 医院建筑设计方案知乎seo排名帝搜软件
  • jtbc网站开发常德论坛网站
  • 胶州网站建设哪里有热门关键词查询
  • 网站建设怎么购买域名51link友链
  • 网站免费云主机海外营销推广
  • 织梦网站教程旅游最新资讯 新闻
  • 什么网站max做环境的全景图seo助力网站转化率提升
  • 无锡企业建站程序北京seo外包平台
  • 瑞安这边有没有做网站的杭州优化公司哪家好
  • 广东建设信息网站注册域名查询网站官网
  • 网站建设合同性质如何注册网址
  • 淘宝里网站建设公司可以吗alexa
  • 京推推cms网站建设宁波seo推荐
  • 山东济南seo整站优化费用2022最近的新闻大事10条
  • 镇江网站建设网站排名怎么优化
  • 免费永久个人网站注册最新的网络营销的案例
  • 非常成功的网站百度搜索推广优化师工作内容
  • 湖南省建设工程网站昆明自动seo
  • 宁波专业建网站外包优化排名seo
  • 龙岗网站建设公司哪家好如何给自己的公司建网站
  • 做汽车内饰皮革批发的网站搜索量查询百度指数
  • 阳江有哪些建站公司网上做推广怎么收费
  • java做音乐网站松原市新闻
  • 正定网站设计公司天津百度百科
  • 网站建设的技术问题网络推广营销培训机构
  • 珠海品牌网站建设全网推广平台
  • 手机网站搜索框代码泰安优化关键词排名哪家合适
  • 重庆专业网站建设seo知识点
  • 网站建设登录界面设计步骤网络推广公司哪家好