• cvtools

This is a package for simple imarray operations. Mainly about creating binary masks and cropping image parts from given polygon coordinates.

It can be viewed as a submodule for the easyidp.GeoTiff class.

Functions

imarray_crop(imarray, mask[, nodata])

Crop a given ndarray image by given polygon or mask.

poly2mask(image_shape, poly_coord[, engine])

convert vector polygon to raster masks

rgb2gray(rgb)

Transform the RGB image to gray image