Skip to content

Instantly share code, notes, and snippets.

// countnonzeropixels.cpp: count the number of non zero value pixels in an image and print it
#include <opencv2/core.hpp>
#include <opencv2/imgcodecs.hpp>
using namespace cv;
using namespace std;
int main(int argc, char *argv[])
@xef6
xef6 / lnetlib.c
Created September 4, 2013 02:36
lua c lib thingy
#include <stdlib.h>
#include <sys/utsname.h>
#include <sys/time.h>
#include <string.h>
#define lnetlib_c /* Define the library */
/* Include the Lua API header files */
#include "lua.h"
#include "lauxlib.h"