Beispiel #1
0
    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)
Beispiel #2
0
    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)
Beispiel #3
0
    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)
Beispiel #4
0
    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)