• Nenhum resultado encontrado

VC 18/19 – TP4

N/A
N/A
Protected

Academic year: 2023

Share "VC 18/19 – TP4"

Copied!
39
0
0

Texto

(1)

Mestrado em Ciência de Computadores

Mestrado Integrado em Engenharia de Redes e Sistemas Informáticos

VC 18/19 – TP4 Colour and Noise

Miguel Tavares Coimbra

(2)

Outline

• Colour spaces

• Colour processing

• Noise

(3)

Topic: Colour spaces

• Colour spaces

• Colour processing

• Noise

(4)

For a long time I limited myself to one

colour – as a form of discipline

Pablo Picasso

(5)

What is colour?

Optical Prism dispersing light

Visible colour spectrum

(6)

Visible Spectrum

http://science.howstuffworks.com/light.htm Electromagnetic

Radiation.

Same thing as FM Radiowaves!

(7)

How do we see colour?

Human Colour Sensors:

Cones

65% ‘Red’ cones 33% ‘Green’ cones

2%’Blue’ cones

(8)

Primary Colours

• Not a fundamental property of light.

• Based on the physiological response of the human eye.

• Form an additive colour system.

(9)

Example: Television

Three types of phosphors

very close together

The

components are added to create a final

colour

http://www.howstuffworks.com/tv.htm

(10)

Sensing Colour

• Tristimulus (trichromatic) values

   

k h p d

IR R

   

k h p d

IG G

   

k h p d

IB B

 

hR

 

hG

  hB

I

R

, I

G

, I

B

      G B

R h h

h , ,

Camera’s spectral response functions:

(11)

Sensing Colour

beam splitter light

3 CCD

Bayer pattern Foveon X3TM

(12)

Colour Space

• “The purpose of a color model is to

facilitate the specification of colours in some standard, generally accepted way”

Gonzalez & Woods

• Colour space

– Coordinate system

– Subspace: One colour -> One point

(13)

RGB

• Red Green Blue

• Defines a colour cube.

• Additive components.

• Great for image capture.

• Great for image projection.

• Poor colour description.

(14)

CMYK

• Cyan Magenta Yellow Key.

• Variation of RGB.

• Technological

reasons: great for printers.

(15)

HSI

• Hue Saturation Intensity

• Defines a colour cone

• Great for colour description.

(16)

Chromaticity Diagram

• Axis:

– Hue

– Saturation

• Outer line represents our visible spectrum.

• No three primaries

can create all colours!

http://www.cs.rit.edu/~ncs/color/a_chroma.html

(17)

RGB to HSI

G B

G H B

360

 

 





1/2

