heightmap_interpolation.inpainting.differential module
- class heightmap_interpolation.inpainting.differential.DifferentialOperators(convolver)
Bases:
objectDifferential operators implemented using a custom convolver
- divergence(f, mask=None)
Computes the divergence of the vector field f, corresponding to dFx/dx + dFy/dy + …
- Code extracted from:
https://stackoverflow.com/questions/11435809/compute-divergence-of-vector-field-using-python (Daniel’s answer) https://stackoverflow.com/questions/67970477/compute-divergence-with-python/67971515#67971515
- Parameters
f – List of ndarrays, where every item of the list is one dimension of the vector field.
- Returns
Single ndarray of the same shape as each of the items in f, which corresponds to a scalar field.
- gradient(f, mask=None, axis=- 1, order=0)
- heightmap_interpolation.inpainting.differential.divergence(f)
Computes the divergence of the vector field f, corresponding to dFx/dx + dFy/dy + …
- Code extracted from:
https://stackoverflow.com/questions/11435809/compute-divergence-of-vector-field-using-python (Daniel’s answer) https://stackoverflow.com/questions/67970477/compute-divergence-with-python/67971515#67971515
- Parameters
f – List of ndarrays, where every item of the list is one dimension of the vector field.
- Returns
Single ndarray of the same shape as each of the items in f, which corresponds to a scalar field.
- heightmap_interpolation.inpainting.differential.gradient(f, **kwargs)
- heightmap_interpolation.inpainting.differential.my_laplacian(f)