This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| #include <fstream> | |
| #include <vector> | |
| #include <cstdint> | |
| #include <memory> | |
| #include <jpeglib.h> | |
| using namespace std; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * SimpleAdHocTracker.cpp | |
| * | |
| * Created on: Mar 15, 2015 | |
| * Author: roy_shilkrot | |
| * | |
| * The MIT License (MIT) | |
| * | |
| * Copyright (c) 2015 Roy Shilkrot | |
| * |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| This is the Tapestry component to communicate with the javascript | |
| */ | |
| package com.yourpackage.components; | |
| import org.apache.tapestry5.BindingConstants; | |
| import org.apache.tapestry5.ComponentResources; | |
| import org.apache.tapestry5.Link; | |
| import org.apache.tapestry5.MarkupWriter; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * SimpleARQGLViewer.cpp | |
| * Creating an AR application with QGLViewer | |
| * | |
| * Created by Roy Shilkrot on 2/16/2015 | |
| * Copyright 2015 Roy Shilkrot. All rights reserved. | |
| * | |
| * Permission is hereby granted, free of charge, to any person obtaining a copy | |
| * of this software and associated documentation files (the "Software"), to deal | |
| * in the Software without restriction, including without limitation the rights |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * OGL_OCV_common.cpp | |
| * Common interop between OpenCV and OpenGL | |
| * | |
| * Created by Roy Shilkrot on 2/16/2015 | |
| * Copyright 2015 Roy Shilkrot. All rights reserved. | |
| * | |
| * Permission is hereby granted, free of charge, to any person obtaining a copy | |
| * of this software and associated documentation files (the "Software"), to deal | |
| * in the Software without restriction, including without limitation the rights |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <opencv2/core/core.hpp> | |
| #include <opencv2/highgui/highgui.hpp> | |
| #include <opencv2/features2d/features2d.hpp> | |
| #include <opencv2/imgproc/imgproc.hpp> | |
| #include <opencv2/video/video.hpp> | |
| #include <iostream> | |
| using namespace cv; | |
| using namespace std; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <opencv2/opencv.hpp> | |
| using namespace cv; | |
| /** | |
| * Compute RLE. | |
| * RLE is encoded in a vector of vectors of (run length, value). | |
| * | |
| * @param patch_ the 8UC1 image to work on | |
| * @param whichWay by which dimension? rows = 0, columns != 0 | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /// perform the Simplest Color Balancing algorithm | |
| void SimplestCB(Mat& in, Mat& out, float percent) { | |
| assert(in.channels() == 3); | |
| assert(percent > 0 && percent < 100); | |
| float half_percent = percent / 200.0f; | |
| vector<Mat> tmpsplit; split(in,tmpsplit); | |
| for(int i=0;i<3;i++) { | |
| //find the low and high precentile values (based on the input percentile) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * SoundUtils.cpp | |
| * | |
| * Created on: Oct 9, 2014 | |
| * Author: roy_shilkrot | |
| */ | |
| #include <QDebug> | |
| #include <QBuffer> |