GCVL
Multi-platform (Windows, Unix and Mac OS) C++/OpenCL/CUDA library with several Computer Vision algorithms.
src/gcvl/gcvlutils.h
Go to the documentation of this file.
00001 /*
00002  *
00003  * GPGPU Computer Vision Library (GCVL)
00004  *
00005  * Copyright (c) Luis Omar Alvarez Mures 2015 <omar.alvarez@udc.es>
00006  * Copyright (c) Emilio Padron Gonzalez 2015 <emilioj@gmail.com>
00007  *
00008  * All rights reserved.
00009  *
00010  * This library is free software; you can redistribute it and/or
00011  * modify it under the terms of the GNU General Public
00012  * License as published by the Free Software Foundation; either
00013  * version 3 of the License, or (at your option) any later version.
00014  *
00015  * This library is distributed in the hope that it will be useful,
00016  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00017  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00018  * General Public License for more details.
00019  *
00020  * You should have received a copy of the GNU General Public
00021  * License along with this library.
00022  *
00023  */
00024 
00025 #pragma once
00026 
00028 
00033 #define roundUpDiv(a,b) (a + b - 1) / b
00034 
00036 
00042 static void Print_N_Times(const std::string x, const int N, const bool newline = true)
00043 {
00044     for (int i = 0 ; i < N ; i++)
00045     {
00046         std::cout << x;
00047     }
00048 
00049     if (newline)
00050         std::cout << std::endl;
00051 }
 All Classes Namespaces Files Functions Variables Defines