Upload
others
View
10
Download
0
Embed Size (px)
Citation preview
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
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
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
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
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.
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
Image representationWhat is a pixel?
Little box of color?
A pixel stores a single discrete sample result.It is not necessarly the color for the area under the pixel.
Image representationAliasing
It is impossible to tell an aliased image from an image of an object that is similar to the alias pattern.
Image representationAliasing
Anti-aliasing is used to show the original signal more clearly.
Image representationAliasing
Today:Finish up ColorTone mapping
Image representationSignal processingSamplingReconstruction
Signal processingContinuous vs. Discrete
Signal processingFrequency
Signal processingMaximum represented frequency
Two times the sampling rate
Today:Finish up ColorTone mappingImage representation
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
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
ReconstructionGaussian filter
Homework