Category "contour"

are contour data (X,Y) ordered in a connected clockwise path in matplotlib?

As in the title: pl = plt.contour(X,Y,Z,levels=[0]) paths = pl.allsegs I wonder how are the data points in paths ordered. Specifically is it oriented clockwis

Join lines to create closed contours using OpenCV

I have the following image: And I would like to join all of these "green" linear pixels to create a bounding box contour - is this something that is possible w

Drawing zone over plt.imshow

I'm plotting some .tiff images using GDAL and matplotlib. Currently images look like the one in the example and I would like to mark a zone over the image.I hav

Image contour tracing: Jacob's stopping criterion issue

I am trying to adopt Moore-Neighbor contour tracing algorithm in my JavaScript project and at the moment I'm reading this tutorial on contour tracing: http://ww

Error: (-215:Assertion failed) npoints > 0 while working with contours using OpenCV

When I run this code: import cv2 image = cv2.imread('screenshoot10.jpg') cv2.imshow('input image', image) gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY) edg

cv2.findContours function is not working in both versions

I am new to computer vision and haven't really went through any tutorials on thresholding or blurring or other filters. I am using the below two piece of codes

Calculate the non-projected area inside a contour line created by Basemap

I am currently trying to determine the area inside specfic contour lines on a Mollweide map projection using Basemap. Specifically, what I'm looking for is the

Python OpenCV Contour Tree Hierarchy Structure

I am trying to implement the algorithm found here in python with OpenCV. I am trying to implement the part of the algorithm that remove irrelevant edge boundari