deepness.processing.processing_utils

This file contains utilities related to processing of the ortophoto

Functions

convert_cv_contours_to_features

Convert contour found with OpenCV to features accepted by QGis.

convert_meters_to_rlayer_units

How many map units are there in one meter

create_area_mask_image

Mask determining area to process (within extended_extent coordinates) None if no mask layer provided.

erode_dilate_image

Apply to dilate and erode to the input image

get_numpy_data_type_for_qgis_type

Conver QGIS data type to corresponding numpy data type In [58]: Qgis.DataType? implemented: Byte, UInt16, Int16, Float32, Float64

get_tile_image

_summary_

transform_contours_yx_pixels_to_target_crs

Transform countours with points as yx pixels to the target CRS system coordinates

transform_points_list_xy_to_target_crs

Transform points from xy coordinates to the target CRS system coordinates

transform_polygon_with_rings_epsg_to_extended_xy_pixels

Transform coordinates polygons to pixels contours (with cv2 format), in base_extent pixels system :param polygons: List of tuples with two lists each (x and y points respoectively) :param extended_extent: :param img_size_y_pixels: :param rlayer_units_per_pixel: :return: 2D contours list

Classes

BoundingBox

Describes a bounding box rectangle.