7
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

opencv2.4 マスク処理

Posted at
hoge.cpp

// 取得先、マスク、貼り付け先の画像を読み込む
// 全ての画像は同じサイズのものを使う
cv::Mat img            = cv::imread("base.bmp");
cv::Mat mask_img       = cv::imread("mask.bmp");
cv::Mat background_img = cv::imread("bakground.bmp");

// マスク処理
img.copyTo(background_img, mask_img); 

7
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
7
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?