MinMaxLoc

cvcuda.max_loc(*args, **kwargs)

Overloaded function.

  1. max_loc(src: nvcv.Tensor, max_locations: int = 0, *, stream: Optional[nvcv.cuda.Stream] = None) -> tuple[nvcv.Tensor, nvcv.Tensor, nvcv.Tensor]

    Finds maximum on the input tensor.

    See also:

    Refer to the CV-CUDA C API reference for the MinMaxLoc operator for more details and usage examples.

    Args:

    src (nvcv.Tensor): Input tensor to get minimum/maximum values/locations. max_locations (Number, optional): Number of maximum locations to find, default is 1% of total

    pixels at a minimum of 1.

    stream (nvcv.cuda.Stream, optional): CUDA Stream on which to perform the operation.

    Returns:

    Tuple[nvcv.Tensor, nvcv.Tensor, nvcv.Tensor]: A tuple with maximum value, locations and number of maxima.

    Caution:

    Restrictions to several arguments may apply. Check the C API references of the CV-CUDA operator.

  2. max_loc(src: nvcv.ImageBatchVarShape, max_locations: int = 0, *, stream: Optional[nvcv.cuda.Stream] = None) -> tuple[nvcv.Tensor, nvcv.Tensor, nvcv.Tensor]

    Finds maximum on the input batch.

    See also:

    Refer to the CV-CUDA C API reference for the MinMaxLoc operator for more details and usage examples.

    Args:

    src (nvcv.ImageBatchVarShape): Input image batch to get minimum/maximum values/locations. max_locations (Number, optional): Number of maximum locations to find, default is 1% of total

    pixels at a minimum of 1.

    stream (nvcv.cuda.Stream, optional): CUDA Stream on which to perform the operation.

    Returns:

    Tuple[nvcv.Tensor, nvcv.Tensor, nvcv.Tensor]: A tuple with maximum value, locations and number of maxima.

    Caution:

    Restrictions to several arguments may apply. Check the C API references of the CV-CUDA operator.

cvcuda.max_loc_into(*args, **kwargs)

Overloaded function.

  1. max_loc_into(max_val: nvcv.Tensor, max_loc: nvcv.Tensor, num_max: nvcv.Tensor, src: nvcv.Tensor, *, stream: Optional[nvcv.cuda.Stream] = None) -> tuple[nvcv.Tensor, nvcv.Tensor, nvcv.Tensor]

    Finds maximum on the input tensor.

    See also:

    Refer to the CV-CUDA C API reference for the MinMaxLoc operator for more details and usage examples.

    Args:

    max_val (nvcv.Tensor): Output tensor with maximum value. max_loc (nvcv.Tensor): Output tensor with maximum locations. num_max (nvcv.Tensor): Output tensor with number of maximum locations found. src (nvcv.Tensor): Input tensor to get minimum/maximum values/locations. stream (nvcv.cuda.Stream, optional): CUDA Stream on which to perform the operation.

    Returns:

    Tuple[nvcv.Tensor, nvcv.Tensor, nvcv.Tensor]: A tuple with maximum value, locations and number of maxima.

    Caution:

    Restrictions to several arguments may apply. Check the C API references of the CV-CUDA operator.

  2. max_loc_into(max_val: nvcv.Tensor, max_loc: nvcv.Tensor, num_max: nvcv.Tensor, src: nvcv.ImageBatchVarShape, *, stream: Optional[nvcv.cuda.Stream] = None) -> tuple[nvcv.Tensor, nvcv.Tensor, nvcv.Tensor]

    Finds maximum on the input batch.

    See also:

    Refer to the CV-CUDA C API reference for the MinMaxLoc operator for more details and usage examples.

    Args:

    max_val (nvcv.Tensor): Output tensor with maximum value. max_loc (nvcv.Tensor): Output tensor with maximum locations. num_max (nvcv.Tensor): Output tensor with number of maximum locations found. src (nvcv.ImageBatchVarShape): Input image batch to get minimum/maximum values/locations. stream (nvcv.cuda.Stream, optional): CUDA Stream on which to perform the operation.

    Returns:

    Tuple[nvcv.Tensor, nvcv.Tensor, nvcv.Tensor]: A tuple with maximum value, locations and number of maxima.

    Caution:

    Restrictions to several arguments may apply. Check the C API references of the CV-CUDA operator.

cvcuda.min_loc(*args, **kwargs)

