Exemplo n.º 1
0
 def test_2_1_load_matlab_combine(self):
     data = 'TUFUTEFCIDUuMCBNQVQtZmlsZSwgUGxhdGZvcm06IFBDV0lOLCBDcmVhdGVkIG9uOiBNb24gSmFuIDEyIDA5OjE3OjA0IDIwMDkgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAABSU0PAAAAdAEAAHiczZS9TsMwEIAvTdpSKlURA2JkZONvYUR0QAwU1EYVq6teI0uJHeUHUZ6Ax+rMU2G3TupEoUlDB05ynDvfd2efdR4AwFcXoCPmIzFasJG20g1tSH2CcUyZG7XBgjNlX4kxJSElMw+nxEswgkxS+xNbcGcZZEvPfJ54OCK+7ixklPgzDKOXRQqq5Vf6gd6EfiLkJXUb4zuNKGeKV/GL1iwvjwt5B/JjbutglNThRLNL/zvY+lsl/nocW+kORvFjSJZ1+G6Bl/qQ+zPKcJ3/qoI3c7wJ7JIcZN9VeY0cb8C1qte+3E1D7rYm17Q+Zfci6zPG+Zq/r+B7Bb6X1ReRKftf7ulBtOBAi7PvvDJ290Ef8n1Qdd7jwj6lTn3iohvyJPh9H1Vx7UJcOxf3nLI5BnXOe6g8/y1OALvvUe+bOnn1e7eVPuQeDx0un4Ysjt53nYq8LfHXL+Gavit18hkNOEuQ36cb7m3Pul7s8E8ltf8AGWV9Kw=='
     pipeline = cpmt.load_pipeline(self, data)
     module = pipeline.module(1)
     self.assertEqual(module.image_name.value, "TestGray")
     self.assertTrue(module.should_combine)
     self.assertEqual(module.grayscale_name.value, "TestGray")
     self.assertEqual(module.red_contribution.value, 1)
     self.assertEqual(module.green_contribution.value, 2)
     self.assertEqual(module.blue_contribution.value, 3)
Exemplo n.º 2
0
 def test_2_3_load_combine(self):
     data = 'TUFUTEFCIDUuMCBNQVQtZmlsZSBQbGF0Zm9ybTogbnQsIENyZWF0ZWQgb246IE1vbiBKYW4gMTIgMDk6NDQ6MDEgMjAwOQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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cCBpbmRlcA4AAAAwAAAABgAAAAgAAAAGAAAAAAAAAAUAAAAIAAAAAAAAAAAAAAABAAAAAAAAAAkAAAAAAAAADgAAAEAAAAAGAAAACAAAAAQAAAAAAAAABQAAAAgAAAABAAAAEAAAAAEAAAAAAAAAEAAAABAAAABpbWFnZWdyb3VwIGluZGVwDgAAADAAAAAGAAAACAAAAAYAAAAAAAAABQAAAAgAAAAAAAAAAAAAAAEAAAAAAAAACQAAAAAAAAAOAAAAQAAAAAYAAAAIAAAABAAAAAAAAAAFAAAACAAAAAEAAAAQAAAAAQAAAAAAAAAQAAAAEAAAAGltYWdlZ3JvdXAgaW5kZXAOAAAAkAAAAAYAAAAIAAAAAQAAAAAAAAAFAAAACAAAAAEAAAABAAAAAQAAAAAAAAAOAAAAYAAAAAYAAAAIAAAABAAAAAAAAAAFAAAACAAAAAEAAAAsAAAAAQAAAAAAAAAQAAAALAAAAGNlbGxwcm9maWxlci5tb2R1bGVzLmNvbG9ydG9ncmF5LkNvbG9yVG9HcmF5AAAAAA4AAAAwAAAABgAAAAgAAAAJAAAAAAAAAAUAAAAIAAAAAQAAAAEAAAABAAAAAAAAAAIAAQAMAAAADgAAACgAAAAGAAAACAAAAAwAAAAAAAAABQAAAAAAAAABAAAAAAAAAAUABAABAAAADgAAADAAAAAGAAAACAAAAAkAAAAAAAAABQAAAAgAAAABAAAAAQAAAAEAAAAAAAAAAgABAAEAAAAOAAAAMAAAAAYAAAAIAAAACwAAAAAAAAAFAAAACAAAAAEAAAABAAAAAQAAAAAAAAAEAAIAAAAAAA4AAABYAAAABgAAAAgAAAABAAAAAAAAAAUAAAAIAAAAAQAAAAEAAAABAAAAAAAAAA4AAAAoAAAABgAAAAgAAAABAAAAAAAAAAUAAAAIAAAAAAAAAAEAAAABAAAAAAAAAA=='
     pipeline = cpmt.load_pipeline(self, data)
     module = pipeline.module(1)
     self.assertEqual(module.image_name.value, "TestInput")
     self.assertTrue(module.should_combine)
     self.assertEqual(module.grayscale_name.value, "TestGray")
     self.assertEqual(module.red_contribution.value, 1)
     self.assertEqual(module.green_contribution.value, 2)
     self.assertEqual(module.blue_contribution.value, 3)
