Title: Ian Thomas
1???????????????????????? Ian Thomas
?????????????? ??????????????
??????????????????
Storing Images
2???????????????????????? Ian Thomas
?????????????? ??????????????
??????????????????
Image
Different ways to store an image
Raster
Vector
Lossy
Lossless
No metadata
With metadata
3???????????????????????? Ian Thomas
?????????????? ??????????????
??????????????????
Raster data The image is digitized pixel by
pixel. Every pixel has colour data.
http//en.wikipedia.org/wiki/Raster_graphics
4???????????????????????? Ian Thomas
?????????????? ??????????????
??????????????????
Vector data The image is made up of shapes. The
shapes are painted to make the image.
http//en.wikipedia.org/wiki/ImageFace_with_objec
ts_selected.png
5???????????????????????? Ian Thomas
?????????????? ??????????????
??????????????????
Vector and Raster
A. Original B. Vector graphics C. Raster
graphics
http//en.wikipedia.org/wiki/Vector_graphics
6???????????????????????? Ian Thomas
?????????????? ??????????????
??????????????????
Vector graphics are good for removing too much
information.
7???????????????????????? Ian Thomas
?????????????? ??????????????
??????????????????
Raster graphics are easy to produce and display.
8???????????????????????? Ian Thomas
?????????????? ??????????????
??????????????????
Raster File Formats Many formats are available
for different jobs.
BMP GIF JPEG PNG TIFF
http//www.prepressure.com/image/bitmapvector.htm
9???????????????????????? Ian Thomas
?????????????? ??????????????
??????????????????
Vector file formats
GIS
EPS SVG
http//en.wikipedia.org/wiki/GIS
10???????????????????????? Ian Thomas
?????????????? ??????????????
??????????????????
Lossy and Lossless In lossy file formats, some
data is lost so that the file is smaller. In
lossless file formats, the image is exactly as
the original.
Lossy Lossless JPEG JPEG
lossless BMP TIFF
http//en.wikipedia.org/wiki/Png
11???????????????????????? Ian Thomas
?????????????? ??????????????
??????????????????
With/without metadata
Extra information can be added to the image file.
This information is about the camera parameters.
It is from a TIFF file.
12???????????????????????? Ian Thomas
?????????????? ??????????????
??????????????????
JPEG can also include some metadata
13???????????????????????? Ian Thomas
?????????????? ??????????????
??????????????????
Saving image data to a file
Image x size
A raster image file consists of a header
containing information about the image
(metadata), and the image data itself.
Image x size
14???????????????????????? Ian Thomas
?????????????? ??????????????
??????????????????
- We need to choose on of the many image formats.
We do this based on decisions like - Lossy or lossless?
- How much metadata do we need?
- Do we need a lot of compression?
15???????????????????????? Ian Thomas
?????????????? ??????????????
??????????????????
Comparison of popular Web image formats - GIF
and JPEG
GIF JPEG
16???????????????????????? Ian Thomas
?????????????? ??????????????
??????????????????
Lossless data - file size 111kbyte (TIFF)
Lossy data - file size 8kbyte (JPEG)
17???????????????????????? Ian Thomas
?????????????? ??????????????
??????????????????
Comparison of file sizes
18???????????????????????? Ian Thomas
?????????????? ??????????????
??????????????????
.
For medical data, using lossy compression can
lead to small changes in the image, which could
reduce the doctors ability to diagnose.
19???????????????????????? Ian Thomas
?????????????? ??????????????
??????????????????
For medical work there is another factor which we
need to consider - Integration. DICOM is a
standard for medical imaging which is easily
integrated. It can be used to produce a PACS.
http//www.ampronix.com/content/web/suite.asp
20???????????????????????? Ian Thomas
?????????????? ??????????????
??????????????????
DICOM metadata
http//www.leadtools.com/SDK/Medical/DICOM/ltdc1.h
tm