Contour (ripplemapper.contour)#
Contour contains functions which are used to generate and manipulate contours from the image data.
ripplemapper.contour Module#
Ripplemapper contours module.
Functions#
|
Find contours in the edge image and approximate them to simplify. |
|
Compute midpoints between two contours recursively, addressing the shape mismatch. |
|
Extend the contour to the edges of the image region defined by shape. |
|
Combine two contours into one. |
|
Smooth a contour by convolving with a small window. |
|
Compute the distance map of a binary image. |
|
Generate neighbors for a given node. |
|
A simple A* algorithm for pathfinding. |
|
Get the next node coordinates by moving in the given direction. |
|
Find the upper and lower boundaries of the edge region. |
|
Recursive function to find the limits of "small" bumps in the data. |
|
Function to smooth out bumps in the contour data. |
|
Average the two contours to get a more accurate representation of the interface. |