(img, size)
| 959 | |
| 960 | |
| 961 | def resizewithpool(img, size): |
| 962 | i_size = img.shape[0] |
| 963 | n = int(np.floor(i_size / size)) |
| 964 | |
| 965 | out = skimage.measure.block_reduce(img, (n, n), np.max) |
| 966 | return out |
| 967 | |
| 968 | |
| 969 | def calculateprocessingres(img, basesize, confidence=0.1, scale_threshold=3, whole_size_threshold=3000): |
no outgoing calls
no test coverage detected