Total Variation Deconvolution using Split Bregman
|
Utility routines used in both DCT and DFT based deconvolution. More...
#include "tvregopt.h"
Go to the source code of this file.
Functions | |
static void | Divergence (num *DivV, int DivWidth, int DivHeight, const numvec2 *V, int Width, int Height, int NumChannels) |
Compute discrete 2D divergence. More... | |
static num | UUpdate (tvregsolver *S) |
Trims padding, computes ||B - u||, and assigns u = B. More... | |
static ATTRIBUTE_ALWAYSINLINE int | WSymExtension (int N, int i) |
Boundary handling function for whole-sample symmetric extension. More... | |
static ATTRIBUTE_ALWAYSINLINE int | PeriodicExtension (int N, int i) |
Boundary handling function for periodic extension. More... | |
Utility routines used in both DCT and DFT based deconvolution.
Copyright (c) 2010-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 util_deconv.h.
|
static |
Compute discrete 2D divergence.
DivV | the divergence of V |
DivWidth,DivHeight | the dimensions of DivV |
V | input vector field |
Width,Height,NumChannels | the dimensions of V |
The discrete divergence is defined as the negative adjoint of the discrete gradient operator, where is
In the interior of the domain, the discrete divergence reduces to backward differences,
for i = 1, ..., Width-2, j = 1, ..., Height-2.
The input vector field V is represented as an array of numvec2 elements,
where i = 0, ..., Width-1, j = 0, ..., Height-1, and k = 0, ..., NumChannels-1.
Definition at line 49 of file util_deconv.h.
|
static |
Boundary handling function for periodic extension.
N | is the data length |
i | is an index into the data |
Extends data "abcde" to "...deabcdeabcdeabc..."
Definition at line 158 of file util_deconv.h.
|
static |
Trims padding, computes ||B - u||, and assigns u = B.
S | tvreg solver state |
Definition at line 102 of file util_deconv.h.
|
static |
Boundary handling function for whole-sample symmetric extension.
N | is the data length |
i | is an index into the data |
Extends data "abcde" to "...cbabcdedcbabcde..."
Definition at line 136 of file util_deconv.h.