Exemplo n.º 3
0
 def test_2_3_load_combine(self):
     data = 'TUFUTEFCIDUuMCBNQVQtZmlsZSBQbGF0Zm9ybTogbnQsIENyZWF0ZWQgb246IE1vbiBKYW4gMTIgMDk6NDQ6MDEgMjAwOQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABSU0OAAAAAAkAAAYAAAAIAAAAAgAAAAAAAAAFAAAACAAAAAEAAAABAAAAAQAAAAgAAABTZXR0aW5ncwUABAAYAAAAAQAAAMAAAABWYXJpYWJsZVZhbHVlcwAAAAAAAAAAAABWYXJpYWJsZUluZm9UeXBlcwAAAAAAAABNb2R1bGVOYW1lcwAAAAAAAAAAAAAAAABOdW1iZXJzT2ZWYXJpYWJsZXMAAAAAAABQaXhlbFNpemUAAAAAAAAAAAAAAAAAAABWYXJpYWJsZVJldmlzaW9uTnVtYmVycwBNb2R1bGVSZXZpc2lvbk51bWJlcnMAAABNb2R1bGVOb3RlcwAAAAAAAAAAAAAAAAAOAAAACAMAAAYAAAAIAAAAAQAAAAAAAAAFAAAACAAAAAEAAAAMAAAAAQAAAAAAAAAOAAAAQAAAAAYAAAAIAAAABAAAAAAAAAAFAAAACAAAAAEAAAAJAAAAAQAAAAAAAAAQAAAACQAAAFRlc3RJbnB1dAAAAAAAAAAOAAAAOAAAAAYAAAAIAAAABAAAAAAAAAAFAAAACAAAAAEAAAAHAAAAAQAAAAAAAAAQAAAABwAAAENvbWJpbmUADgAAADgAAAAGAAAACAAAAAQAAAAAAAAABQAAAAgAAAABAAAACAAAAAEAAAAAAAAAEAAAAAgAAABUZXN0R3JheQ4AAAAwAAAABgAAAAgAAAAEAAAAAAAAAAUAAAAIAAAAAQAAAAEAAAABAAAAAAAAABAAAQAxAAAADgAAADAAAAAGAAAACAAAAAQAA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AAAAEAAIAAAAAAA4AAABYAAAABgAAAAgAAAABAAAAAAAAAAUAAAAIAAAAAQAAAAEAAAABAAAAAAAAAA4AAAAoAAAABgAAAAgAAAABAAAAAAAAAAUAAAAIAAAAAAAAAAEAAAABAAAAAAAAAA=='
     pipeline = cpmt.load_pipeline(self, data)
     module = pipeline.module(1)
     self.assertEqual(module.image_name.value, "TestInput")
     self.assertTrue(module.should_combine)
     self.assertEqual(module.grayscale_name.value, "TestGray")
     self.assertEqual(module.red_contribution.value, 1)
     self.assertEqual(module.green_contribution.value, 2)
     self.assertEqual(module.blue_contribution.value, 3)
