wip

parent f3fa482e
Pipeline #169506 passed with stages
in 7 minutes and 17 seconds
......@@ -460,6 +460,8 @@ class Points(_generic.Spatial, _PointsWarpMixin):
def draw(self, color='blue', ax=None, alpha=None, radius=1, **kwargs):
"""
TODO: can use kwplot.draw_points
Example:
>>> # xdoc: +REQUIRES(module:kwplot)
>>> from kwimage.structs.points import * # NOQA
......
......@@ -75,6 +75,14 @@ def _coordinate_grid(dims, align_corners=False):
return pixel_coords
def warp_image(inputs, mat, **kw):
import kwarray
# _impl = kwarray.ArrayAPI.coerce(inputs)
inputs = kwarray.atleast_nd(inputs, 3)
tensor = inputs.transpose(2, 0, 1)
return warp_tensor(tensor, mat, **kw)
def warp_tensor(inputs, mat, output_dims, mode='bilinear',
padding_mode='zeros', isinv=False, ishomog=None,
align_corners=False, new_mode=False):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment