oa::image::draw_circle
Draw a circle ring or disk over a copy of the input, following circle: (cx, cy) is the center in pixel units. A positive thickness draws a ring whose band is that many pixels wide around radius; a negative thickness fills the disk. color applies to every plane. Errors Returns an error unless the image is a nonempty FP32 NCHW/CHW image, cx, cy, radius, and color are finite, radius is positive, and thickness is finite and nonzero.
Function Documentation
Draw a circle ring or disk over a copy of the input, following circle: (cx, cy) is the center in pixel units. A positive thickness draws a ring whose band is that many pixels wide around radius; a negative thickness fills the disk. color applies to every plane. Errors Returns an error unless the image is a nonempty FP32 NCHW/CHW image, cx, cy, radius, and color are finite, radius is positive, and thickness is finite and nonzero.