[][src]Function opencv::aruco::draw_detected_diamonds

pub fn draw_detected_diamonds(
    image: &mut dyn ToInputOutputArray,
    diamond_corners: &dyn ToInputArray,
    diamond_ids: &dyn ToInputArray,
    border_color: Scalar
) -> Result<()>

Draw a set of detected ChArUco Diamond markers

Parameters

  • image: input/output image. It must have 1 or 3 channels. The number of channels is not altered.
  • diamondCorners: positions of diamond corners in the same format returned by detectCharucoDiamond(). (e.g std::vector<std::vectorcv::Point2f > ). For N detected markers, the dimensions of this array should be Nx4. The order of the corners should be clockwise.
  • diamondIds: vector of identifiers for diamonds in diamondCorners, in the same format returned by detectCharucoDiamond() (e.g. std::vector). Optional, if not provided, ids are not painted.
  • borderColor: color of marker borders. Rest of colors (text color and first corner color) are calculated based on this one.

Given an array of detected diamonds, this functions draws them in the image. The marker borders are painted and the markers identifiers if provided. Useful for debugging purposes.

C++ default parameters

  • diamond_ids: noArray()
  • border_color: Scalar(0,0,255)