struct mrpt::vision::TImageROI

Overview

A structure for defining a ROI within an image.

#include <mrpt/vision/types.h>

struct TImageROI
{
    // fields

    size_t xMin {0};
    size_t xMax {0};
    size_t yMin {0};
    size_t yMax {0};

    // construction

    TImageROI();

    TImageROI(
        size_t x1,
        size_t x2,
        size_t y1,
        size_t y2
        );
};

Fields

size_t xMin {0}

X coordinate limits [0,imageWidth)

size_t yMin {0}

Y coordinate limits [0,imageHeight)