Class trifinger_object_tracking::CvSubImages

class CvSubImages

Combine multiple images of same size in grid.

Creates an nxm grid of images, similar to subplots of matplotlib.

Public Functions

CvSubImages(cv::Size img_size, unsigned rows, unsigned cols, unsigned border = 5, cv::Scalar background = cv::Scalar(255, 255, 255))
Parameters:
  • img_size – Size of the single images.

  • rows – Number of rows in the grid.

  • cols – Number of columns in the grid.

  • border – Size of the border between images in pixels.

  • background – Background colour.

void set_subimg(const cv::Mat &image, unsigned row, unsigned col)

Set a sub-image.

Parameters:
  • image – The image.

  • row – Row in which the image is shown.

  • col – Column in which the image is shown.

const cv::Mat &get_image() const

Get the image grid.

CvSubImages(cv::Size img_size, unsigned rows, unsigned cols, unsigned border = 5, cv::Scalar background = cv::Scalar(255, 255, 255))
Parameters:
  • img_size – Size of the single images.

  • rows – Number of rows in the grid.

  • cols – Number of columns in the grid.

  • border – Size of the border between images in pixels.

  • background – Background colour.

void set_subimg(const cv::Mat &image, unsigned row, unsigned col)

Set a sub-image.

Parameters:
  • image – The image.

  • row – Row in which the image is shown.

  • col – Column in which the image is shown.

const cv::Mat &get_image() const

Get the image grid.