Rudin-Osher-Fatemi Total Variation Denoising using Split Bregman
Macros | Functions
imnoise.c File Reference

Corrupt an image with Gaussian, Laplace, or Poisson noise. More...

#include <stdio.h>
#include <string.h>
#include "imageio.h"
#include "randmt.h"

Go to the source code of this file.

Macros

#define DISPLAY_SCALING   255
 Display intensities in the range [0,DISPLAY_SCALING].
 
#define JPEGQUALITY   95
 Quality for writing JPEG images.
 

Functions

void PrintHelpMessage ()
 
void GaussianNoise (float *Image, long NumEl, float Sigma)
 
void LaplaceNoise (float *Image, long NumEl, float Sigma)
 
void PoissonNoise (float *Image, long NumEl, float Sigma)
 
int IsGrayscale (const float *Image, long NumPixels)
 
int main (int argc, char **argv)
 

Detailed Description

Corrupt an image with Gaussian, Laplace, or Poisson noise.

Author
Pascal Getreuer getre.nosp@m.uer@.nosp@m.gmail.nosp@m..com

Copyright (c) 2012, Pascal Getreuer All rights reserved.

This program is free software: you can use, modify and/or redistribute it under the terms of the simplified BSD License. You should have received a copy of this license along this program. If not, see http://www.opensource.org/licenses/bsd-license.html.

Definition in file imnoise.c.