Overloaded function.

  1. min_loc(src: nvcv.Tensor, max_locations: int = 0, *, stream: Optional[nvcv.cuda.Stream] = None) -> tuple[nvcv.Tensor, nvcv.Tensor, nvcv.Tensor]

    Finds minimum on the input tensor.

    See also:

    Refer to the CV-CUDA C API reference for the MinMaxLoc operator for more details and usage examples.

    Args:

    src (nvcv.Tensor): Input tensor to get minimum/maximum values/locations. max_locations (Number, optional): Number of maximum locations to find, default is 1% of total

    pixels at a minimum of 1.

    stream (nvcv.cuda.Stream, optional): CUDA Stream on which to perform the operation.

    Returns:

    Tuple[nvcv.Tensor, nvcv.Tensor, nvcv.Tensor]: A tuple with minimum value, locations and number of minima.

    Caution:

    Restrictions to several arguments may apply. Check the C API references of the CV-CUDA operator.

  2. min_loc(src: nvcv.ImageBatchVarShape, max_locations: int = 0, *, stream: Optional[nvcv.cuda.Stream] = None) -> tuple[nvcv.Tensor, nvcv.Tensor, nvcv.Tensor]

    Finds minimum on the input batch.

    See also:

    Refer to the CV-CUDA C API reference for the MinMaxLoc operator for more details and usage examples.

    Args:

    src (nvcv.ImageBatchVarShape): Input image batch to get minimum/maximum values/locations. max_locations (Number, optional): Number of maximum locations to find, default is 1% of total

    pixels at a minimum of 1.

    stream (nvcv.cuda.Stream, optional): CUDA Stream on which to perform the operation.

    Returns:

    Tuple[nvcv.Tensor, nvcv.Tensor, nvcv.Tensor]: A tuple with minimum value, locations and number of minima.

    Caution:

    Restrictions to several arguments may apply. Check the C API references of the CV-CUDA operator.

cvcuda.min_loc_into(*args, **kwargs)

Overloaded function.

  1. min_loc_into(min_val: nvcv.Tensor, min_loc: nvcv.Tensor, num_min: nvcv.Tensor, src: nvcv.Tensor, *, stream: Optional[nvcv.cuda.Stream] = None) -> tuple[nvcv.Tensor, nvcv.Tensor, nvcv.Tensor]

    Finds minimum on the input tensor.

    See also:

    Refer to the CV-CUDA C API reference for the MinMaxLoc operator for more details and usage examples.

    Args:

    min_val (nvcv.Tensor): Output tensor with minimum value. min_loc (nvcv.Tensor): Output tensor with minimum locations. num_min (nvcv.Tensor): Output tensor with number of minimum locations found. src (nvcv.Tensor): Input tensor to get minimum/maximum values/locations. stream (nvcv.cuda.Stream, optional): CUDA Stream on which to perform the operation.

    Returns:

    Tuple[nvcv.Tensor, nvcv.Tensor, nvcv.Tensor]: A tuple with minimum value, locations and number of minima.

    Caution:

    Restrictions to several arguments may apply. Check the C API references of the CV-CUDA operator.

  2. min_loc_into(min_val: nvcv.Tensor, min_loc: nvcv.Tensor, num_min: nvcv.Tensor, src: nvcv.ImageBatchVarShape, *, stream: Optional[nvcv.cuda.Stream] = None) -> tuple[nvcv.Tensor, nvcv.Tensor, nvcv.Tensor]

    Finds minimum on the input batch.

    See also:

    Refer to the CV-CUDA C API reference for the MinMaxLoc operator for more details and usage examples.

    Args:

    min_val (nvcv.Tensor): Output tensor with minimum value. min_loc (nvcv.Tensor): Output tensor with minimum locations. num_min (nvcv.Tensor): Output tensor with number of minimum locations found. src (nvcv.ImageBatchVarShape): Input image batch to get minimum/maximum values/locations. stream (nvcv.cuda.Stream, optional): CUDA Stream on which to perform the operation.

    Returns:

    Tuple[nvcv.Tensor, nvcv.Tensor, nvcv.Tensor]: A tuple with minimum value, locations and number of minima.

    Caution:

    Restrictions to several arguments may apply. Check the C API references of the CV-CUDA operator.

cvcuda.min_max_loc(*args, **kwargs)

