Composes several transforms together.
| 246 | |
| 247 | |
| 248 | class Compose(object): |
| 249 | """Composes several transforms together.""" |
| 250 | |
| 251 | def __init__(self, transforms): |
| 252 | self.transforms = transforms |
| 253 | |
| 254 | def __call__(self, *args): |
| 255 | for t in self.transforms: |
| 256 | args = t(*args) |
| 257 | return args |
| 258 | |
| 259 | class Tranform2D(object): |
| 260 |
nothing calls this directly
no outgoing calls
no test coverage detected