我正在使用单个对象的两个图像,该对象从其第一个图像开始特定程度.
我已经计算了每个图像的POSE,并使用Rodergues()将旋转矢量转换为Matrix.现在我如何计算并查看它从第一个位置旋转了多少?
我尝试了很多方法,但答案并非接近
编辑:我的相机是固定的只有物体在移动.
在我的项目中,我试图使用Entity Framework和PostgreSql.但我无法连接到我的数据库.我没有收到任何错误,只是卡住了.我认为我的问题有些不对劲app.config,但我无法找到答案.
App.config中:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<section name="entityFramework"
type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
</configSections>
<entityFramework>
<defaultConnectionFactory type="Npgsql.NpgsqlFactory, Npgsql" />
<providers>
<provider invariantName="Npgsql"
type="Npgsql.NpgsqlServices, Npgsql.EntityFramework" />
</providers>
</entityFramework>
<system.data>
<DbProviderFactories>
<add name="Npgsql Data Provider" invariant="Npgsql"
description="Data Provider for PostgreSQL"
type="Npgsql.NpgsqlFactory, Npgsql" />
</DbProviderFactories>
</system.data>
<connectionStrings>
<add name="Entities"
connectionString="server=localhost;user id=postgres;password=4321;database=postgis"
providerName="Npgsql" />
</connectionStrings>
</configuration>
Run Code Online (Sandbox Code Playgroud)
DbContext:
public class Entities : DbContext
{
public Entities() : base("Entities")
{
}
//rest of the code
}
Run Code Online (Sandbox Code Playgroud)
mycode.cs
using (var …Run Code Online (Sandbox Code Playgroud) 在我的项目中,我计算 x、y(以像素为单位)和 Z(以毫米为单位)距相机的距离。所以我想利用深度并计算 x,y,z。
谁能告诉我该怎么做?
我有以下信息: