Logo Search packages:      
Sourcecode: qtpfsgui version File versions

tmo_fattal02.cpp File Reference


Detailed Description

TMO: Gradient Domain High Dynamic Range Compression.

Implementation of Gradient Domain High Dynamic Range Compression by Raanan Fattal, Dani Lischinski, Michael Werman.

Author:
Grzegorz Krawczyk, <krawczyk@mpi-sb.mpg.de>
This file is a part of Qtpfsgui package, based on pfstmo. ---------------------------------------------------------------------- Copyright (C) 2003,2004 Grzegorz Krawczyk

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ----------------------------------------------------------------------

Id
tmo_fattal02.cpp,v 1.4 2005/11/29 18:34:49 aefremov Exp

Definition in file tmo_fattal02.cpp.

#include <iostream>
#include <vector>
#include <algorithm>
#include <math.h>
#include <assert.h>
#include "../../Libpfs/array2d.h"
#include "pde.h"

Go to the source code of this file.

Functions

void calculateFiMatrix (pfs::Array2D *FI, pfs::Array2D *gradients[], float avgGrad[], int nlevels, float alfa, float beta, float noise, bool newfattal)
float calculateGradients (pfs::Array2D *H, pfs::Array2D *G, int k)
void createGaussianPyramids (pfs::Array2D *H, pfs::Array2D **pyramids, int nlevels)
void downSample (pfs::Array2D *A, pfs::Array2D *B)
void findMaxMinPercentile (pfs::Array2D *I, float minPrct, float &minLum, float maxPrct, float &maxLum)
void gaussianBlur (pfs::Array2D *I, pfs::Array2D *L)
void tmo_fattal02 (pfs::Array2D *Y, pfs::Array2D *L, float alfa, float beta, float noise, bool newfattal)
 Gradient Domain High Dynamic Range Compression.
void upSample (pfs::Array2D *A, pfs::Array2D *B)


Generated by  Doxygen 1.6.0   Back to index