pub fn generate_image_marker(
    dictionary: &Dictionary,
    id: i32,
    side_pixels: i32,
    img: &mut impl ToOutputArray,
    border_bits: i32
) -> Result<()>
Expand description

Generate a canonical marker image

Parameters

  • dictionary: dictionary of markers indicating the type of markers
  • id: identifier of the marker that will be returned. It has to be a valid id in the specified dictionary.
  • sidePixels: size of the image in pixels
  • img: output image with the marker
  • borderBits: width of the marker border.

This function returns a marker image in its canonical form (i.e. ready to be printed)

C++ default parameters

  • border_bits: 1