Exemplo n.º 4
0
 def test_2_1_load_matlab_combine(self):
     data = 'TUFUTEFCIDUuMCBNQVQtZmlsZSwgUGxhdGZvcm06IFBDV0lOLCBDcmVhdGVkIG9uOiBNb24gSmFuIDEyIDA5OjE3OjA0IDIwMDkgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAABSU0PAAAAdAEAAHiczZS9TsMwEIAvTdpSKlURA2JkZONvYUR0QAwU1EYVq6teI0uJHeUHUZ6Ax+rMU2G3TupEoUlDB05ynDvfd2efdR4AwFcXoCPmIzFasJG20g1tSH2CcUyZG7XBgjNlX4kxJSElMw+nxEswgkxS+xNbcGcZZEvPfJ54OCK+7ixklPgzDKOXRQqq5Vf6gd6EfiLkJXUb4zuNKGeKV/GL1iwvjwt5B/JjbutglNThRLNL/zvY+lsl/nocW+kORvFjSJZ1+G6Bl/qQ+zPKcJ3/qoI3c7wJ7JIcZN9VeY0cb8C1qte+3E1D7rYm17Q+Zfci6zPG+Zq/r+B7Bb6X1ReRKftf7ulBtOBAi7PvvDJ290Ef8n1Qdd7jwj6lTn3iohvyJPh9H1Vx7UJcOxf3nLI5BnXOe6g8/y1OALvvUe+bOnn1e7eVPuQeDx0un4Ysjt53nYq8LfHXL+Gavit18hkNOEuQ36cb7m3Pul7s8E8ltf8AGWV9Kw=='
     pipeline = cpmt.load_pipeline(self, data)
     module = pipeline.module(1)
     self.assertEqual(module.image_name.value, "TestGray")
     self.assertTrue(module.should_combine)
     self.assertEqual(module.grayscale_name.value, "TestGray")
     self.assertEqual(module.red_contribution.value, 1)
     self.assertEqual(module.green_contribution.value, 2)
     self.assertEqual(module.blue_contribution.value, 3)
Exemplo n.º 5
0
 def test_2_2_load_matlab_split(self):
     data = 'TUFUTEFCIDUuMCBNQVQtZmlsZSwgUGxhdGZvcm06IFBDV0lOLCBDcmVhdGVkIG9uOiBNb24gSmFuIDEyIDA5OjI3OjMwIDIwMDkgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAABSU0PAAAAaQEAAHiczVTNToQwEJ6ysBg3IcSD8ejRm38Xj0YPxoOrWcjGazd0SROghB+z69Pt2afxESzZwpYGAXFNnGRSZjrffMN0WgsAVibAmK8HXDXYiiFsJGlhOyTLaOSnBuhwIvwbrnOcULwIyBwHOUmhktL/GC2Zu46rrSfm5QGZ4lAO5jLNwwVJ0udlCRTbL3RFAoe+E6hLGTYjbzSlLBJ4kV/1VrwsU3gtrp/arg+ooQ9Hkr+Iv4FdvN4QL+exhe2SNHtI8LoP3lDwhe3EAc0E/0UHflTDjyA6x3upu4sX1fAILnvWq+KuBuKu/7g/ptIfU/RnRrxB9U7hd/N0x6+cJfxD1g1qn/sJ1Of+tqPOQ6XOwqYh9omfsDz+vo6uvLaS167lPaWRR+I+/7svnv+WJ4b2c5Tnrg+vfO62sO9ZwBKXFU9BlUee93EHr8a/Jg24oe9IHz40AKdz5MfxFvf6w76etcSXUvq/AErXefI='
     pipeline = cpmt.load_pipeline(self, data)
     module = pipeline.module(1)
     self.assertEqual(module.image_name.value, "TestGray")
     self.assertTrue(module.should_split)
     self.assertTrue(module.use_red.value)
     self.assertEqual(module.red_name.value, "TestRed")
     self.assertFalse(module.use_green.value)
     self.assertTrue(module.use_blue.value)
     self.assertEqual(module.blue_name.value, "TestBlue")
