Reconstruction




CS116b/CS216

Chris Pollett

Mar 10, 2014

Outline

Introduction

Constant Reconstruction

Bilinear Reconstruction

Constant and Biliear reconstruction applied to a squirrel image

Pseudo-code for Bilinear Reconstruction

color bilinearReconstruction(float x, float y, color image[][]) {
    int intx = (int)x;
    int inty = (int)y;
    float fracx = x - intx;
    float fracy = y - inty;

    color colorx1 = (1 - fracx) * image[intx][inty] +
        (fracx) * image[intx + 1][inty];
    color colorx2 = (1 - fracx) * image[intx][inty + 1] +
        (fracx) * image[intx + 1][inty + 1];

    color colorxy = (1 - fracy) * colorx1 +
        (fracy) * colorx2;

    return (colorxy);
}

Quiz

Which of the following statements is true?

  1. A moire pattern is the same things as the "crawling jaggies".
  2. A Gaussian filter `F_(i,j)(x,y)` is a filter which is zero everywhere except over the `1 times 1` square centered at `x=i`, `y=j`.
  3. `alpha` blend compositing with the "over" operation is an associative but not commutative operation.

A Closer Look at Bilinear Reconstruction

Basis Functions

Tent Functions

adding and subtracting hat functions

Generalizations and Edge Preservation

Resampling

Ideal Resampling