pub fn ellipse(
width: usize,
height: usize,
center: (f64, f64),
radii: (f64, f64),
angle: f64,
options: (Kind, Device)
) -> TensorExpand description
Generate an ellipse.
Arguments
- width: usize - The width of the image
- height: usize - The height of the image
- center: (f64, f64) - The center of the ellipse
- radii: (f64, f64) - The radii of the ellipse
- angle: f64 - The angle of the ellipse
Returns
Tensor - The ellipse [1, H, W] tensor with value resulting from casting a boolean to the given kind