21.12.2013 Views

Lehrveranstaltungsinhalt aus - Institute for Computer Graphics and ...

Lehrveranstaltungsinhalt aus - Institute for Computer Graphics and ...

Lehrveranstaltungsinhalt aus - Institute for Computer Graphics and ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

1.2. THE IMAGE AS A RASTER DATA SET 39<br />

1.2 The Image as a Raster Data Set<br />

A digital image is an array of pixels. It was already mentioned that in principle the images are<br />

continuous functions f(x, y). A very simple “image model” states that f(x, y) is the product of<br />

two separate functions. One function is the illumination I <strong>and</strong> the other function describes the<br />

properties of the object that is being illuminated, namely the reflection R. The reflection function<br />

may vary between 0 <strong>and</strong> 1 whereas the illumination function may vary between 0 <strong>and</strong> ∞.<br />

We now need to discretize this continuous function in order to end up with a digital image.<br />

We might create 800 by 1000 pixels, a very typical arrangement of pixels <strong>for</strong> the digital sensing<br />

environment. So we sample our continuous function f(x, y) into an N × M matrix with N rows<br />

<strong>and</strong> M columns. Typically our image dimension are 2 n . So our number of rows may be 64, 128,<br />

512, 1024 etc. We not only discretize or sample the image (x, y)-locations. We also have to take<br />

the gray value at each location <strong>and</strong> discretize it. We do that also at 2 b , with b typically being<br />

small <strong>and</strong> producing 2, 4, 8, 12, 16 bits per pixels.<br />

Definition 1 Amount of data in an image<br />

Definition 3: ”The amount of data of an image”<br />

To calculate the amount of data of an image you have to have given the geometric <strong>and</strong> radiometric<br />

resolution of the image.<br />

Let’s say we have an image with N columns <strong>and</strong> M rows (geometric resolution) <strong>and</strong> with the<br />

radiometric resolution of R bits per pixel.<br />

The amount of data b of the image is then calculated using the <strong>for</strong>mula:<br />

b = N ∗ M ∗ R<br />

A very simple question is shown in Slide 1.20. If we create an image of an object <strong>and</strong> we need to<br />

underst<strong>and</strong> from the image a certain detail in the object, say a spec of dirt on a piece of wood of<br />

60 cm by 60 cm, <strong>and</strong> if that dirt can be as small as 0.08 mm 2 , what’s the size of the image to be<br />

sure that we recognize all the dirt spots?<br />

The resolution of an image is a widely discussed issue. When we talk about a geometric resolution<br />

of an image than we typically associate with this the size of the pixel on the object <strong>and</strong> the number<br />

of pixels in an image. When we talk about radiometric resolution than we describe here the number<br />

of bits we have per pixel. Let us take the example of geometric resolution. We have in Slide 1.22<br />

<strong>and</strong> Slide 1.23 a sequence of images of a rose that begins with a resolution of a 1000 by 1000 pixels.<br />

We go down from there to ultimately 64 by 64 or even 32 by 32 pixels. Clearly at 32 by 32 pixels<br />

we cannot recognize the rose any more.<br />

Lets take a look at the radiometric resolution. We have in Slide 1.24 a black <strong>and</strong> white image of<br />

that a rose at 8 bits per pixel. We reduce the number of bits <strong>and</strong> in the extreme case we have<br />

one bit only, resulting in a binary image (either black or white). In the end we may have a hard<br />

time interpreting what we are looking at, unless we know already what to expect. As we will see<br />

later, image processing a 8-bits in black & white images is very common. A radiometric resolution<br />

at more bits per black & white pixel is needed <strong>for</strong> example in radiology. In medicine it is not<br />

uncommon to use 16 bits per pixel. With 8 bits we obviously get 256 gray values, if we have 12<br />

bits we have 4096 gray values.<br />

The color representation is more complex, we will talk about that extensively. In that case we<br />

do not have one 8-bit number per color pixel, but we typically have three numbers, one each <strong>for</strong><br />

red/green/blue, thus 24 bits in total per each color pixel.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!