コード例 #1
0
ファイル: test_camera.py プロジェクト: Kitware/kwiver
    def test_depth(self):
        cam = Camera()

        pos_pt = numpy.array([1,0,1])
        neg_pt = numpy.array([0,0,-100])

        nose.tools.assert_equal(cam.depth(pos_pt), 1)
        nose.tools.assert_equal(cam.depth(neg_pt), -100)
コード例 #2
0
ファイル: test_camera.py プロジェクト: nagyist/vital
    def test_depth(self):
        cam = Camera()

        pos_pt = [[1], [0], [1]]
        neg_pt = [[0], [0], [-100]]

        nose.tools.assert_equal(cam.depth(pos_pt), 1)
        nose.tools.assert_equal(cam.depth(neg_pt), -100)
コード例 #3
0
ファイル: test_camera.py プロジェクト: vanthaiunghoa/kwiver
    def test_depth(self):
        cam = Camera()

        pos_pt = numpy.array([1, 0, 1])
        neg_pt = numpy.array([0, 0, -100])

        nose.tools.assert_equal(cam.depth(pos_pt), 1)
        nose.tools.assert_equal(cam.depth(neg_pt), -100)
コード例 #4
0
ファイル: test_camera.py プロジェクト: ALouis38/vital
    def test_depth(self):
        cam = Camera()

        pos_pt = [[1],
                  [0],
                  [1]]
        neg_pt = [[0],
                  [0],
                  [-100]]

        nose.tools.assert_equal(cam.depth(pos_pt), 1)
        nose.tools.assert_equal(cam.depth(neg_pt), -100)