Skip to content

Glimpse

devthered edited this page May 21, 2016 · 1 revision

Open-Source Economic Image Processing Library

Glimpse is a C++ library that provides easy-to-use abstractions for OpenCV applications. Primarily for developers new to image processing and computer vision, glimpse allows users to setup image processing systems rapidly and conveniently on desktop and embedded (using Raspberry Pi) platforms. Glimpse is licensed under the MIT license and is free to use for personal, educational, and commercial purposes.

Glimpse provides many useful functions:

  • One-line image filtering and transformation functions
  • API for processing video using custom filters and viewing results
  • Useful debugging tools for OpenCV development, e.g. allowing the printout of matrix information

For example, translating an image using bare OpenCV requires the following code:

Mat input = imread("test.jpg");
int offsetx = 10;
int offsety = 15;
Mat output;
Mat trans_mat = (Mat_<double>(2,3) << 1, 0, offsetx, 0, 1, offsety);
warpAffine(input,output,trans_mat,input.size());

Using Glimpse, this transformation is trivial:

Mat input = imread("test.jpg");
Mat output;
Translate(input, output, 10, 15);

Clone this wiki locally