bm3d_src

所属分类:Windows编程
开发工具:C/C++
文件大小:27002KB
下载次数:2
上传日期:2020-02-29 13:31:21
上 传 者xingguang
说明:  BM3D算法实现图像噪声去除、质量增强源码
(BM3D algorithm for image noise removal and quality enhancement source code)

文件列表:
bm3d.cpp (54878, 2012-04-13)
bm3d.h (4788, 2012-04-13)
bm3d.o (131288, 2019-10-27)
BM3Ddenoising (105568, 2019-10-27)
cinput.png (27497698, 2019-10-27)
io_png.c (22451, 2019-10-27)
io_png.c~ (22443, 2019-10-27)
io_png.h (753, 2010-09-07)
io_png.o (20752, 2019-10-27)
lib_transforms.cpp (13021, 2012-04-13)
lib_transforms.h (1500, 2012-04-13)
lib_transforms.o (24264, 2019-10-27)
main.cpp (6889, 2012-04-13)
main.o (20592, 2019-10-27)
Makefile (1100, 2011-12-15)
measures.txt (252, 2019-10-27)
mt19937ar.c (5065, 2010-09-18)
mt19937ar.h (250, 2010-09-18)
mt19937ar.o (4512, 2019-10-27)
utilities.cpp (21659, 2012-04-13)
utilities.h (2899, 2012-04-13)
utilities.o (36816, 2019-10-27)

% BM3D image denoising. # ABOUT * Author : Marc Lebrun * Copyright : (C) 2011 IPOL Image Processing On Line http://www.ipol.im/ * Licence : GPL v3+, see GPLv3.txt # OVERVIEW This source code provides an implementation of the BM3D image denoising. # UNIX/LINUX/MAC USER GUIDE The code is compilable on Unix/Linux and Mac OS. - Compilation. Automated compilation requires the make program. - Library. This code requires the libpng library and the fftw library. - Image format. Only the PNG format is supported. ------------------------------------------------------------------------- Usage: 1. Download the code package and extract it. Go to that directory. 2. Compile the source code (on Unix/Linux/Mac OS). There are two ways to compile the code. (1) RECOMMENDED, with Open Multi-Processing multithread parallelization (http://openmp.org/). Roughly speaking, it accelerates the program using the multiple processors in the computer. Run make OMP=1 OR (2) If the complier does not support OpenMp, run make 3. Run BM3D image denoising. ./BM3Ddenoising The generic way to run the code is: ./BM3Ddenoising cinput.png sigma ImNoisy.png ImBasic.png ImDenoised.png ImDiff.png ImBias.png ImDiffBias.png computeBias 2DtransformStep1 useSD1 2DtransformStep2 useSD2 ColorSpace with : - cinput.png is a noise-free image; - sigma is the value of the noise which will be added to cinput.png; - ImNoisy.png will contain the noisy image; - ImBasic.png will contain the result of the first step of the algorithm; - ImDenoised.png will contain the final result of the algorithm; - ImDiff.png will contain the difference between cinput.png and ImDenoised.png; - ImBias.png will contain the result of the algorithm applied on cinput.png; - ImDiffBias.png will contain the difference between cinput.png and ImBias.png; - computeBias : see (3); - 2DtransformStep1: choice of the 2D transform which will be applied in the first step of the algorithm. See (4); - useSD1 : see (1) below; - 2DtransformStep2: choice of the 2D transform which will be applied in the second step of the algorithm. See (4); - useSD2 : see (2); - ColorSpace : choice of the color space on which the image will be applied. See (5). There are multiple ways to run the code: (1) for the first step, users can choose if they prefer to use standard variation for the weighted aggregation (useSD1 = 1) (2) for the second step, users can choose if they prefer to use standard variation for the weighted aggregation (useSD2 = 1) (3) you can moreover want to compute the bias (algorithm applied to the original image). To do this, use computeBias = 1. (4) you can choose the DCT transform or the Bior1.5 transform for the 2D transform in the step 1 (tau_2D_hard = dct or bior) and/or the step 2. (tau_2d_wien = dct or bior). (5) you can choose the colorspace for both steps between : rgb, yuv, ycbcr and opp. Example, run ./BM3Ddenoising cinput.png 10 ImNoisy.png ImBasic.png ImDenoised.png ImDiff.png ImBias.png ImDiffBias.png 1 bior 0 dct 1 opp # ABOUT THIS FILE Copyright 2011 IPOL Image Processing On Line http://www.ipol.im/ Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. This file is offered as-is, without any warranty. mpicxx -fopenmp -O3 -o BM3Ddenoising main.cpp bm3d.cpp lib_transforms.cpp utilities.cpp io_png.c mt19937ar.c -lpng -lm -lfftw3f sudo apt-get install libpng12-0 //buyong apt-get install libpng++-dev sudo apt-get install libpng-dev sudo apt-get install fftw3 fftw3-dev pkg-config

近期下载者

相关文件


收藏者