Closed Barnonewdm closed 4 years ago
Yes there is! You can assign an interpolation order to an Interpolator
object, for example order=0
for nearest neighbor interpolation. For example, given image (some_image
of type np.ndarray
) and a Gryds transformation object some_transformation
:
interpolator = gryds.Interpolator(some_image, order=0)
transformed_image = interpolator.transform(some_transformation)
We want to perform augmentation on the image label. Therefore, it requires the nearest interpolation. We wonder whether there is the IO for this operation.