Skip to content
Snippets Groups Projects

Implements #134 source groups

Merged Nicolas Pope requested to merge feature/134/usegroup into master
3 files
+ 11
1
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -289,6 +289,14 @@ static void drawEdges( const cv::Mat &in, cv::Mat &out,
cv::addWeighted(edges, weight, out, 1.0, 0.0, out, CV_8UC3);
}
bool ftl::gui::Camera::thumbnail(cv::Mat &thumb) {
UNIQUE_LOCK(mutex_, lk);
src_->grab(1,9);
if (rgb_.empty()) return false;
cv::resize(rgb_, thumb, cv::Size(320,180));
return true;
}
const GLTexture &ftl::gui::Camera::captureFrame() {
float now = (float)glfwGetTime();
delta_ = now - ftime_;
Loading