Skip to content

Commit

Permalink
proper burger masking
Browse files Browse the repository at this point in the history
  • Loading branch information
codebot committed Jul 1, 2016
1 parent d08ef3b commit 9552290
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions image_tools/src/burger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ Burger::Burger()
burger_png.resize(burger_size);
decode_base64(BURGER, burger_png);
burger_template = cv::imdecode(burger_png, CV_LOAD_IMAGE_COLOR);
burger_mask = cv::Mat(64, 64, CV_8UC1);
cv::threshold(burger_template, burger_mask, 100, 255, cv::THRESH_BINARY);
cv::floodFill(burger_template, cv::Point(1, 1), CV_RGB(1,1,1));//cv::Scalar(1));
cv::compare(burger_template, 1, burger_mask, cv::CMP_NE);
srand(time(NULL));
}

Expand Down

0 comments on commit 9552290

Please sign in to comment.