Skip to content

Instantly share code, notes, and snippets.

View iago-suarez's full-sized avatar

Iago Suárez iago-suarez

View GitHub Profile
@iago-suarez
iago-suarez / beblid-demo.cpp
Last active February 3, 2023 09:51
beblid-demo-code
#include <iostream>
#include <opencv2/opencv.hpp>
#include "BEBLID.h"
int main() {
// Read the input images in grayscale format (CV_8UC1)
cv::Mat img1 = cv::imread("../imgs/img1.jpg", cv::IMREAD_GRAYSCALE);
cv::Mat img2 = cv::imread("../imgs/img3.jpg", cv::IMREAD_GRAYSCALE);
@iago-suarez
iago-suarez / opencv-opencl-android.md
Last active March 12, 2024 02:24
Setting Up OpenCL for OpenCV on Android, the full story

Setting Up OpenCL for OpenCV on Android, the full story

The tutorial Use OpenCL in Android camera preview based CV application show us how we can use the Transparent API to dramatically increase the performance of some expensive operations.

The first step in order to be able to execute the tutorial example is to re-compile opencv with the correct flags:

# Export your NDK, it will be looked for OpenCV to compile your project. In my case
export ANDROID_NDK=~/graffter/libs/android-ndk-r10d/

# Download the necessary code