130 Mat getROI(
int startRow,
int startCol,
int roiRows,
int roiCols);
144 Mat getROI(
int startRow,
int startCol,
int roiRows,
int roiCols,
int stride);
162 void Copy(
const Mat &src,
int row_pos,
int col_pos);
190 Mat Get(
int row_start,
int row_size,
int col_start,
int col_size);
220 return data[row * this->stride + col];
232 return data[row * this->stride + col];
387 Mat block(
int startRow,
int startCol,
int blockRows,
int blockCols);
Mat Get(int row_start, int row_size, int col_start, int col_size)
Mat & operator+=(const Mat &A)
Mat rowReduceFromGaussian()
static Mat ones(int size)
void PrintHead(void)
print matrix header
static float dotProduct(Mat A, Mat B)
Dotproduct of two vectors.
Mat & operator=(const Mat &src)
Mat & operator*=(const Mat &A)
Mat expHelper(const Mat &m, int num)
Mat block(int startRow, int startCol, int blockRows, int blockCols)
static Mat bandSolve(Mat A, Mat b, int k)
Band solve the matrix.
void Copy(const Mat &src, int row_pos, int col_pos)
void swapRows(int row1, int row2)
void CopyHead(const Mat &src)
copy header of matrix
Mat getROI(int startRow, int startCol, int roiRows, int roiCols)
Create a subset of matrix as ROI (Region of Interest).
Mat & operator/=(float C)
float & operator()(int row, int col)
Mat gaussianEliminate()
Gaussian Elimination.
static Mat augment(Mat A, Mat B)
Augmented matrices.
static Mat solve(Mat A, Mat b)
Solve the matrix.
const float & operator()(int row, int col) const
Mat cofactor(int row, int col, int n)
static Mat roots(Mat A, Mat y)
Solve the matrix.
Mat & operator-=(const Mat &A)
std::istream & operator>>(std::istream &is, Mat &m)
std::ostream & operator<<(std::ostream &os, const Mat &m)
Mat operator-(const Mat &A, const Mat &B)
Mat operator+(const Mat &A, const Mat &B)
bool operator==(const Mat &A, const Mat &B)
Mat operator/(const Mat &A, float C)
Mat operator*(const Mat &A, const Mat &B)
void resizeRect(int x, int y, int width, int height)
Resize rect area.
Rect(int x=0, int y=0, int width=0, int height=0)
Constructor with initialization to 0.
int areaRect(void)
Get amount of elements in the rect area.