2 2 1 1

) )(

( ) (

) (

) cos (

B G B R G

R

B R G

R

min( , , )

) (

1 3 R G B

B G S R

) 1 (

B G R

I

Hue:

Saturation

Intensity

(18)

HSI to RGB

• Depends on the

‘sector’ of H

) (

3

) º 60 cos(

1 cos ) 1 (

B R I

G

H H I S

R

S I

B

) (

3

) º

60 cos(

1 cos ) 1 (

º 120

B R I

B

H H I S

G

S I

R

H H

) (

3

) º 60 cos(

1 cos ) 1 (

º 240

B R I

R

H H I S

B

S I

G

H H

0 <= H < 120

120 <= H < 240

240 <= H < 360

(19)

Topic: Colour processing

• Colour spaces

• Colour processing

• Noise

(20)
(21)

Pseudocolour

• Also called False Colour.

• Opposed to True Colour images.

• The colours of a

pseudocolour image do not attempt to

approximate the real

colours of the subject. One of Hubble's most famous images: “pillars of creation” where stars are forming in the

Eagle Nebula. [NASA/ESA]

(22)

Intensity Slicing

• Quantize pixel

intensity to a specific number of values

(slices).

• Map one colour to each slice.

• Loss of information.

• Enhanced human visibility.

(23)
(24)

Intensity to Colour Transformation

• Each colour component is calculated using a

transformation function.

• Viewed as an Intensity to Colour map.

• Does not need to use RGB space!

 

 

 

) , ( )

, (

) , ( )

, (

) , ( )

, ( )

, (

y x f T y

x f

y x f T y

x f

y x f T y

x f y

x

f G G

R R

(25)

http://chandra.harvard.edu/photo/false_color.html

A supernova remnant created from the death of a massive star about 2,000 years ago.

(26)

Colour Image Processing

• Grey-scale image

– One value per position.

f(x,y) = I

• Colour image

– One vector per position.

f(x,y) = [R G B]T

(x,y)

(x,y)

Grey-scale image

RGB Colour image

(27)

Colour Transformations

• Consider single-point operations:

Ti: Transformation function for colour component i

si,ri: Components of g and f

• Simple example:

– Increase Brightness of an RGB image

 

n i

r r

r T s

y x f

T y

x g

n i

i

,..., 2

, 1

) ,...,

, (

) , ( )

, (

2 1

20 20 20

B B

G G

R R

r s

r s

r s

What about an image negative?

(28)

Colour Complements

• Colour equivalent of an image negative.

Complementary Colours

(29)

Colour Slicing

• Define a hyper-

volume of interest inside my colour space.

• Keep colours if inside the hyper-volume.

• Change the others to a neutral colour.

(30)

Topic: Noise

• Colour spaces

• Colour processing

• Noise

(31)

Bring the Noise

• Noise is a distortion of the measured signal.

• Every physical

system has noise.

• Images:

– The importance of noise is affected by our human visual perception

– Ex: Digital TV ‘block effect’ due to noise.

(32)

Where does it come from?

• ‘Universal’ noise sources:

– Thermal, sampling, quantization, measurement.

• Specific for digital images:

– The number of photons hitting each images sensor is governed by quantum physics:

Photon Noise.

– Noise generated by electronic components of image sensors:

On-Chip Noise, KTC Noise, Amplifier Noise, etc.

(33)

Degradation / Restoration

Degradation Function h

Restoration Filter(s)

f(x,y)

g(x,y) f’(x,y)

n(x,y)

) , ( )

, ( )

, ( )

, (

) ,

( )

, ( )

, ( )

, (

v u N v

u F v

u H v

u G

y x n y

x f

y x h y

x g

(34)

Noise Models

• Noise models

– We need to mathematically handle noise.

– Spatial and frequency properties.

– Probability theory helps!

• Advantages:

– Easier to filter noise.

– Easier to measure its importance.

– More robust systems!

(35)

Model: Gaussian Noise

• Gaussian PDF

(Probability Density Function).

• Great approximation of reality.

– Models noise as a sum of various small noise sources, which is indeed what

happens in reality.

(36)

Model: Gaussian Noise

2 2/2 ) (

2 ) 1

(

z

e z

z

p

(37)

Model: Salt and Pepper Noise

• Considers that a

value can randomly assume the MAX or MIN value for that sensor.

– Happens in reality due to the malfunction of isolated image

sensors.

(38)

How do we handle it?

• Not always trivial!

– Frequency filters.

– Estimate the degradation function.

– Inverse filtering.

– ...

One of the greatest challenges of signal

processing!

(39)

Resources

• Gonzalez & Woods – Chapters 5 and 6

• http://www.howstuffworks.com/

Referências

Documentos relacionados

A double-peaked noise emission curve is seen for HR, whereas a single peak of smaller amplitude is seen for GR. Some results in literature 17, 18, 19 indicate that the shape of the

As with network parameter data, all noise parameter data shall be arranged in increasing order of frequency The [Number of Noise Frequencies] keyword is required if any

Tendo em vista os aspectos mencionados, os resultados demonstram a eficiência do carvão ativado de osso na adsorção de íons fluoreto - ou seja, a diminuição do excesso

1 INTRODUÇÃO O estudo da relação entre capacidade produtiva de povoamentos de eucalipto, atributos do solo e do relevo, isto é, do potencial produtivo e das principais limitações

Na área da educação, se temos escolas melhor equipadas, equipamentos do ensino superior novinhos em folha e se o investimento público em educação é,

Since abdominal pain persisted, the patient was submitted to an abdominal – pelvic CT scan that revealed a pneumo- peritoneum and the presence of a foreign body in the abdominal

The following terms were used in English and Portuguese: noise ( ruído ), noise measurement ( medição de ruído ), noise meters ( medidores de ruídos ), noise monitoring

Os professores de ciências imaginam que o espírito começa como uma aula, que é sempre possível reconstruir uma cultura falha pela repetição da lição, que pode fazer entender