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 <QCoreApplication> | |
#include <QtGlobal> | |
#include <QDebug> | |
#include "global_settings.hpp" | |
int main(int argc, char** argv) | |
{ | |
QCoreApplication app(argc, argv); |
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
all: | |
g++ morph_descriptor.cpp -o MorphDescriptor -lao -lopencv_core -lopencv_highgui -lopencv_imgproc |
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 <vector> | |
#include <memory> | |
#include <boost/shared_ptr.hpp> | |
#include <boost/python.hpp> | |
#include <boost/python/stl_iterator.hpp> | |
#include <Python.h> | |
template<typename T> inline std::vector<T> pyListToStdVector(const boost::python::object& iterable) | |
{ |
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
<html> | |
<body> | |
</body> | |
</html> | |
<script> | |
async function loadData() | |
{ | |
let response = await fetch("http://localhost/path/to/TestCGI.bin", { | |
method: 'POST', |
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 <thread> | |
#include <mutex> | |
#include <condition_variable> | |
#include <unistd.h> | |
int main(int argc, char** argv) | |
{ | |
std::mutex m; |
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
void extractRoi(cv::Mat& inImage, cv::Mat& outImage, cv::Rect roi) | |
{ | |
/* Create the image */ | |
outImage = cv::Mat(roi.height, roi.width, inImage.type()); | |
/* Populate the image */ | |
for (int i = roi.y; i < (roi.y+roi.height); i++) | |
{ | |
uint16_t* inP = inImage.ptr<uint16_t>(i); | |
uint16_t* outP = outImage.ptr<uint16_t>(i-roi.y); |
OlderNewer