Coder Social home page Coder Social logo

dctdenoising's Introduction

% Multiscale DCT image denoising.

ABOUT

OVERVIEW

This source code provides an implementation of the "Multiscale DCT denoising" algorithm described in the IPOL article: http://www.ipol.im/pub/art/2017/201

UNIX/LINUX/MAC USER GUIDE

The code is compilable on Unix/Linux and Mac OS.

  • Compilation. Automated compilation requires the Cmake and make.

  • Dependencies. This code requires the libpng, libtiff, libjpeg, and libfftw.

  • Image formats. Only the PNG, JPEG, and TIFF (float) formats are supported.


Usage:

  1. Download the code package and extract it. Go to that directory.

  2. Compile the source code (on Unix/Linux/Mac OS).

    mkdir build; cd build; cmake ..; make;

  3. Runing DCT image denoising: parameters

    ./dctdenoising sigma [input [output]] # noise std, noisy image, output
    [-w patch_size (default 8)] # DCT denoising patch size
    [-1 | -2 guide] # -1: only hard thresh., -2: provide guide
    [-no_adaptive_aggregation] # disable adaptive aggregation weights
    [-n scales(4)] # multiscale: number of scales
    [-c factor(.5)] # multiscale: recomposition factor
    [-single output_singlescale] # multiscale: save also one-scale result

The flag -1 permits to run DCT denoising only with the hard thresholding step, while -2 allows to specify the guide for the wiener filtering step. When not set both steps are executed using the output of the first one as guide for the second one. Setting no_adaptive_aggregation disables the aggregation weights.

Example, run

./dctdenoising 15 ../noisy.tiff denoised.png

To visualize tiff (float) images use PVFLIP (https://github.com/gfacciol/pvflip) or ImageJ (https://imagej.nih.gov/ij/index.html)

ABOUT THIS FILE

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.

dctdenoising's People

Contributors

gfacciol avatar npd avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

dctdenoising's Issues

Running the example, Assertion pops up

When I compile and execute: ./dctdenoising 15 ../noisy.tiff denoised.png
I get an error :Image.hpp:76: const float& imgutils::Image::val(int, int, int) const: Assertion `0 < = col && col < columns_' failed

I tried to debug to find the cause, but didn't find anything obviously wrong
Ask if you have encountered it too

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.