kwimage
release

Contents:

  • kwimage package
    • Subpackages
      • kwimage.algo package
        • Subpackages
        • Submodules
        • Module contents
      • kwimage.cli package
        • Submodules
        • Module contents
      • kwimage.gis package
        • Module contents
      • kwimage.structs package
        • Submodules
        • Module contents
    • Submodules
      • kwimage._im_color_data module
      • kwimage._internal module
        • _boolean_environ()
      • kwimage.im_alphablend module
        • overlay_alpha_layers()
        • overlay_alpha_images()
        • _prep_rgb_alpha()
        • _alpha_blend_simple()
        • _alpha_blend_inplace()
        • _alpha_blend_numexpr1()
        • _alpha_blend_numexpr2()
        • ensure_alpha_channel()
      • kwimage.im_color module
        • Color
      • kwimage.im_core module
        • num_channels()
        • ensure_float01()
        • ensure_uint255()
        • make_channels_comparable()
        • _alpha_fill_for()
        • atleast_3channels()
        • exactly_1channel()
        • padded_slice()
        • _padded_slice_apply()
        • _padded_slice_embed()
        • normalize()
        • find_robust_normalizers()
        • normalize_intensity()
      • kwimage.im_cv2 module
        • connected_components()
        • convert_colorspace()
        • gaussian_blur()
        • gaussian_patch()
        • imcrop()
        • imresize()
        • imscale()
        • morphology()
        • warp_affine()
        • warp_image()
        • warp_projective()
      • kwimage.im_demodata module
        • _update_hashes()
        • grab_test_image()
        • _grabdata_with_mirrors()
        • grab_test_image_fpath()
        • checkerboard()
        • _next_power_of_two()
        • _next_multiple_of_two()
        • _next_multiple_of()
      • kwimage.im_draw module
        • _draw_text_on_image_pil()
        • draw_text_on_image()
        • _text_sizes()
        • draw_clf_on_image()
        • draw_boxes_on_image()
        • draw_line_segments_on_image()
        • _broadcast_colors()
        • make_heatmask()
        • make_orimask()
        • make_vector_field()
        • draw_vector_field()
        • draw_header_text()
        • fill_nans_with_checkers()
        • _masked_checkerboard()
        • nodata_checkerboard()
      • kwimage.im_filter module
        • radial_fourier_mask()
        • fourier_mask()
        • _np_fourier()
        • _np_inv_fourier()
        • _cv2_fourier()
        • _cv2_inv_fourier()
        • _benchmark()
        • _benchmark2()
      • kwimage.im_io module
        • imread()
        • imwrite()
        • load_image_shape()
      • kwimage.im_runlen module
        • encode_run_length()
        • decode_run_length()
        • rle_translate()
        • _rle_bytes_to_array()
        • _rle_array_to_bytes()
      • kwimage.im_stack module
        • stack_images()
        • stack_images_grid()
        • _stack_two_images()
        • _efficient_rectangle_packing()
      • kwimage.transform module
        • Transform
        • Matrix
        • Linear
        • Affine
        • Projective
      • kwimage.util_warp module
        • _coordinate_grid()
        • warp_tensor()
        • subpixel_align()
        • subpixel_set()
        • subpixel_accum()
        • subpixel_maximum()
        • subpixel_minimum()
        • subpixel_slice()
        • subpixel_translate()
        • _padded_slice()
        • _ensure_arraylike()
        • _rectify_slice()
        • _warp_tensor_cv2()
        • warp_points()
        • remove_homog()
        • add_homog()
        • subpixel_getvalue()
        • subpixel_setvalue()
        • _bilinear_coords()
    • Module contents
      • Affine
        • Affine.shape
        • Affine.concise()
        • Affine.from_shapely()
        • Affine.from_affine()
        • Affine.from_gdal()
        • Affine.from_skimage()
        • Affine.coerce()
        • Affine.eccentricity()
        • Affine.to_affine()
        • Affine.to_gdal()
        • Affine.to_shapely()
        • Affine.to_skimage()
        • Affine.scale()
        • Affine.translate()
        • Affine._scale_translate()
        • Affine.rotate()
        • Affine.random()
        • Affine.random_params()
        • Affine.decompose()
        • Affine.affine()
        • Affine.fit()
        • Affine.fliprot()
      • Box
        • Box.format
        • Box.data
        • Box.random()
        • Box.from_slice()
        • Box.from_shapely()
        • Box.from_dsize()
        • Box.from_data()
        • Box.coerce()
        • Box.dsize
        • Box.translate()
        • Box.warp()
        • Box.scale()
        • Box.clip()
        • Box.quantize()
        • Box.copy()
        • Box.round()
        • Box.pad()
        • Box.resize()
        • Box.intersection()
        • Box.union_hull()
        • Box.to_ltrb()
        • Box.to_xywh()
        • Box.to_cxywh()
        • Box.toformat()
        • Box.astype()
        • Box.corners()
        • Box.to_boxes()
        • Box.aspect_ratio
        • Box.center
        • Box.center_x
        • Box.center_y
        • Box.width
        • Box.height
        • Box.tl_x
        • Box.tl_y
        • Box.br_x
        • Box.br_y
        • Box.dtype
        • Box.area
        • Box.to_slice()
        • Box.to_shapely()
        • Box.to_polygon()
        • Box.to_coco()
        • Box.draw_on()
        • Box.draw()
      • Boxes
        • Boxes.random()
        • Boxes.copy()
        • Boxes.concatenate()
        • Boxes.compress()
        • Boxes.take()
        • Boxes.is_tensor()
        • Boxes.is_numpy()
        • Boxes._impl
        • Boxes.device
        • Boxes.astype()
        • Boxes.round()
        • Boxes.quantize()
        • Boxes.numpy()
        • Boxes.tensor()
        • Boxes.ious()
        • Boxes.iooas()
        • Boxes.isect_area()
        • Boxes.intersection()
        • Boxes.union_hull()
        • Boxes.bounding_box()
        • Boxes.contains()
        • Boxes.view()
        • Boxes._ensure_nonnegative_extent()
      • Color
        • Color.coerce()
        • Color.forimage()
        • Color._forimage()
        • Color.ashex()
        • Color.as255()
        • Color.as01()
        • Color._is_base01()
        • Color._is_base255()
        • Color._hex_to_01()
        • Color._ensure_color01()
        • Color._255_to_01()
        • Color._string_to_01()
        • Color.named_colors()
        • Color.distinct()
        • Color.random()
        • Color.distance()
        • Color.interpolate()
        • Color.to_image()
        • Color.adjust()
      • Coords
        • Coords.dtype
        • Coords.dim
        • Coords.shape
        • Coords.copy()
        • Coords.random()
        • Coords.is_numpy()
        • Coords.is_tensor()
        • Coords.compress()
        • Coords.take()
        • Coords.astype()
        • Coords.round()
        • Coords.view()
        • Coords.concatenate()
        • Coords.device
        • Coords._impl
        • Coords.tensor()
        • Coords.numpy()
        • Coords.reorder_axes()
        • Coords.warp()
        • Coords._warp_imgaug()
        • Coords.to_imgaug()
        • Coords.from_imgaug()
        • Coords.scale()
        • Coords.translate()
        • Coords.rotate()
        • Coords._rectify_about()
        • Coords.fill()
        • Coords.soft_fill()
        • Coords.draw_on()
        • Coords.draw()
      • Detections
        • Detections.copy()
        • Detections.coerce()
        • Detections.from_coco_annots()
        • Detections.to_coco()
        • Detections.boxes
        • Detections.class_idxs
        • Detections.scores
        • Detections.probs
        • Detections.weights
        • Detections.classes
        • Detections.num_boxes()
        • Detections.warp()
        • Detections.scale()
        • Detections.translate()
        • Detections.concatenate()
        • Detections.argsort()
        • Detections.sort()
        • Detections.compress()
        • Detections.take()
        • Detections.device
        • Detections.is_tensor()
        • Detections.is_numpy()
        • Detections.numpy()
        • Detections.dtype
        • Detections.tensor()
        • Detections.demo()
        • Detections.random()
      • Heatmap
        • Heatmap.shape
        • Heatmap.bounds
        • Heatmap.dims
        • Heatmap.is_numpy()
        • Heatmap.is_tensor()
        • Heatmap._impl
        • Heatmap.random()
        • Heatmap.class_probs
        • Heatmap.offset
        • Heatmap.diameter
        • Heatmap.img_dims
        • Heatmap.tf_data_to_img
        • Heatmap.classes
        • Heatmap.numpy()
        • Heatmap.tensor()
      • Linear
      • Mask
        • Mask.dtype
        • Mask.random()
        • Mask.demo()
        • Mask.from_text()
        • Mask.copy()
        • Mask.union()
        • Mask.intersection()
        • Mask.shape
        • Mask.area
        • Mask.get_patch()
        • Mask.get_xywh()
        • Mask.bounding_box()
        • Mask.get_polygon()
        • Mask.to_mask()
        • Mask.to_boxes()
        • Mask.to_multi_polygon()
        • Mask.get_convex_hull()
        • Mask.iou()
        • Mask.coerce()
        • Mask._to_coco()
        • Mask.to_coco()
      • MaskList
        • MaskList.to_polygon_list()
        • MaskList.to_segmentation_list()
        • MaskList.to_mask_list()
      • Matrix
        • Matrix.shape
        • Matrix.coerce()
        • Matrix.is_rational()
        • Matrix.inv()
        • Matrix.T
        • Matrix.det()
        • Matrix.eye()
        • Matrix.random()
        • Matrix.rationalize()
        • Matrix.astype()
        • Matrix.isclose_identity()
      • MultiPolygon
        • MultiPolygon.random()
        • MultiPolygon.fill()
        • MultiPolygon.to_multi_polygon()
        • MultiPolygon.to_boxes()
        • MultiPolygon.to_box()
        • MultiPolygon.bounding_box()
        • MultiPolygon.box()
        • MultiPolygon.to_mask()
        • MultiPolygon.to_relative_mask()
        • MultiPolygon.coerce()
        • MultiPolygon.to_shapely()
        • MultiPolygon.from_shapely()
        • MultiPolygon.from_geojson()
        • MultiPolygon.to_geojson()
        • MultiPolygon.from_coco()
        • MultiPolygon._to_coco()
        • MultiPolygon.to_coco()
        • MultiPolygon.swap_axes()
        • MultiPolygon.draw_on()
      • Points
        • Points.shape
        • Points.xy
        • Points.random()
        • Points.is_numpy()
        • Points.is_tensor()
        • Points._impl
        • Points.tensor()
        • Points.round()
        • Points.numpy()
        • Points.draw_on()
        • Points.draw()
        • Points.compress()
        • Points.take()
        • Points.concatenate()
        • Points.to_coco()
        • Points._to_coco()
        • Points.coerce()
        • Points._from_coco()
        • Points.from_coco()
      • PointsList
      • Polygon
        • Polygon.exterior
        • Polygon.interiors
        • Polygon.circle()
        • Polygon.regular()
        • Polygon.star()
        • Polygon.random()
        • Polygon._impl
        • Polygon.to_mask()
        • Polygon.to_relative_mask()
        • Polygon._to_cv_countours()
        • Polygon.coerce()
        • Polygon.from_shapely()
        • Polygon.from_wkt()
        • Polygon.from_geojson()
        • Polygon.to_shapely()
        • Polygon.to_geojson()
        • Polygon.to_wkt()
        • Polygon.from_coco()
        • Polygon._to_coco()
        • Polygon.to_coco()
        • Polygon.to_multi_polygon()
        • Polygon.to_boxes()
        • Polygon.centroid
        • Polygon.to_box()
        • Polygon.bounding_box()
        • Polygon.box()
        • Polygon.bounding_box_polygon()
        • Polygon.copy()
        • Polygon.clip()
        • Polygon.fill()
        • Polygon.draw_on()
        • Polygon.draw()
        • Polygon._ensure_vertex_order()
        • Polygon.interpolate()
        • Polygon.morph()
      • PolygonList
        • PolygonList.to_mask_list()
        • PolygonList.to_polygon_list()
        • PolygonList.to_segmentation_list()
        • PolygonList.swap_axes()
        • PolygonList.to_geojson()
        • PolygonList.fill()
        • PolygonList.draw_on()
        • PolygonList.unary_union()
      • Projective
        • Projective.fit()
        • Projective.projective()
        • Projective.coerce()
        • Projective.is_affine()
        • Projective.to_skimage()
        • Projective.random()
        • Projective.decompose()
      • Segmentation
        • Segmentation.random()
        • Segmentation.to_multi_polygon()
        • Segmentation.to_mask()
        • Segmentation.meta
        • Segmentation.coerce()
      • SegmentationList
        • SegmentationList.to_polygon_list()
        • SegmentationList.to_mask_list()
        • SegmentationList.to_segmentation_list()
        • SegmentationList.coerce()
      • Transform
      • add_homog()
      • atleast_3channels()
      • available_nms_impls()
      • checkerboard()
      • connected_components()
      • convert_colorspace()
      • daq_spatial_nms()
      • decode_run_length()
      • draw_boxes_on_image()
      • draw_clf_on_image()
      • draw_header_text()
      • draw_line_segments_on_image()
      • draw_text_on_image()
      • draw_vector_field()
      • encode_run_length()
      • ensure_alpha_channel()
      • ensure_float01()
      • ensure_uint255()
      • exactly_1channel()
      • fill_nans_with_checkers()
      • find_robust_normalizers()
      • fourier_mask()
      • gaussian_blur()
      • gaussian_patch()
      • grab_test_image()
      • grab_test_image_fpath()
      • imcrop()
      • imread()
      • imresize()
      • imscale()
      • imwrite()
      • load_image_shape()
      • make_channels_comparable()
      • make_heatmask()
      • make_orimask()
      • make_vector_field()
      • morphology()
      • nodata_checkerboard()
      • non_max_supression()
      • normalize()
      • normalize_intensity()
      • num_channels()
      • overlay_alpha_images()
      • overlay_alpha_layers()
      • padded_slice()
      • radial_fourier_mask()
      • remove_homog()
      • rle_translate()
      • smooth_prob()
      • stack_images()
      • stack_images_grid()
      • subpixel_accum()
      • subpixel_align()
      • subpixel_getvalue()
      • subpixel_maximum()
      • subpixel_minimum()
      • subpixel_set()
      • subpixel_setvalue()
      • subpixel_slice()
      • subpixel_translate()
      • warp_affine()
      • warp_image()
      • warp_points()
      • warp_projective()
      • warp_tensor()
kwimage
  • Overview: module code

All modules for which code is available

  • kwimage._internal
  • kwimage.algo._nms_backend.py_nms
  • kwimage.algo._nms_backend.torch_nms
  • kwimage.algo.algo_nms
  • kwimage.cli.stack_images
  • kwimage.im_alphablend
  • kwimage.im_color
  • kwimage.im_core
  • kwimage.im_cv2
  • kwimage.im_demodata
  • kwimage.im_draw
  • kwimage.im_filter
  • kwimage.im_io
  • kwimage.im_runlen
  • kwimage.im_stack
  • kwimage.structs._generic
  • kwimage.structs.boxes
  • kwimage.structs.coords
  • kwimage.structs.detections
  • kwimage.structs.heatmap
  • kwimage.structs.mask
  • kwimage.structs.points
  • kwimage.structs.polygon
  • kwimage.structs.segmentation
  • kwimage.structs.single_box
  • kwimage.transform
  • kwimage.util_warp

© Copyright 2023, Jon Crall. Revision d8059e39.

Built with Sphinx using a theme provided by Read the Docs.