(self, size, order=1)
| 40 | """ |
| 41 | |
| 42 | def __init__(self, size, order=1): |
| 43 | self.ratio = size |
| 44 | self.order = order |
| 45 | if order==0: |
| 46 | self.code=cv2.INTER_NEAREST |
| 47 | elif order==1: |
| 48 | self.code=cv2.INTER_LINEAR |
| 49 | elif order==2: |
| 50 | self.code=cv2.INTER_CUBIC |
| 51 | |
| 52 | def __call__(self, inputs, target): |
| 53 | if self.ratio==1: |
nothing calls this directly
no outgoing calls
no test coverage detected