Source-linked AI summary

Image Processing using Smooth Ordering of its Patches

Idan Ram, Michael Elad, Israel Cohen

arXiv:1210.3832v1cs.CV

TL;DR

The paper addresses image restoration by exploiting structure among local patches without relying on complex global transforms. It orders overlapping patches along a shortest path, applies simple 1D smoothing to the induced pixel signal, and uses the result for denoising and inpainting. The reported outcomes are competitive denoising performance and improved inpainting results against stated baselines.

  • Problem

    Existing patch-based methods exploit interrelations among patches, motivating a simpler way to use their structured geometry for image recovery.

  • Method

    The method orders overlapping patches as points in R^n along a shortest traveling-salesman path, smooths the resulting 1D pixel ordering, and restores values to their original locations.

  • Results

    The scheme achieves denoising results similar to K-SVD and better inpainting results than simple interpolation and a redundant-DCT sparse-representation method.

  • Takeaways & Limitations

    Simple 1D filtering and interpolation applied after carefully designed pixel permutations can produce high-quality denoising and inpainting results.

Abstract

from arXiv · show

We propose an image processing scheme based on reordering of its patches. For a given corrupted image, we extract all patches with overlaps, refer to these as coordinates in high-dimensional space, and order them such that they are chained in the "shortest possible path", essentially solving the traveling salesman problem. The obtained ordering applied to the corrupted image, implies a permutation of the image pixels to what should be a regular signal. This enables us to obtain good recovery of the clean image by applying relatively simple 1D smoothing operations (such as filtering or interpolation) to the reordered set of pixels. We explore the use of the proposed approach to image denoising and inpainting, and show promising results in both cases.

I. INTRODUCTION

The paper proposes simplifying patch-based image processing by ordering overlapping patches along a shortest path, thereby converting corrupted-image pixels into a smoother 1D signal for reconstruction. It applies this scheme to denoising and inpainting, reporting competitive or improved results against established methods.

  • I. INTRODUCTION: Local patch methods exploit structured relationships among overlapping image patches to support reconstruction.These relationships include similarity weighting, clustering, dictionary representation, and sparsifying transforms.
  • I. INTRODUCTION: The proposed method extracts maximally overlapping patches, treats them as points in R^n, and orders them along an approximately shortest traveling-salesman path.The method discards the patches’ original spatial relationships when constructing the ordering.
  • I. INTRODUCTION: Unlike the earlier work, this paper discards the global multiscale transform and sparsity-driven processing, retaining patch ordering as the core operation.The earlier approach used a reordered-pixel 1D wavelet transform adapted to the image.
  • I. INTRODUCTION: Patch proximity is assumed to imply center-pixel proximity, producing a smooth or piece-wise smooth 1D pixel ordering that remains useful for corrupted images.Filtering or interpolation is then applied to the reordered pixels before restoring them to their original locations.
  • I. INTRODUCTION: The processing pipeline reorders pixels, applies simplified 1D operations, and repositions the resulting values in the image.Several random orderings and subimage averaging are used to improve the reconstruction.
  • I. INTRODUCTION: The approach targets denoising and inpainting, achieving results similar to K-SVD for denoising and better results than interpolation and a redundant-DCT method for inpainting.The paper also connects the scheme’s rationale to BM3D.

A. The Basic Scheme

The scheme reconstructs a corrupted image by permuting its pixels into a smooth signal and applying simple one-dimensional smoothing. It supports point-wise corruption, including noise and missing pixels, and can average results from multiple random permutations.

  • Observation model: The model treats the observed image as a corrupted version of a clean image, with corruption represented by a linear operator and additive white Gaussian noise.The operator is restricted to point-wise corruption, covering denoising and inpainting.
  • Reordering: A permutation matrix is chosen so that applying it to the target image produces a smooth one-dimensional signal.The same permutation is applied to the corrupted image before smoothing.
  • Smoothing: A simple one-dimensional operator, such as interpolation or filtering, then smooths the permuted corrupted signal to reconstruct the image.The method exploits the assumed smoothness of the permuted target signal.
  • Ensembling: The method constructs K random permutation matrices, denoises the image with each, and averages the resulting estimates.This cycle-spinning-like procedure is used to improve smoothing of the recovered image.
  • Overview: The proposed image-processing scheme is summarized in Fig. 1 before the paper explains how to construct the reordering matrix.The figure presents the basic processing pipeline.

B. Building the Permutation Matrix P

The method constructs a permutation by ordering image patches along a smooth path in patch space, then applies that ordering to the corrupted image so simple 1D processing can be used. A restricted search neighborhood reduces spatial path length while preserving nonlocal patch transitions.

  • The unknown clean image motivates finding a permutation P that makes the target image a smooth 1D signal, using patches from the corrupted image instead.
  • Patch vectors are reordered so their associated center pixels are expected to form a smooth signal, measured through total variation.
  • The ordering approximates a traveling-salesman path by repeatedly selecting unvisited nearest or second-nearest neighbors with probabilistic choice.
  • A B × B search neighborhood limits nearest-neighbor searches, falling back to all unvisited patches when the neighborhood is exhausted.
  • Only about 3% of adjacent reordered patches are immediate spatial neighbors with unrestricted search, versus about 6% under restricted search.
  • Randomized orderings support cycle spinning, while the permutation induced by the found path determines the pixel reordering.

C. Subimage Averaging

