• 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, polygon_hv[, ...])

crop a given ndarray image by given polygon pixel positions

poly2mask(image_shape, poly_coord[, engine])

convert vector polygon to raster masks

rgb2gray(rgb)

Transform the RGB image to gray image