InverseToon  0.1
 All Classes Namespaces Functions
inversetoon.cv.contour Namespace Reference

Contour functions. More...

Functions

def segmentsFromCV
 Convert OpenCV segments data into list of numpy array. More...
 
def closingFromCV
 True if the contour is closed. More...
 
def findContours
 Obtain Contour data with OpenCV. More...
 
def drawContours
 Draw Contour data with OpenCV. More...
 
def contourMask
 Contour mask data. More...
 

Detailed Description

Contour functions.

Author
tody
Date
2015/07/31

Function Documentation

def inversetoon.cv.contour.closingFromCV (   hierarchy)

True if the contour is closed.

Parameters
hierarchyhierarchy data from cv2.findContours
def inversetoon.cv.contour.contourMask (   contour,
  height,
  width,
  linewidth = 5 
)

Contour mask data.

def inversetoon.cv.contour.drawContours (   S_8U,
  contour,
  color = (255, 255,
  linewidth = 5 
)

Draw Contour data with OpenCV.

def inversetoon.cv.contour.findContours (   I_8U,
  t 
)

Obtain Contour data with OpenCV.

def inversetoon.cv.contour.segmentsFromCV (   cv_segments)

Convert OpenCV segments data into list of numpy array.

Parameters
cv_segmentssegments data from cv2.findContours