- im is bigger image (for example face)
- sub is cropped smaller image (for example face's eyeblow)
Mat sub = new Mat(); int xStart = 500; int xEnd = 800; int yStart = 500; int yEnd = 800; im.submat(yStart, yEnd, xStart, xEnd).copyTo(sub); Debug.Log(sub.size().width); sub.copyTo(im);
- submat parameter order is y, y, x, x. Take care.
Learning OpenCV 3: Computer Vision in C++ with the OpenCV Library (English Edition)
- 作者: Adrian Kaehler,Gary Bradski
- 出版社/メーカー: O'Reilly Media
- 発売日: 2016/12/14
- メディア: Kindle版
- この商品を含むブログを見る