【问题标题】:Normalize angle and length in c#在c#中标准化角度和长度
【发布时间】:2014-05-05 23:36:06
【问题描述】:

有谁知道如何在 c# 中将角度标准化为 [0,360] 并将长度标准化为 [0,1]。

请参考下面的链接,我正在尝试实现答案中的第二步。

how should I use the velX,velY information to get the displacement in X and Y between current frame and previous frame?

 angle1 = Math.Atan2(h.Intensity, g.Intensity);
 if(angle1 < 0)
 {
       angle1 += 2 * Math.PI;
 }

这是正确的方法吗,有什么建议吗?我可以改用 Math.round 函数吗?

【问题讨论】:

    标签: c# opencv emgucv


    【解决方案1】:

    您似乎想这样做:

    displacement = velocity * timestep
    

    例如,如果您有 60Hz 视频,那么 timestep 就是 1/60

    【讨论】:

      猜你喜欢
      • 2014-08-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-05-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多