Example #1
0
    def test_get_image_msg(self):
        '''Test that a made ros image can be returned to its original form'''
        im = np.ones((255, 255, 3)).astype(np.uint8)
        im_msg = make_image_msg(im)

        cv_im = get_image_msg(im_msg)
        np.testing.assert_array_equal(im, cv_im)
Example #2
0
    def test_get_image_msg(self):
        '''Test that a made ros image can be returned to its original form'''
        im = np.ones((255, 255, 3)).astype(np.uint8)
        im_msg = make_image_msg(im)

        cv_im = get_image_msg(im_msg)
        np.testing.assert_array_equal(im, cv_im)
Example #3
0
 def test_make_image_msg(self):
     '''Test that make ros image message doesn't fail'''
     im = np.ones((255, 255, 3)).astype(np.uint8)
     im_msg = make_image_msg(im)
     self.assertIsInstance(im_msg, Image)
Example #4
0
 def test_make_image_msg(self):
     '''Test that make ros image message doesn't fail'''
     im = np.ones((255, 255, 3)).astype(np.uint8)
     im_msg = make_image_msg(im)
     self.assertIsInstance(im_msg, Image)