scikit-surgeryimage Logo
latest
  • scikit-surgeryimage

Module Reference

  • Data Acquisition
  • Calibration Tools
  • Utilities

Tutorials

  • Chessboard/Point Detectors
scikit-surgeryimage
  • Docs »
  • sksurgeryimage.utilities.weisslogo module
  • Edit on GitHub

sksurgeryimage.utilities.weisslogo module¶

A class for making a natty WEISS logo

class sksurgeryimage.utilities.weisslogo.WeissLogo(image_size=331.0)[source]¶

Bases: object

Creates a WEISS logo and passes a copy on request

get_logo()[source]¶

Returns the WEISS Logo

Returns:The WEISS Logo as a Numpy array
get_noisy_logo()[source]¶

Returns the WEISS Logo with some noise added

Returns:A noisy WEISS Logo as Numpy Array
sksurgeryimage.utilities.weisslogo.circle(img, center, radius, color[, thickness[, lineType[, shift]]]) → img¶

. @brief Draws a circle. . . The function cv::circle draws a simple or filled circle with a given center and radius. . @param img Image where the circle is drawn. . @param center Center of the circle. . @param radius Radius of the circle. . @param color Circle color. . @param thickness Thickness of the circle outline, if positive. Negative values, like #FILLED, . mean that a filled circle is to be drawn. . @param lineType Type of the circle boundary. See #LineTypes . @param shift Number of fractional bits in the coordinates of the center and in the radius value.

sksurgeryimage.utilities.weisslogo.fillConvexPoly(img, points, color[, lineType[, shift]]) → img¶

. @brief Fills a convex polygon. . . The function cv::fillConvexPoly draws a filled convex polygon. This function is much faster than the . function #fillPoly . It can fill not only convex polygons but any monotonic polygon without . self-intersections, that is, a polygon whose contour intersects every horizontal line (scan line) . twice at the most (though, its top-most and/or the bottom edge could be horizontal). . . @param img Image. . @param points Polygon vertices. . @param color Polygon color. . @param lineType Type of the polygon boundaries. See #LineTypes . @param shift Number of fractional bits in the vertex coordinates.


© Copyright 2018, University College London Revision a51d2ff5.

Built with Sphinx using a theme provided by Read the Docs.