Overloaded function.

  1. min_max_loc(src: nvcv.Tensor, max_locations: int = 0, *, stream: Optional[nvcv.cuda.Stream] = None) -> tuple[nvcv.Tensor, nvcv.Tensor, nvcv.Tensor, nvcv.Tensor, nvcv.Tensor, nvcv.Tensor]

    Finds minimum/maximum on the input tensor.

    See also:

    Refer to the CV-CUDA C API reference for the MinMaxLoc operator for more details and usage examples.

    Args:

    src (nvcv.Tensor): Input tensor to get minimum/maximum values/locations. max_locations (Number, optional): Number of maximum locations to find, default is 1% of total

    pixels at a minimum of 1.

    stream (nvcv.cuda.Stream, optional): CUDA Stream on which to perform the operation.

    Returns:

    Tuple[nvcv.Tensor, nvcv.Tensor, nvcv.Tensor, nvcv.Tensor, nvcv.Tensor, nvcv.Tensor]: A tuple with minimum value, locations and number of minima, and also maximum value, locations and number of maxima.

    Caution:

    Restrictions to several arguments may apply. Check the C API references of the CV-CUDA operator.

  2. min_max_loc(src: nvcv.ImageBatchVarShape, max_locations: int = 0, *, stream: Optional[nvcv.cuda.Stream] = None) -> tuple[nvcv.Tensor, nvcv.Tensor, nvcv.Tensor, nvcv.Tensor, nvcv.Tensor, nvcv.Tensor]

    Finds minimum/maximum on the input batch.

    See also:

    Refer to the CV-CUDA C API reference for the MinMaxLoc operator for more details and usage examples.

    Args:

    src (nvcv.ImageBatchVarShape): Input image batch to get minimum/maximum values/locations. max_locations (Number, optional): Number of maximum locations to find, default is 1% of total

    pixels at a minimum of 1.

    stream (nvcv.cuda.Stream, optional): CUDA Stream on which to perform the operation.

    Returns:

    Tuple[nvcv.Tensor, nvcv.Tensor, nvcv.Tensor, nvcv.Tensor, nvcv.Tensor, nvcv.Tensor]: A tuple with minimum value, locations and number of minima, and also maximum value, locations and number of maxima.

    Caution:

    Restrictions to several arguments may apply. Check the C API references of the CV-CUDA operator.

cvcuda.min_max_loc_into(*args, **kwargs)

Overloaded function.

  1. min_max_loc_into(min_val: nvcv.Tensor, min_loc: nvcv.Tensor, num_min: nvcv.Tensor, max_val: nvcv.Tensor, max_loc: nvcv.Tensor, num_max: nvcv.Tensor, src: nvcv.Tensor, *, stream: Optional[nvcv.cuda.Stream] = None) -> tuple[nvcv.Tensor, nvcv.Tensor, nvcv.Tensor, nvcv.Tensor, nvcv.Tensor, nvcv.Tensor]

    Finds minimum/maximum on the input tensor.

    See also:

    Refer to the CV-CUDA C API reference for the MinMaxLoc operator for more details and usage examples.

    Args:

    min_val (nvcv.Tensor): Output tensor with minimum value. min_loc (nvcv.Tensor): Output tensor with minimum locations. num_min (nvcv.Tensor): Output tensor with number of minimum locations found. max_val (nvcv.Tensor): Output tensor with maximum value. max_loc (nvcv.Tensor): Output tensor with maximum locations. num_max (nvcv.Tensor): Output tensor with number of maximum locations found. src (nvcv.Tensor): Input tensor to get minimum/maximum values/locations. stream (nvcv.cuda.Stream, optional): CUDA Stream on which to perform the operation.

    Returns:

    Tuple[nvcv.Tensor, nvcv.Tensor, nvcv.Tensor, nvcv.Tensor, nvcv.Tensor, nvcv.Tensor]: A tuple with minimum value, locations and number of minima, and also maximum value, locations and number of maxima.

    Caution:

    Restrictions to several arguments may apply. Check the C API references of the CV-CUDA operator.

  2. min_max_loc_into(min_val: nvcv.Tensor, min_loc: nvcv.Tensor, num_min: nvcv.Tensor, max_val: nvcv.Tensor, max_loc: nvcv.Tensor, num_max: nvcv.Tensor, src: nvcv.ImageBatchVarShape, *, stream: Optional[nvcv.cuda.Stream] = None) -> tuple[nvcv.Tensor, nvcv.Tensor, nvcv.Tensor, nvcv.Tensor, nvcv.Tensor, nvcv.Tensor]

    Finds minimum/maximum on the input batch.

    See also:

    Refer to the CV-CUDA C API reference for the MinMaxLoc operator for more details and usage examples.

    Args:

    min_val (nvcv.Tensor): Output tensor with minimum value. min_loc (nvcv.Tensor): Output tensor with minimum locations. num_min (nvcv.Tensor): Output tensor with number of minimum locations found. max_val (nvcv.Tensor): Output tensor with maximum value. max_loc (nvcv.Tensor): Output tensor with maximum locations. num_max (nvcv.Tensor): Output tensor with number of maximum locations found. src (nvcv.ImageBatchVarShape): Input image batch to get minimum/maximum values/locations. stream (nvcv.cuda.Stream, optional): CUDA Stream on which to perform the operation.

    Returns:

    Tuple[nvcv.Tensor, nvcv.Tensor, nvcv.Tensor, nvcv.Tensor, nvcv.Tensor, nvcv.Tensor]: A tuple with minimum value, locations and number of minima, and also maximum value, locations and number of maxima.

    Caution:

    Restrictions to several arguments may apply. Check the C API references of the CV-CUDA operator.