Function tch_utils::shapes::ellipse

source ·
pub fn ellipse(
    width: usize,
    height: usize,
    center: (f64, f64),
    radii: (f64, f64),
    angle: f64,
    options: (Kind, Device)
) -> Tensor
Expand 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