Exemplo n.º 6
0
 def test_2_2_load_matlab_split(self):
     data = 'TUFUTEFCIDUuMCBNQVQtZmlsZSwgUGxhdGZvcm06IFBDV0lOLCBDcmVhdGVkIG9uOiBNb24gSmFuIDEyIDA5OjI3OjMwIDIwMDkgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAABSU0PAAAAaQEAAHiczVTNToQwEJ6ysBg3IcSD8ejRm38Xj0YPxoOrWcjGazd0SROghB+z69Pt2afxESzZwpYGAXFNnGRSZjrffMN0WgsAVibAmK8HXDXYiiFsJGlhOyTLaOSnBuhwIvwbrnOcULwIyBwHOUmhktL/GC2Zu46rrSfm5QGZ4lAO5jLNwwVJ0udlCRTbL3RFAoe+E6hLGTYjbzSlLBJ4kV/1VrwsU3gtrp/arg+ooQ9Hkr+Iv4FdvN4QL+exhe2SNHtI8LoP3lDwhe3EAc0E/0UHflTDjyA6x3upu4sX1fAILnvWq+KuBuKu/7g/ptIfU/RnRrxB9U7hd/N0x6+cJfxD1g1qn/sJ1Of+tqPOQ6XOwqYh9omfsDz+vo6uvLaS167lPaWRR+I+/7svnv+WJ4b2c5Tnrg+vfO62sO9ZwBKXFU9BlUee93EHr8a/Jg24oe9IHz40AKdz5MfxFvf6w76etcSXUvq/AErXefI='
     pipeline = cpmt.load_pipeline(self, data)
     module = pipeline.module(1)
     self.assertEqual(module.image_name.value, "TestGray")
     self.assertTrue(module.should_split)
     self.assertTrue(module.use_red.value)
     self.assertEqual(module.red_name.value, "TestRed")
     self.assertFalse(module.use_green.value)
     self.assertTrue(module.use_blue.value)
     self.assertEqual(module.blue_name.value, "TestBlue")
Exemplo n.º 7
0
 def test_2_4_load_split(self):
     data = 'TUFUTEFCIDUuMCBNQVQtZmlsZSBQbGF0Zm9ybTogbnQsIENyZWF0ZWQgb246IE1vbiBKYW4gMTIgMDk6NDU6NDkgMjAwOQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABSU0O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UAAAAIAAAAAAAAAAAAAAABAAAAAAAAAAkAAAAAAAAADgAAAEAAAAAGAAAACAAAAAQAAAAAAAAABQAAAAgAAAABAAAAEAAAAAEAAAAAAAAAEAAAABAAAABpbWFnZWdyb3VwIGluZGVwDgAAADAAAAAGAAAACAAAAAYAAAAAAAAABQAAAAgAAAAAAAAAAAAAAAEAAAAAAAAACQAAAAAAAAAOAAAAQAAAAAYAAAAIAAAABAAAAAAAAAAFAAAACAAAAAEAAAAQAAAAAQAAAAAAAAAQAAAAEAAAAGltYWdlZ3JvdXAgaW5kZXAOAAAAkAAAAAYAAAAIAAAAAQAAAAAAAAAFAAAACAAAAAEAAAABAAAAAQAAAAAAAAAOAAAAYAAAAAYAAAAIAAAABAAAAAAAAAAFAAAACAAAAAEAAAAsAAAAAQAAAAAAAAAQAAAALAAAAGNlbGxwcm9maWxlci5tb2R1bGVzLmNvbG9ydG9ncmF5LkNvbG9yVG9HcmF5AAAAAA4AAAAwAAAABgAAAAgAAAAJAAAAAAAAAAUAAAAIAAAAAQAAAAEAAAABAAAAAAAAAAIAAQAMAAAADgAAACgAAAAGAAAACAAAAAwAAAAAAAAABQAAAAAAAAABAAAAAAAAAAUABAABAAAADgAAADAAAAAGAAAACAAAAAkAAAAAAAAABQAAAAgAAAABAAAAAQAAAAEAAAAAAAAAAgABAAEAAAAOAAAAMAAAAAYAAAAIAAAACwAAAAAAAAAFAAAACAAAAAEAAAABAAAAAQAAAAAAAAAEAAIAAAAAAA4AAABYAAAABgAAAAgAAAABAAAAAAAAAAUAAAAIAAAAAQAAAAEAAAABAAAAAAAAAA4AAAAoAAAABgAAAAgAAAABAAAAAAAAAAUAAAAIAAAAAAAAAAEAAAABAAAAAAAAAA=='
     pipeline = cpmt.load_pipeline(self, data)
     module = pipeline.module(1)
     self.assertTrue(isinstance(module, cpm_ctg.ColorToGray))
     self.assertEqual(module.image_name.value, "TestInput")
     self.assertTrue(module.should_split)
     self.assertTrue(module.use_red.value)
     self.assertEqual(module.red_name.value, "TestRed")
     self.assertTrue(module.use_green.value)
     self.assertEqual(module.green_name.value, "TestGreen")
     self.assertFalse(module.use_blue.value)
     self.assertEqual(module.rgb_or_channels, cpm_ctg.CH_RGB)
