Skip to content

Instantly share code, notes, and snippets.

View mshabunin's full-sized avatar
🌚

Maksim Shabunin mshabunin

🌚
  • Nizhny Novgorod, Russia
  • 09:57 (UTC +03:00)
View GitHub Profile
@mshabunin
mshabunin / issue_6198.cpp
Created March 2, 2016 16:13
Test code for issue 6198
#include <vector>
#include <stdio.h>
#include <opencv2/opencv.hpp>
using namespace cv;
using namespace std;
void createAlphaMat(Mat &mat)
{
for (int i = 0; i < mat.rows; ++i) {
@mshabunin
mshabunin / test.cpp
Last active February 15, 2016 09:07
OpenCV memory leak test (Mac OS X)
#include <opencv2/imgcodecs/imgcodecs.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <mach/mach.h>
#include <iostream>
#include <ctime>
using namespace std;
int main()
@mshabunin
mshabunin / mailFilter.xml
Created July 21, 2015 08:00
GMail filter to clean OpenCV issues transfer notifications
<?xml version='1.0' encoding='UTF-8'?>
<feed xmlns='http://www.w3.org/2005/Atom' xmlns:apps='http://schemas.google.com/apps/2006'>
<title>Mail Filters</title>
<id>tag:mail.google.com,2008:filters:1437465402971</id>
<updated>2015-07-21T07:57:20Z</updated>
<author>
<name>Maksim Shabunin</name>
</author>
<entry>
<category term='filter'></category>
#define CV_VFP 1
#if defined __GNUC__ && defined __arm__ && (defined __ARM_PCS_VFP || defined __ARM_VFPV3__)
// #define CV_VFP 1
#endif
#if defined __GNUC__ && defined __arm__ && (defined __ARM_PCS_VFP || defined __ARM_VFPV3__ || defined __ARM_NEON__) && !defined __SOFTFP__
// #define CV_VFP 1
#endif
@mshabunin
mshabunin / legacy_params.hpp
Created February 25, 2015 10:07
legacy_params.hpp
#ifndef __LEGACY_ML_PARAMS_DEFINED__
#define __LEGACY_ML_PARAMS_DEFINED__
#include "opencv2/ml.hpp"
namespace cv { namespace ml {
template <typename T>
class MLParams
{