def test_tile_real(self): project = PTOProject.from_file_name('in.pto') print 'Creating tiler' t = Tiler(project, 'out', st_scalar_heuristic=2) self.assertEqual(len(list(t.gen_supertiles())), 4) print 'Unit test running tiler (real)' t.run()
def test_tile_real(self): project = PTOProject.parse_from_file_name('in.pto') print 'Creating tiler' t = Tiler(project, 'out', st_scalar_heuristic=2) self.assertEqual(len(list(t.gen_supertiles())), 4) print 'Unit test running tiler (real)' t.run()
def test_tile_dry(self): ''' Inputs are 1632 x 1224 a 3 x 3 grid allows testing edge boundary conditions as well as internal The reference fully stitched image is 3377 x 2581 ''' project = PTOProject.from_file_name('in.pto') print 'Creating tiler' t = Tiler(project, 'out', st_scalar_heuristic=2) #iw = 1632 #ih = 1224 #t.set_size_heuristic(iw, ih) ''' Should make 4 tiles with 3 X 3 ''' #t.super_tw = 2 * iw #t.super_th = 2 * ih ''' Each supertile should cover two images as setup There will be some overlap in the center and unique area on all four edges ''' self.assertEqual(len(list(t.gen_supertiles())), 4) print 'Unit test running tiler (real)' t.dry = True t.run()
def test_tile_dry(self): ''' Inputs are 1632 x 1224 a 3 x 3 grid allows testing edge boundary conditions as well as internal The reference fully stitched image is 3377 x 2581 ''' project = PTOProject.parse_from_file_name('in.pto') print 'Creating tiler' t = Tiler(project, 'out', st_scalar_heuristic=2) #iw = 1632 #ih = 1224 #t.set_size_heuristic(iw, ih) ''' Should make 4 tiles with 3 X 3 ''' #t.super_tw = 2 * iw #t.super_th = 2 * ih ''' Each supertile should cover two images as setup There will be some overlap in the center and unique area on all four edges ''' self.assertEqual(len(list(t.gen_supertiles())), 4) print 'Unit test running tiler (real)' t.dry = True t.run()