Function tch_utils::shapes::circle

source ·
pub fn circle(
    width: usize,
    height: usize,
    center: (f64, f64),
    radius: f64,
    options: (Kind, Device)
) -> Tensor
Expand description

Generate a circle. (wrapper around ellipse)

Arguments

  • width: usize - The width of the image
  • height: usize - The height of the image
  • center: (f64, f64) - The center of the circle
  • radius: f64 - The radius of the circle

Returns

Tensor - The circle [1, H, W] tensor with value resulting from casting a boolean to the given kind