Subimage averaging applies one patch-derived permutation across all overlapping subimages, processes each reordered signal, and averages the reconstructed contributions. Using K random permutations averages nK candidate solutions and can improve recovery.

  • All overlapping patches are arranged in a matrix whose rows represent subimages, allowing one permutation to reorder signals associated with different patch positions.
  • Each subimage is reordered, processed by H, inverse-permuted, and reconstructed in its original image location.
  • Overlapping reconstructed subimages are placed back on the image canvas and averaged pixelwise.
  • Using K random permutation matrices produces a final estimate by averaging the images obtained from the different permutations.
  • The two cycle-spinning stages average nK candidate solutions, boosting overall recovery performance; linear H yields linear processing apart from P's nonlinear dependence on z.

D. Connection to BM3D

The scheme shares BM3D’s patch-grouping, 1D processing, repositioning, and averaging pattern. Its distinctive ordering-based formulation can additionally incorporate a 2D patch transform if needed.

  • The processing gathers image patches as columns ordered by P, then applies H across the resulting matrix rows.
  • Inverse permutation returns the processed columns to reconstructed subimages and patches, which are placed back into the image and averaged.
  • Both methods stack patches into groups, perform 1D processing across them, return patches to their original locations, and average the results.
  • BM3D additionally applies a 2D transform to patches before its 1D processing, and the paper states this feature can be added to the proposed scheme.

A. Image Denoising

The denoising scheme reorders noisy-image patches, separates smooth from edge/texture regions, and applies learned one-dimensional filters to the reordered signals. A second iteration generally improves recovery, with results comparable to K-SVD at σ = 10 and better at σ = 25 and σ = 50.

  • Filter design: The method uses a 1D linear shift-invariant filter learned from training images instead of the earlier multi-scale processing.The scheme also switches between filters according to patch content.
  • Patch classification: Patches are classified as smooth or edge/texture using whether std(x_i) is below Cσ, enabling separate processing groups.The classification rule assigns x_i to S_s when std(x_i) < Cσ and otherwise to S_e.
  • Patch classification: Separate permutation matrices and filters are applied to the smooth and edge/texture patch signals before reconstruction.The method obtains P_s and P_e through nearest-neighbor searches and applies the corresponding filters to the reordered signals.
  • Learning and iterations: The filters are learned by minimizing reconstruction error on noisy versions of clean training images, then applied through the learned vector ĥ.A second iteration rebuilds permutation matrices from patches extracted from the first clean result.
  • Experiments: The experiments test Lena, Barbara, and House at σ = 10, 25, and 50, using a uniform filter length of 25 samples.Filter-length selection is supported by average PSNR curves across the three test images.
  • Results: Two iterations improve the proposed results in all but one case, match K-SVD at σ = 10, and outperform it at σ = 25 and σ = 50.The trained h_s and h_e filters differ, and h_e changes substantially as noise increases.

B. Image Inpainting

For inpainting, the method orders patches using distances over shared observed pixels, interpolates missing values in the reordered signals, and reconstructs overlapping subimages. Additional iterations rebuild orderings from completed patches and improve the proposed results.

  • Problem setup: Inpainting treats missing pixels with v = 0 and represents observed versus missing locations through a diagonal matrix M.The diagonal entries of M indicate whether pixels exist or are missing.
  • Patch ordering: Patch distances are computed from average squared differences over shared observed locations, rather than unavailable pixel values.Each patch records the index set S_i of its non-missing pixels.
  • Patch ordering: The ordering falls back to the nearest spatial neighbor when a patch shares no pixels with any unvisited patch.The resulting permutation is applied to subimages before interpolation.
  • Reconstruction: Cubic interpolation fills missing values in the reordered subimage signals, after which the inverse permutation and overlapping-subimage averaging produce the estimate.Two additional iterations rebuild the ordering from reconstructed full patches.
  • Experiments: The experiment removes 80% of pixels at random from Lena, Barbara, and House and compares the method with triangle-based cubic interpolation and an overcomplete DCT dictionary.The evaluation reports PSNR results for one and three iterations of the proposed scheme.
  • Results: The second and third iterations greatly improve the proposed inpainting results.The comparison includes triangle-based cubic interpolation and the overcomplete DCT dictionary.

C. Computational Complexity

The computational cost is dominated by constructing permutation matrices, while the remaining processing and averaging operations contribute lower-order terms. For the typical experimental setting, the stated complexity reaches 1.86 · 10^10 operations, motivating approximate nearest-neighbor search.

  • The total complexity with K permutation matrices is O((n + K)N) + K operations.
  • Permutation-matrix creation dominates the overall computational complexity.
  • For N = 512^2, K = 10, n = 64, and B = 111, the typical experimental case requires 1.86 · 10^10 operations.
  • Approximate nearest-neighbor algorithms may reduce the computational burden relative to the exact exhaustive search used in the experiments.

IV. CONCLUSIONS

The paper concludes that smooth 1D pixel orderings combined with simple filtering or interpolation can produce high-quality denoising and inpainting results. It identifies several extensions, including distance-aware reconstruction, optimization-based regularization, broader applications, and parameter refinement.

  • Carefully designed permutation matrices combined with simple 1D filtering and interpolation support image denoising and inpainting with high-quality results.
  • Future work includes using patch distances during reconstruction and developing optimization methods that use 1D reorderings as regularizers.
  • The proposed framework may be extended to image deblurring and denoising schemes that divide patches into more than two types.
  • Varying parameters such as B and ϵ for different patch sets may further improve the produced results.
Loading 1210.3832v1…