Skip to content

Instantly share code, notes, and snippets.

View odunboye's full-sized avatar

Odun Adeboye odunboye

View GitHub Profile
/*
http://benjithian.sg/2012/12/load-image-from-memoryweb-using-opencv-and-libcurl/
I just started playing around with OpenCV and wanted it to display images directly from memory loaded from a website URL.
Below is the C++ codes to load an image directly from a website without it being written to the hard disk.
Library used were OpenCV and Libcurl. Do tell me if there is a more efficient way to do it.
*/
#include <stdio.h>
#include <curl/curl.h>
#include <sstream>
#include <iostream>
@mlafeldt
mlafeldt / elf.h
Last active April 22, 2025 17:10
elf.h for OSX
/* This is the original elf.h file from the GNU C Library; I only removed
the inclusion of feature.h and added definitions of __BEGIN_DECLS and
__END_DECLS as documented in
https://cmd.inp.nsk.su/old/cmd2/manuals/gnudocs/gnudocs/libtool/libtool_36.html
On macOS, simply copy the file to /usr/local/include/.
Mathias Lafeldt <[email protected]> */
/* This file defines standard ELF types, structures, and macros.