15
Sampling and Reconstruction COMP575 Today: Finish up Color Tone mapping Image representation Signal processing Sampling Reconstruction Color Theory CIE XYZ color space 3 color matching functions: X, Y, Z Y is luminance X and Z are color values WP user acdx Color Theory xyY color space Since Y is luminance, it carries no color data Chromaticity can be carried in new parameters x and y

Sampling + reconstruction - GAMMA

  • Upload
    others

  • View
    10

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Sampling + reconstruction - GAMMA

Sampling and ReconstructionCOMP575

Today:Finish up ColorTone mappingImage representationSignal processingSamplingReconstruction

Color TheoryCIE XYZ color space

3 color matching functions: X, Y, ZY is luminanceX and Z are color values

WP user acdx

Color TheoryxyY color space

Since Y is luminance, it carries no color dataChromaticity can be carried in new parameters x and y

Page 2: Sampling + reconstruction - GAMMA

GamutFormed by plotting x,y colors

Let's mix colors!

sRGB space

Color Theory

The line between two points represents all the mixes possible with those colors.

Color Theory

Page 3: Sampling + reconstruction - GAMMA

Color TheoryIntuitive colors?RGB is not necessarily intuitive with human color perception.

Color TheoryRGB model

Visual Computing, Nielsen et al.

Color TheoryHSV model

Color wheel (hue), saturation, value

Page 4: Sampling + reconstruction - GAMMA

Color TheoryHSV model

Today:Finish up ColorTone mappingImage representationSignal processingSamplingReconstruction

Tone mappingImages

Stored for easy displayNot accurate representationsMost output devices show 256 brightness levelsMost image formats store 256 brightness levels

Page 5: Sampling + reconstruction - GAMMA

Tone mappingHumans perceive more than 256 brightness levels

4-5 log units, 100,000 : 1Images are typically 2 log units, 100 : 1

Your simulation images will have more than 256 brightness levelsLikely RGB float valuesHow to store them as standard images? (RGB bytes)

Tone mappingHigh dynamic range

This is normal range for humansImages are low dynamic rangeMust take HDR images and map them into smaller range

Tone mappingClamping

Only keep small range (0.0 - 1.0)Clamp low and high values

Issues?

Can discard large amounts of the image, or even the entire image!

Tone mappingRemap values

Linear scaling to destination values

Issues?

Can remap many colors to the same value, losing detail.

Page 6: Sampling + reconstruction - GAMMA

Tone mappingMany, many more mappings...

Average luminance scale

Preserve color ratiosSeparate reflectence and illuminance

Can remap many colors to the same value, losing detail.

Today:Finish up ColorTone mappingImage representationSignal processingSamplingReconstruction

Image representationGrid of values

Each value is a 'pixel'

How to store?Single array with map/unmap function2d array (x,y dimensions)

Could be by spatial dimensionor channel dimension

Image representation

Page 7: Sampling + reconstruction - GAMMA

Image representationWhat is a pixel?

Little box of color?

Page 8: Sampling + reconstruction - GAMMA

A pixel stores a single discrete sample result.It is not necessarly the color for the area under the pixel.

Image representationAliasing

Page 9: Sampling + reconstruction - GAMMA

It is impossible to tell an aliased image from an image of an object that is similar to the alias pattern.

Image representationAliasing

Page 10: Sampling + reconstruction - GAMMA

Anti-aliasing is used to show the original signal more clearly.

Image representationAliasing

Page 11: Sampling + reconstruction - GAMMA

Today:Finish up ColorTone mapping

Page 12: Sampling + reconstruction - GAMMA

Image representationSignal processingSamplingReconstruction

Signal processingContinuous vs. Discrete

Signal processingFrequency

Signal processingMaximum represented frequency

Two times the sampling rate

Today:Finish up ColorTone mappingImage representation

Page 13: Sampling + reconstruction - GAMMA

Signal processingSamplingReconstruction

SamplingSample the signal at some locationRecord value

Recording more than 1 value per pixel is called super sampling

Many, many ways to do this

SamplingUniform samplingRegular patternEasy, fastIssues?

SamplingRandom samplingMultiple random samplings per pixelGenerally good distributionIssues?

SamplingStratified samplingDivide pixel into gridRandom sample in each grid

Today:Finish up ColorTone mappingImage representationSignal processingSamplingReconstruction

Page 14: Sampling + reconstruction - GAMMA

Tent filter

ReconstructionNow that we have samples, we need a value for the pixel

We will use a reconstruction filter

Again, there are many, many ways to do this

Reconstruction is the process of combining samples to form a representative value. This value corresponds tothe original signal.

ReconstructionFilter basicsSupport

Range of the filter

WeightingArea under filters should sum to 1

ReconstructionBox filter

Reconstruction

Page 15: Sampling + reconstruction - GAMMA

ReconstructionGaussian filter

Homework