Args: rng: a tuple (begin,end) in degree, include begin, exclude end inplace: inplace imgs or not ( return new_imgs)
(self, rng, inplace=True)
| 339 | return new_imgs |
| 340 | |
| 341 | def rotate_by_range(self, rng, inplace=True): |
| 342 | ''' |
| 343 | Args: |
| 344 | rng: a tuple (begin,end) in degree, include begin, exclude end |
| 345 | inplace: inplace imgs or not ( return new_imgs) |
| 346 | ''' |
| 347 | angle_list = list(range(rng[0], rng[1])) |
| 348 | return self.rotate_by_list(angle_list, 1, inplace) |
| 349 | |
| 350 | def rotate_by_list(self, angle_list, num_case=1, inplace=True): |
| 351 | ''' |
nothing calls this directly
no test coverage detected