Click here to Skip to main content
15,881,898 members
Articles / High Performance Computing / Parallel Processing

Fast Image Blurring with CUDA

Rate me:
Please Sign up or sign in to vote.
4.18/5 (8 votes)
10 Sep 2009CPOL2 min read 134.8K   4K   32  
High performance and good quality of image blurring
// utils.h
//
#include "cutil_inline.h"
#include <wtypes.h>

extern "C" 
{
    void DebugPrintf(char* pszFormatA, ...);
    bool InitCUDA(bool& bMapHostMemory);
    void ExitCUDA();
    bool SaveTGA(unsigned nWidth, unsigned nHeight, unsigned long* lpBuffer, char* lpFilename);
    unsigned char* LoadTGA(char* fname, unsigned *pw, unsigned* ph);
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior) http://home.so-net.net.tw/lioucy
Taiwan Taiwan
I've been a coding guy for 15 years, using C/C++ and assembly. Also using database to do information presenation with graphics applications.

Comments and Discussions