Exemplo n.º 8
0
 def test_2_4_load_split(self):
     data = 'TUFUTEFCIDUuMCBNQVQtZmlsZSBQbGF0Zm9ybTogbnQsIENyZWF0ZWQgb246IE1vbiBKYW4gMTIgMDk6NDU6NDkgMjAwOQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABSU0OAAAAAAkAAAYAAAAIAAAAAgAAAAAAAAAFAAAACAAAAAEAAAABAAAAAQAAAAgAAABTZXR0aW5ncwUABAAYAAAAAQAAAMAAAABWYXJpYWJsZVZhbHVlcwAAAAAAAAAAAABWYXJpYWJsZUluZm9UeXBlcwAAAAAAAABNb2R1bGVOYW1lcwAAAAAAAAAAAAAAAABOdW1iZXJzT2ZWYXJpYWJsZXMAAAAAAABQaXhlbFNpemUAAAAAAAAAAAAAAAAAAABWYXJpYWJsZVJldmlzaW9uTnVtYmVycwBNb2R1bGVSZXZpc2lvbk51bWJlcnMAAABNb2R1bGVOb3RlcwAAAAAAAAAAAAAAAAAOAAAACAMAAAYAAAAIAAAAAQAAAAAAAAAFAAAACAAAAAEAAAAMAAAAAQAAAAAAAAAOAAAAQAAAAAYAAAAIAAAABAAAAAAAAAAFAAAACAAAAAEAAAAJAAAAAQAAAAAAAAAQAAAACQAAAFRlc3RJbnB1dAAAAAAAAAAOAAAAOAAAAAYAAAAIAAAABAAAAAAAAAAFAAAACAAAAAEAAAAFAAAAAQAAAAAAAAAQAAAABQAAAFNwbGl0AAAADgAAADgAAAAGAAAACAAAAAQAAAAAAAAABQAAAAgAAAABAAAACAAAAAEAAAAAAAAAEAAAAAgAAABUZXN0R3JheQ4AAAAwAAAABgAAAAgAAAAEAAAAAAAAAAUAAAAIAAAAAQAAAAEAAAABAAAAAAAAAB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AAAAAAAFAAAACAAAAAEAAAABAAAAAQAAAAAAAAAEAAIAAAAAAA4AAABYAAAABgAAAAgAAAABAAAAAAAAAAUAAAAIAAAAAQAAAAEAAAABAAAAAAAAAA4AAAAoAAAABgAAAAgAAAABAAAAAAAAAAUAAAAIAAAAAAAAAAEAAAABAAAAAAAAAA=='
     pipeline = cpmt.load_pipeline(self, data)
     module = pipeline.module(1)
     self.assertTrue(isinstance(module, cpm_ctg.ColorToGray))
     self.assertEqual(module.image_name.value, "TestInput")
     self.assertTrue(module.should_split)
     self.assertTrue(module.use_red.value)
     self.assertEqual(module.red_name.value, "TestRed")
     self.assertTrue(module.use_green.value)
     self.assertEqual(module.green_name.value, "TestGreen")
     self.assertFalse(module.use_blue.value)
     self.assertEqual(module.rgb_or_channels, cpm_ctg.CH_RGB)