heightmap_interpolation.inpainting.convolve_at_mask module

heightmap_interpolation.inpainting.convolve_at_mask.convolve_at_mask(image, mask, filt)

Naive 2D convolution, but applied just at the points defined by the mask with the same behaviour at borders as OpenCV’s filter2D default behaviour (BORDER_REFLECT_101).

heightmap_interpolation.inpainting.convolve_at_mask.nb_convolve_at_mask(image, mask, filt)

Fast 2D convolution using Numba, but applied just at the points defined by the mask with the same behaviour at borders as OpenCV’s filter2D default behaviour (BORDER_REFLECT_101).

heightmap_interpolation.inpainting.convolve_at_mask.nb_convolve_at_mask_cuda(image, mask, filt)
heightmap_interpolation.inpainting.convolve_at_mask.nb_convolve_at_mask_parallel(image, mask, filt)

Same as nb_convolve_at_mask, but with parallelized fors (the parallelization overhead may render this method slower for small images)

heightmap_interpolation.inpainting.convolve_at_mask.nb_convolve_at_mask_where(image, mask, filt)