SlideShare una empresa de Scribd logo
1 de 61
Descargar para leer sin conexión
¾พ×ื้¹น°ฐÒา¹น
        ¢ขÍอ§ง    Êส×ื่Íอ´ดÔิ¨จÔิ·ท∙ÑัÅล
         18 ÁมÔิ¶ถØุ¹นÒาÂย¹น 2555




                                           1
ia Systems
520251: Multimed




              ¾พ×ื้¹น°ฐÒา¹น
                              ¢ขÍอ§ง   Êส×ื่Íอ´ดÔิ¨จÔิ·ท∙ÑัÅล
                              18 ÁมÔิ¶ถØุ¹นÒาÂย¹น 2555




                                                                1
àเ¢ขŒŒÒาÊสÙูâโÅล¡ก´ดÔิ¨จÔิ·ท∙ÑัÅล
              ‹‹




                                      2
¢ขŒŒÍอÁมÙูÅล´ดÔิ¨จÔิ·ท∙ÑัÅล




                                3
¢ขŒŒÍอÁมÙูÅล´ดÔิ¨จÔิ·ท∙ÑัÅล

                               ÁมÒา·ท∙Óำ¡กÒาÃรàเ»ปÅล  Õี่Âย¹นáแ»ปÅล§งäไ´ดŒŒâโ´ดÂย
ÊสÒา ÁมÒาÃร¶ถ¹นÓำ¢ขŒŒÍอÁมÙูÅล                              ÅลÒาÂยÃรÙู»ปáแºบºบ
    ¡กÃรÃรÁมÇวÔิ¸ธÕี·ท∙Òา§ง¤ค ÍอÁม¾พÔิÇวàเµตÍอÃรäไ´ดŒŒËห




                                                                                     3
¢ขŒŒÍอÁมÙูÅล´ดÔิ¨จÔิ·ท∙ÑัÅล

                               ÁมÒา·ท∙Óำ¡กÒาÃรàเ»ปÅล  Õี่Âย¹นáแ»ปÅล§งäไ´ดŒŒâโ´ดÂย
ÊสÒา ÁมÒาÃร¶ถ¹นÓำ¢ขŒŒÍอÁมÙูÅล                              ÅลÒาÂยÃรÙู»ปáแºบºบ
    ¡กÃรÃรÁมÇวÔิ¸ธÕี·ท∙Òา§ง¤ค ÍอÁม¾พÔิÇวàเµตÍอÃรäไ´ดŒŒËห

                                       ¢ขŒŒÍอÁมÙูÅลÊสÒาÁมÒาÃร¶ถ¹นÓำäไ»ป
                                                                        ¨จÑั´ดàเ¡ก็ºบäไ´ดŒŒÍอÂย‹‹Òา§งÁมÕี»ปÃรÐะ
                                                                                                                 ÊสÔิ·ท∙¸ธÔิÀภÒา¾พ




                                                                                                                                     3
¢ขŒŒÍอÁมÙูÅล´ดÔิ¨จÔิ·ท∙ÑัÅล

                               ÁมÒา·ท∙Óำ¡กÒาÃรàเ»ปÅล  Õี่Âย¹นáแ»ปÅล§งäไ´ดŒŒâโ´ดÂย
ÊสÒา ÁมÒาÃร¶ถ¹นÓำ¢ขŒŒÍอÁมÙูÅล                              ÅลÒาÂยÃรÙู»ปáแºบºบ
    ¡กÃรÃรÁมÇวÔิ¸ธÕี·ท∙Òา§ง¤ค ÍอÁม¾พÔิÇวàเµตÍอÃรäไ´ดŒŒËห

                                       ¢ขŒŒÍอÁมÙูÅลÊสÒาÁมÒาÃร¶ถ¹นÓำäไ»ป
                                                                        ¨จÑั´ดàเ¡ก็ºบäไ´ดŒŒÍอÂย‹‹Òา§งÁมÕี»ปÃรÐะ
                                                                                                                 ÊสÔิ·ท∙¸ธÔิÀภÒา¾พ


                                                            ºบÊส×ื่ÍอÊสÑั­Þญ­ÞญÒา³ณ´ดÔิ¨จÔิ·ท∙ÑัÅล
                    ÊสÒาÁมÒาÃร¶ถ¹นÓำÊส‹‹§งäไ»ปµตÒาÁมÃรÐะºบ
       ¢ขŒŒÍอÁมÙูÅล


                                                                                                                                     3
¢ขŒŒÍอÁมÙูÅล´ดÔิ¨จÔิ·ท∙ÑัÅล

           ·ท∙ºบ·ท∙Çว¹น
                   ºบÔิµต (bit)
                 äไºบµต (byte)
        àเÅล¢ข°ฐÒา¹นÊสÍอ§ง (binary)
àเÅล¢ข°ฐÒา¹นÊสÔิºบËห¡ก (hexadecimal)


                                       4
µตÑัÇวáแ·ท∙¹น¢ขŒŒÍอÁมÙูÅล
(Data Representation)



                             5
µตÑัÇวáแ·ท∙¹น¢ขŒŒÍอÁมÙูÅลµตÑัÇวÍอÑั¡กÉษÃร
           [TEXT]

                                             6
7
8
8
00110000




           8
00110000




           9
00110000




           9
01000001




00110000




                      9
áแºบºบáแ¼ผ¹น¢ขÍอ§งºบÔิµต{¢ขŒŒÍอÁมÙูÅล}
            (Bit Pattern)


                                          10
01000001




           11
A   ËหÃร×ืÍอàเ»ปšš¹น ¤ค‹‹ÒาÍอ×ื่¹นãใ´ด¡ก็äไ´ดŒŒ
01000001   ÊสÒาÁมÒาÃร¶ถàเ»ปšš¹นÍอÑั¡ก¢ขÃรÐะ




                                                                                                    11
A   ËหÃร×ืÍอàเ»ปšš¹น ¤ค‹‹ÒาÍอ×ื่¹นãใ´ด¡ก็äไ´ดŒŒ
  01000001                          ÊสÒาÁมÒาÃร¶ถàเ»ปšš¹นÍอÑั¡ก¢ขÃรÐะ




ÍอÒา¨จàเ»ปšš¹น¤ค‹‹Òา
                àเ©ฉ´ดÊสÕีàเ·ท∙Òา
             25%




                                                                                                                             11
A   ËหÃร×ืÍอàเ»ปšš¹น ¤ค‹‹ÒาÍอ×ื่¹นãใ´ด¡ก็äไ´ดŒŒ
  01000001                          ÊสÒาÁมÒาÃร¶ถàเ»ปšš¹นÍอÑั¡ก¢ขÃรÐะ




ÍอÒา¨จàเ»ปšš¹น¤ค‹‹Òา
                àเ©ฉ´ดÊสÕีàเ·ท∙Òา
             25%




                                                                                                                             11
A   ËหÃร×ืÍอàเ»ปšš¹น ¤ค‹‹ÒาÍอ×ื่¹นãใ´ด¡ก็äไ´ดŒŒ
  01000001                          ÊสÒาÁมÒาÃร¶ถàเ»ปšš¹นÍอÑั¡ก¢ขÃรÐะ




ÍอÒา¨จàเ»ปšš¹น¤ค‹‹Òา
                àเ©ฉ´ดÊสÕีàเ·ท∙Òา
             25%




                                                                                                                             11
¡กÒาÃร´ดÔิ¨จÔิäไ·ท∙«ซ¢ขŒŒÍอÁมÙูÅล
        (DIGITIZATION)



                                       12
¡กÒาÃรäไ´ดŒŒÁม Òา¢ขÍอ§ง digital media




                                         13
¡กÒาÃรäไ´ดŒŒÁม Òา¢ขÍอ§ง digital media



                                     ãใªชŒŒâโ»ปÃรáแ¡กÃรÁม  ¤คÍอÁม¾พÔิÇวàเµตÍอÃรÊสÃรŒŒÒา§ง¢ขÖึ้¹น
                                   âโ´ดÂยµตÃร§ง àเªช‹‹¹น     àเÃรÒาãใªชŒŒâโ»ปÃรáแ¡กÃรÁม Paint
                                                ãใ¹น¡ก ÒาÃรÇวÒา´ดÃรÙู»ป·ท∙Õี่àเ»ปšš¹น´ดÔิ¨จÔิ·ท∙ÑัÅล




                                                                                                        13
¡กÒาÃรäไ´ดŒŒÁม Òา¢ขÍอ§ง digital media



                                               ãใªชŒŒâโ»ปÃรáแ¡กÃรÁม  ¤คÍอÁม¾พÔิÇวàเµตÍอÃรÊสÃรŒŒÒา§ง¢ขÖึ้¹น
                                             âโ´ดÂยµตÃร§ง àเªช‹‹¹น     àเÃรÒาãใªชŒŒâโ»ปÃรáแ¡กÃรÁม Paint
                                                          ãใ¹น¡ก ÒาÃรÇวÒา´ดÃรÙู»ป·ท∙Õี่àเ»ปšš¹น´ดÔิ¨จÔิ·ท∙ÑัÅล



  ·ท∙Óำ¡กÒาÃรáแ»ปÅล§ง¤ค‹‹ÒาàเªชÔิ§ง¡กÒาÂยÀภÒา¾พ ËหÃร×ืÍอ¤ค‹‹Òา
  analogue            ãใËหŒŒàเ»ปšš¹น¤ค‹‹Òา digital àเÃรÕีÂย¡ก
         ¡ก ÃรÃรÁมÇวÔิ¸ธÕี¹นÕี้Çว‹‹Òา digitization



                                                                                                                  13
Digitization


   ÀภÒา¾พ¶ถ‹‹ÒาÂย




                     14
Digitization

               ºบÑั¹น·ท∙Öึ¡กàเÊสÕีÂย§ง




                                         15
22   F U N DA M E N TA L S


           In multimedia, we encounter values of several kinds that change continuously, either because


          Digitiz ation
           they originate in physical phenomena or because they exist in some analogue representation.
           For example, the amplitude (volume) of a sound wave varies continuously over time, as does the
           amplitude of an electrical signal produced by a microphone in response to a sound wave. The
           colour of the image formed inside a camera by its lens varies continuously across the image plane.
           As you see, we may be measuring different quantities, and they may be varying either over time
           or over space (or perhaps, as in the case of moving pictures, both). For this general discussion, we
           will follow tradition, and refer to the value we are measuring, whatever it may be, as a “signal”,
           not usually distinguishing between time-varying and space-varying signals.

                                      When we have a continuously varying signal, such as the one shown
                                      in Figure 2.2, both the value we measure, and the intervals at which
                                      we can measure it, can vary infinitesimally. In contrast, if we were to
                                      convert it to a digital signal, we would have to restrict both of these to
                                      a set of discrete values that could be represented in some fixed number
                                      of bits. That is, digitization – the process of converting a signal from
                                      analogue to digital form – consists of two steps: sampling, when we
                                      measure the signal’s value at discrete intervals, and quantization, when
Figure 2.2. An analogue signal
                                      we restrict the value to a fixed set of levels. Sampling and quantization
                                      can be carried out in either order; Figure 2.3 shows a signal being
       ÊสÑั­Þญ­ÞญÒา³ณ                 first sampled and then quantized. In the sampling step, you see the
       analogue                       continuous signal reduced to a sequence of equally spaced values; in the
                                      quantization step, some of these values are chopped off so that every
                                      one lies on one of the lines defining the allowed levels.

                                      These processes are normally carried out by special hardware devices,        16
22   F U N DA M E N TA L S


           In multimedia, we encounter values of several kinds that change continuously, either because


          Digitiz ation
           they originate in physical phenomena or because they exist in some analogue representation.
           For example, the amplitude (volume) of a sound wave varies continuously over time, as does the
           amplitude of an electrical signal produced by a microphone in response to a sound wave. The
           colour of the image formed inside a camera by its lens varies continuously across the image plane.
           As you see, we may be measuring different quantities, and they may be varying either over time
           or over space (or perhaps, as in the case of moving pictures, both). For this general discussion, we
           will follow tradition, and refer to the value we are measuring, whatever it may be, as a “signal”,
                                         ¡กÃรÐะºบÇว¹น¡กÒาÃร Analogue to Digital Converter (ADC)
           not usually distinguishing between time-varying and space-varying signals.

                                      When we have a continuously varying signal, such as the one shown
                                      in Figure 2.2, both the value we measure, and the intervals at which
                                      we can measure it, can vary infinitesimally. In contrast, if we were to
                                      convert it to a digital signal, we would have to restrict both of these to
                                      a set of discrete values that could be represented in some fixed number
                                      of bits. That is, digitization – the process of converting a signal from
                                      analogue to digital form – consists of two steps: sampling, when we
                                      measure the signal’s value at discrete intervals, and quantization, when
Figure 2.2. An analogue signal
                                      we restrict the value to a fixed set of levels. Sampling and quantization
                                      can be carried out in either order; Figure 2.3 shows a signal being
       ÊสÑั­Þญ­ÞญÒา³ณ                 first sampled and then quantized. In the sampling step, you see the
       analogue                       continuous signal reduced to a sequence of equally spaced values; in the
                                      quantization step, some of these values are chopped off so that every
                                      one lies on one of the lines defining the allowed levels.

                                      These processes are normally carried out by special hardware devices,        16
22   F U N DA M E N TA L S                             not usually distinguishing between time-varying and space-varying sig

                                                                                    When we have a continuously varying sign
           In multimedia, we encounter values of several kinds that change continuously, either the value we measure,
                                                                                    in Figure 2.2, both because


           Digitiz ation
           they originate in physical phenomena or because they exist in some can measure it, can vary infinitesimally.
                                                                                    we analogue representation.
           For example, the amplitude (volume) of a sound wave varies continuously over time, as does thewe would have
                                                                                    convert it to a digital signal,
           amplitude of an electrical signal produced by a microphone in response to a sound wave. The
                                                                                    a set of discrete values that could be represen
           colour of the image formed inside a camera by its lens varies continuously across the digitization – the process o
                                                                                    of bits. That is, image plane.
           As you see, we may be measuring different quantities, and they mayanalogue to either over timeconsists of two
                                                                                      be varying digital form –
           or over space (or perhaps, as in the case of moving pictures, both). For this general discussion, we discrete interva
                                                                                    measure the signal’s value at
           will follow tradition, and refer Figure valueAn analogue signal whatever it maythe value“signal”, set of levels.
                                             to the 2.2. we are measuring,          we restrict be, as a to a fixed
                                           ¡กÃรÐะºบÇว¹น¡กÒาÃร Analogue to Digital Converter (ADC)
           not usually distinguishing between time-varying and space-varying signals. carried out in either order; Figure
                                                                                    can be
                                                                                    first sampled and then quantized. In the s
                                       When we have a continuously varying signal, such as the one shown a sequence of e
                                                                                    continuous signal reduced to
                                       in Figure 2.2, both the value we measure, and the intervalssome of these values are
                                                                                    quantization step, at which
                                       we can measure it, can vary infinitesimally. Inlies on one of the lines defining the allo
                                                                                    one contrast, if we were to
                                       convert it to a digital signal, we would have to restrict both of these to
                                       a set of discrete values that could be represented in some fixed normally carried out b
                                                                                    These processes are number
                                       of bits. That is, digitization – the processcalled analogue atosignal from
                                                                                     of converting        digital converters (ADCs
                                       analogue to digital form – consists of two steps:not examine. We will only consider
                                                                                    we will sampling, when we
                                       measure the signal’s value at discrete intervals, and quantization, whensuccessive samp
                                                                                    where the interval between
Figure 2.2. An analogue signal
                                       we restrict the value to a fixed set of levels. Samplingaand quantization time or space
                                                                                    samples in fixed amount of
                                       can be carried out in either order; Figure 2.3 shows we will generally assume that
                                                                                    rate. Similarly, a signal being
       ÊสÑั­Þญ­ÞญÒา³ณ                 first sampled and then quantized. In theissampling step, you see the levels – are
                                                      sampling                         quantized – the quantization
       analogue                       continuous signal reduced to a sequence of equally spaced values; in the
                                      quantization step, some of these values are chopped off so that every that digital
                                                                                    One of the great advantages
                                      one lies on one of the lines defining the allowed levels. stems from the fact that on
                                                                                    analogue ones
                                                                               those at the quantization levels – are valid
                                       These processes are normally carried out by special hardware devices,           16
22   F U N DA M E N TA L S                             not usually distinguishing between time-varying and space-varying bit
                                                                                                                      of sig
                                                                                                                         analog
                                                                                When we have a continuously varying sign measu
                                                                                      Figure 2.2. An analogue signal
           In multimedia, we encounter values of several kinds that change continuously, either the value we measure,
                                                                                in Figure 2.2, both because              we re


          Digitiz ation
           they originate in physical phenomena or because they exist in some can measure it, can vary infinitesimally.
                                                                                we analogue representation.
           For example, the amplitude (volume) of a sound wave varies continuously over time, as does thewe would first s
                                                                                convert it to a digital signal,
                                                                                                                         can b
                                                                                                                          have
           amplitude of an electrical signal produced by a microphone in response to a sound wave. The                   contin
                                                                                a set of discrete values that could be represen
                                                                                                                         quant
           colour of the image formed inside a camera by its lens varies continuously across the digitization – the process o
                                                                                                  image plane.
                                                                                of bits. That is,                        one li
           As you see, we may be measuring different quantities, and they mayanalogue to either over timeconsists of two
                                                                                  be varying digital form –
           or over space (or perhaps, as in the case of moving pictures, both). For this general discussion, we discrete interva
                                                                                 measure the signal’s value at             These
           will follow tradition, and refer to the
                                            Figure value we are measuring, whatever it may be, as a “signal”,
                                                   2.2. An analogue signal
                                          ¡กÃรÐะºบÇว¹น¡กÒาÃร Analogue to Digital Converter (ADC)
                                                                                 we restrict the value to a fixed set of levels.
                                                                                                                           called
           not usually distinguishing between time-varying and space-varying signals. carried out in either order; Figure
                                                                                 can be                                    we w
                                                                                   first sampled and then quantized. In where the s
                                      When we have a continuously varying signal, such as the one shown a sequence of e
                                                                                   continuous signal reduced to               sampl
                                      in Figure 2.2, both the value we measure, and the intervalssome of these values areS
                                                                                   quantization step, at which                rate.
                                      we can measure it, can vary infinitesimally. Inlies on one of the lines defining the qua
                                                                                   one contrast, if we were to
                                                                                                                              is
                                                                                                                                 allo
                                      convert it to a digital signal, we would have to restrict both of these to
                                                                                                                              One
                                      a set of discrete values that could be represented in some fixed normally carried out b
                                                                                   These processes are     number
                                                                                                                              analog
                                      of bits. That is, digitization – the processcalled analogue atosignal from
                                                                                    of converting        digital converters (ADCs
                                                                                                                              those
                                      analogue to digital form – consists of two steps:not examine. We will only consider a
                                                                                   we will sampling, when we                  over
                                      measure the signal’s value at discrete intervals, and quantization, whensuccessive inevit
                                                                                   where the interval between                  samp
Figure 2.2. An analogue signal                                                            Figure 2.3. Sampling and
                                      we restrict the value to a fixed set of levels. Samplingaand quantization time or space
                                                                                          quantization
                                                                                   samples in fixed amount of                 ence
                                      can be carried out in either order; Figure 2.3 shows we will generally assume that
                                                                                   rate. Similarly, a signal being
       ÊสÑั­Þญ­ÞญÒา³ณ                 first sampled and then quantized. In theissampling step, you see the levels – are
                                                     sampling                                    quantization
                                                                                      quantizedapisake@gmail.com.................
                                                                                        Ex Libris – the quantization
       analogue                       continuous signal reduced to a sequence of equally spaced values; in the
                                      quantization step, some of these values are chopped off so that every that digital
                                                                                   One of the great advantages
                                      one lies on one of the lines defining the allowed levels. stems from the fact that on
                                                                                   analogue ones
                                                                              those at the quantization levels – are valid
                                      These processes are normally carried out by special hardware devices,           16
22   F U N DA M E N TA L S                             not usually distinguishing between time-varying and space-varying bit
                                                                                                                      of sig
                                                                                                                         analog
                                                                                When we have a continuously varying sign measu
                                                                                      Figure 2.2. An analogue signal
           In multimedia, we encounter values of several kinds that change continuously, either the value we measure,
                                                                                in Figure 2.2, both because
                                                                                            ÊสÑั­Þญ­ÞญÒา³ณ´ดÔิ¨จÔิ·ท∙ÑัÅล¨จÐะ
                                                                                                                         we re


          Digitiz ation
           they originate in physical phenomena or because they exist in some can measure it, can vary infinitesimally.
                                                                                we analogue representation.              can b
                                                                                            ºบÃรÃรàเ·ท∙Òา»ป˜˜­ÞญËหÒาàเÃร×ื่Íอ§ง
           For example, the amplitude (volume) of a sound wave varies continuously over time, as does thewe would first s
                                                                                convert it to a digital signal,           have
           amplitude of an electrical signal produced by a microphone in response to a sound wave. The noise             contin
                                                                                a set of discrete values that could be represen
                                                                                                                         quant
           colour of the image formed inside a camera by its lens varies continuously across the digitization – the process o
                                                                                                  image plane.
                                                                                of bits. That is,                        one li
           As you see, we may be measuring different quantities, and they mayanalogue to either over timeconsists of two
                                                                                  be varying digital form –
           or over space (or perhaps, as in the case of moving pictures, both). For this general discussion, we discrete interva
                                                                                 measure the signal’s value at             These
           will follow tradition, and refer to the
                                            Figure value we are measuring, whatever it may be, as a “signal”,
                                                   2.2. An analogue signal
                                          ¡กÃรÐะºบÇว¹น¡กÒาÃร Analogue to Digital Converter (ADC)
                                                                                 we restrict the value to a fixed set of levels.
                                                                                                                           called
           not usually distinguishing between time-varying and space-varying signals. carried out in either order; Figure
                                                                                 can be                                    we w
                                                                                   first sampled and then quantized. In where the s
                                      When we have a continuously varying signal, such as the one shown a sequence of e
                                                                                   continuous signal reduced to               sampl
                                      in Figure 2.2, both the value we measure, and the intervalssome of these values areS
                                                                                   quantization step, at which                rate.
                                      we can measure it, can vary infinitesimally. Inlies on one of the lines defining the qua
                                                                                   one contrast, if we were to
                                                                                                                              is
                                                                                                                                 allo
                                      convert it to a digital signal, we would have to restrict both of these to
                                                                                                                              One
                                      a set of discrete values that could be represented in some fixed normally carried out b
                                                                                   These processes are     number
                                                                                                                              analog
                                      of bits. That is, digitization – the processcalled analogue atosignal from
                                                                                    of converting        digital converters (ADCs
                                                                                                                              those
                                      analogue to digital form – consists of two steps:not examine. We will only consider a
                                                                                   we will sampling, when we                  over
                                      measure the signal’s value at discrete intervals, and quantization, whensuccessive inevit
                                                                                   where the interval between                  samp
Figure 2.2. An analogue signal                                                            Figure 2.3. Sampling and
                                      we restrict the value to a fixed set of levels. Samplingaand quantization time or space
                                                                                          quantization
                                                                                   samples in fixed amount of                 ence
                                      can be carried out in either order; Figure 2.3 shows we will generally assume that
                                                                                   rate. Similarly, a signal being
       ÊสÑั­Þญ­ÞญÒา³ณ                 first sampled and then quantized. In theissampling step, you see the levels – are
                                                     sampling                                     quantization
                                                                                      quantizedapisake@gmail.com.................
                                                                                        Ex Libris – the quantization
       analogue                       continuous signal reduced to a sequence of equally spaced values; in the
                                      quantization step, some of these values are chopped off so that every that digital
                                                                                   One of the great advantages
                                      one lies on one of the lines defining the allowed levels. stems from the fact that on
                                                                                   analogue ones
                                                                              those at the quantization levels – are valid
                                      These processes are normally carried out by special hardware devices,           16
measure the signal’s value at discrete intervals, and quantization, when
   Figure 2.2. An analogue signal
                                         we restrict the value to a fixed set of levels. Sampling and quantization
                                         can be carried out in either order; Figure 2.3 shows a signal being
                                         first sampled and then quantized. In the sampling step, you see the
Digitization                             continuous signal reduced to a sequence of equally spaced values; in the
                                         quantization step, some of these values are chopped off so that every
                                         one lies on one of the lines defining the allowed levels.

                                         These processes are normally carried out by special hardware devices,
                                         called analogue to digital converters (ADCs), whose internal workings
                                         we will not examine. We will only consider the (almost invariable) case
                                         where the interval between successive samples is fixed; the number of
                                         samples in a fixed amount of time or space is known as the sampling
                                         rate. Similarly, we will generally assume that the levels to which a signal
                                         is quantized – the quantization levels – are equally spaced.

                                         One of the great advantages that digital representations have over
                                         analogue ones stems from the fact that only certain signal values –
                                         those at the quantization levels – are valid. If a signal is transmitted
                                         over a wire or stored on some physical medium such as magnetic tape,
   Figure 2.3. Sampling and              inevitably some random noise is introduced, either because of interfer-
   quantization                          ence from stray magnetic fields, or simply because of the unavoidable


 Ex Libris   quantization
             apisake@gmail.com......................................................         © MacAvon Media




                                                                                                                       17
measure the signal’s value at discrete intervals, and quantization, when
   Figure 2.2. An analogue signal
                                         we restrict the value to a fixed set of levels. Sampling and quantization
                                         can be carried out in either order; Figure 2.3 shows a signal being
                                         first sampled and then quantized. In the sampling step, you see the
Digitization                             continuous signal reduced to a sequence of equally spaced values; in the
                                         quantization step, some of these values are chopped off so that every
                                         one lies on one of the lines defining the allowed levels.

                                         These processes are normally carried out by special hardware devices,
                                         called analogue to digital converters (ADCs), whose internal workings
                            information lost
                                         we will not examine. We will only consider the (almost invariable) case
                                         where the interval between successive samples is fixed; the number of
                                         samples in a fixed amount of time or space is known as the sampling
                                         rate. Similarly, we will generally assume that the levels to which a signal
                                         is quantized – the quantization levels – are equally spaced.

                                         One of the great advantages that digital representations have over
                                         analogue ones stems from the fact that only certain signal values –
                                         those at the quantization levels – are valid. If a signal is transmitted
                                         over a wire or stored on some physical medium such as magnetic tape,
   Figure 2.3. Sampling and              inevitably some random noise is introduced, either because of interfer-
   quantization                          ence from stray magnetic fields, or simply because of the unavoidable


 Ex Libris   quantization
             apisake@gmail.com......................................................         © MacAvon Media




                                                                                                                       17
measure the signal’s value at discrete intervals, and quantization, when
                Figure 2.2. An analogue signal
                                                    we restrict the value to a fixed set of levels. Sampling and quantization
However, looking at Figure 2.3, you can see that some information must have been lost during
                                                    can be carried out in either order; Figure 2.3 shows a signal being
the digitization process. How can we claim that the digitized result is in any sense an accurate
                                                    first sampled and then quantized. In the sampling step, you see the
         Digitization
representation of the original analogue signal? The only meaningful measure of accuracy must be
                                                    continuous signal reduced to a sequence of equally spaced values; in the
how closely the original can be reconstructed. In order to reconstruct an analogue signal from a
                                                    quantization step, some of these values are chopped off so that every
set of samples, what we need to do, informally speaking, is decide what to put in the gaps between
                                                    one lies on one of the lines defining the allowed levels.
the samples. We can describe the reconstruction process precisely in mathematical terms, and that
description provides an exact specification of the theoretically best are normally carried out by special hardware devices,
                                                    These processes way to generate the required
signal. In practice, we use methods that are simplercalled the theoretical optimum but (ADCs), whose internal workings
                                                      than analogue to digital converters which can
easily be implemented in fast hardware.
                                      information lost
                                                    we will not examine. We will only consider the (almost invariable) case
                                                      where the interval between successive samples is fixed; the number of
One possibility is to “sample and hold”: that is, the value of a sample
                                                      samples in a fixed amount of time or space is known as the sampling
is used for the entire extent between it and the following sample. As generally assume that the levels to which a signal
                                                      rate. Similarly, we will
Figure 2.4 shows, this produces a signal with abrupt transitions,–which
                                                      is quantized the quantization levels – are equally spaced.
is not really a very good approximation to the original (shown dotted).
However, when such a signal is passed to an output device – suchadvantages that digital representations have over
                                                      One of the great
as a monitor or a loudspeaker – for display or playback, the lags stems from the fact that only certain signal values –
                                                      analogue ones and
imperfections inherent in the physical device will those at thediscon-
                                                      cause these quantization levels – are valid. If a signal is transmitted
tinuities to be smoothed out, and the result actually approximates the on some physical medium such as magnetic tape,
                                                      over a wire or stored
theoretical optimum quite Sampling and
                 Figure 2.3. well. (However, in the future, improvements
                                                      inevitably some randomFigure is introduced, either because of interfer-
                                                                               noise 2.4. Sample and hold
in the technology for the playback of sound and picture will stray magnetic fields, or simply because of the unavoidable
                 quantization                         ence from demand reconstruction
matching improvements in the signal.)                                            sample &
             Ex Libris quantization
                                                                                     hold © MacAvon Media
                      apisake@gmail.com......................................................
Clearly, though, if the original samples were too far apart, any reconstruction is going to be
                                                                             reconstruction
inadequate, because there may be details in the analogue signal that, as it were, slipped between
samples. Figure 2.5 shows an example: the values of the consecutive samples taken at si and si+1
are identical, and there cannot possibly be any way of inferring the presence of the spike in
between those two points from them – the signal could as easily have dipped down or stayed at


                                                                                                                                17
Digitization

24    F U N DA M E N TA L S


                              the same level. The effects of such undersampling on the way in which
                              the reconstructed signal will be perceived depend on what the signal
                              represents – sound, image, and so on – and whether it is time-varying
                              or space-varying. We will describe specific instances later. Suffice it to
                              say, for now, that they are manifested as distortions and artefacts which
                              are always undesirable.

          si      si+1        It is easy enough to see that if the sampling rate is too low some detail
                              will be lost in the sampling. It is less easy to see whether there is ever
 Figure 2.5. Undersampling    any rate at which we can be sure that the samples are close enough
                              together to allow the signal to be accurately reconstructed, and if
                              there is, how close is close enough. To get a better understanding of
        undersampling         these matters, we need to consider an alternative way of representing
                              a signal. Later, this will also help us to understand some related aspects
                              of sound and image processing.

                              You are probably familiar with the idea that a musical note played on
                              an instrument consists of waveforms of several different frequencies
                              added together. There is the fundamental, which is the pitch associated      18
Digitization

24    F U N DA M E N TA L S
                                              ¡กÒาÃร undersampl
                              the same level. The effects of such undersampling
                                                                               ingon¢ขthe §งáแËหin which
                                                                                            Íอ way Åล‹‹§ง
                                               ¡กÓำàเ¹นÔิ´ด ¡ก‹‹Íอ perceived depend on
                              the reconstructed signal will be ãใËหŒŒàเ¡กÔิ´ด»ป˜˜­ÞญËห what the signal
                                        r– construct ÊสÑั­Þญ
                              represents esound, image, and so on – and whether is
                                                                                        Òาitãใ¹นtime-varying
                                                                                                ¡กÒาÃร
                                                                          ­Þญ instances later. Suffice Åล
                              or space-varying. We will describe specific Òา³ณ·ท∙Õี่¨จÐะáแÊส´ด§ง it to
                                                                                                      ¼ผ
                              say, for now, that they are manifested as distortions and artefacts which
                              are always undesirable.

          si      si+1        It is easy enough to see that if the sampling rate is too low some detail
                              will be lost in the sampling. It is less easy to see whether there is ever
 Figure 2.5. Undersampling    any rate at which we can be sure that the samples are close enough
                              together to allow the signal to be accurately reconstructed, and if
                              there is, how close is close enough. To get a better understanding of
        undersampling         these matters, we need to consider an alternative way of representing
                              a signal. Later, this will also help us to understand some related aspects
                              of sound and image processing.

                              You are probably familiar with the idea that a musical note played on
                              an instrument consists of waveforms of several different frequencies
                              added together. There is the fundamental, which is the pitch associated          18
Digitization

24    F U N DA M E N TA L S
                                              ¡กÒาÃร undersampl
                              the same level. The effects of such undersampling
                                                                               ingon¢ขthe §งáแËหin which
                                                                                            Íอ way Åล‹‹§ง
                                               ¡กÓำàเ¹นÔิ´ด ¡ก‹‹Íอ perceived depend on
                              the reconstructed signal will be ãใËหŒŒàเ¡กÔิ´ด»ป˜˜­ÞญËห what the signal
                                        r– construct ÊสÑั­Þญ
                              represents esound, image, and so on – and whether is
                                                                                        Òาitãใ¹นtime-varying
                                                                                                ¡กÒาÃร
                                                                          ­Þญ instances later. Suffice Åล
                              or space-varying. We will describe specific Òา³ณ·ท∙Õี่¨จÐะáแÊส´ด§ง it to
                                                                                                      ¼ผ
                              say, for now, that they are manifested as distortions and artefacts which
                              are always undesirable.

          si      si+1        It is easy enough to see that if the sampling rate is too low some detail
                              will be lost in the sampling. It is less easy to see whether there is ever
 Figure 2.5. Undersampling
                                                                                  Íอ§ง output ¨จÐะ
                              any rate at which we can be sure that the samples are close enough
                                                      Ðะ¡กÑั¹น¤คØุ³ณÀภÒา¾พ¢ข
                              together to allow the signal to be accurately reconstructed, and if
                                       àเ¾พ×ื่Íอ»ปÃร
        undersampling                                ªชŒŒÍอÑัµตÃรÒา¡กÒาÃร sa    mpling ´ดŒŒÇวÂย
                              there is, how close is close enough. To get a better understanding of
                                          µตŒŒÍอ§งãใ
                              these matters, we need to consider an alternative way of representing
                                                                            «ซÖึ่§งàเ·ท∙‹‹Òา¡กÑัºบ 2f
                                                                                             h
                              a signal. Later, this will also help us to understand some related aspects
                                                Nyquist rate
                              of sound and image processing.

                              You are probably familiar with the idea that a musical note played on
                              an instrument consists of waveforms of several different frequencies
                              added together. There is the fundamental, which is the pitch associated          18
µตÑัÇวÍอÂย‹‹Òา§งàเÊสÕีÂย§ง ·ท∙Õี่ sampling
      ´ดŒŒÇวÂยÍอ   ÑัµตÃรÒา·ท∙Õี่àเËหÁมÒาÐะÊสÁม




                                                   19
µตÑัÇวÍอÂย‹‹Òา§งàเÊสÕีÂย§ง ·ท∙Õี่ sampling
      ´ดŒŒÇวÂยÍอ   ÑัµตÃรÒา·ท∙Õี่àเËหÁมÒาÐะÊสÁม




                                                   19
µตÑัÇวÍอÂย‹‹Òา§งàเÊสÕีÂย§ง·ท∙Õี่
und     ersampling




                                     20
ãใ¹นàเÃร×ื่Íอ§งÀภÒา¾พ ¡กÒาÃร undersampling ·ท∙ÓำãใËห ŒŒàเ¡กÔิ´ด¢ขÍอºบËหÂยÑั¡ก ËหÃร×ืÍอàเ¡กÔิ´ด Moiré pattern




                                                                                                                21
Digitiz ation




                22
analogue to digital form – consists of two steps: sampling, when we
                                        measure the signal’s value at discrete intervals, and quantization, when
  Figure 2.2. An analogue signal
                                        we restrict the value to a fixed set of levels. Sampling and quantization
                                        can be carried out in either order; Figure 2.3 shows a signal being


  Digitiz ation                         first sampled and then quantized. In the sampling step, you see the
                                        continuous signal reduced to a sequence of equally spaced values; in the
                                        quantization step, some of these values are chopped off so that every
                                        one lies on one of the lines defining the allowed levels.

                                        These processes are normally carried out by special hardware devices,
                                        called analogue to digital converters (ADCs), whose internal workings
                                        we will not examine. We will only consider the (almost invariable) case
                                        where the interval between successive samples is fixed; the number of
                                        samples in a fixed amount of time or space is known as the sampling
                                        rate. Similarly, we will generally assume that the levels to which a signal
                                        is quantized – the quantization levels – are equally spaced.

                                        One of the great advantages that digital representations have over
                                        analogue ones stems from the fact that only certain signal values –
                                        those at the quantization levels – are valid. If a signal is transmitted
                                        over a wire or stored on some physical medium such as magnetic tape,
  Figure 2.3. Sampling and              inevitably some random noise is introduced, either because of interfer-
  quantization                          ence from stray magnetic fields, or simply because of the unavoidable


Ex Libris   quantization
            apisake@gmail.com......................................................         © MacAvon Media




                                                                                                                      22
analogue to digital form – consists of two steps: sampling, when we
                                        measure the signal’s value at discrete intervals, and quantization, when
  Figure 2.2. An analogue signal
                                        we restrict the value to a fixed set of levels. Sampling and quantization
                                        can be carried out in either order; Figure 2.3 shows a signal being


  Digitiz ation                         first sampled and then quantized. In the sampling step, you see the
                                        continuous signal reduced to a sequence of equally spaced values; in the
                                        quantization step, some of these values are chopped off so that every
                                        one lies on one of the lines defining the allowed levels.

                                        These processes are normally carried out by special hardware devices,
                                        called analogue to digital converters (ADCs), whose internal workings
                                        we will not examine. We will only consider the (almost invariable) case
                                        where the interval between successive samples is fixed; the number of
                                        samples in a fixed amount of time or space is known as the sampling
                                        rate. Similarly, we will generally assume that the levels to which a signal
                                                           ãใ¹น¡กÃร³ณÕี·ท∙Õี่àเÃรÒาÁมÕี¤ค‹‹ÒาÃรÐะ
                                        is quantized – the quantization levels – are equally spaced.
                                                                                                  ´ดÑัºบãใ¹น¡กÒาÃร·ท∙Óำ
                                                      quadvantagesathatodigital Õี่µต
                                                            antiz ti n ·ท∙ representations have over
                                        One of the great                                     ่Óำ¨จÐะàเ»ปšš¹นµตŒŒ¹นàเËหµตØุãใËหŒŒ
                                                        àเ¡กÔิ´ด¤คÇวÒาÁมäไÁม‹‹ÊสÁมºบÙูÃร³ณ
                                        analogue ones stems from the fact that only certain signal values –
                                                                                                   ¢ขÍอ transmittedt
                                        those at the quantization levels – are valid. If a signal§งis out
                                                                                                                      pu
                                        over a wire or stored on some physical medium such as magnetic tape,
  Figure 2.3. Sampling and              inevitably some random noise is introduced, either because of interfer-
  quantization                          ence from stray magnetic fields, or simply because of the unavoidable


Ex Libris   quantization
            apisake@gmail.com......................................................                 © MacAvon Media




                                                                                                                                      22
¶ถŒŒÒาàเÃรÒาÁมÕี¤ค‹‹ÒาÃรÐะ´ดÑัºบãใ¹น¡ก
                                                   ÒาÃร·ท∙Óำ
quantization µต‹‹Òา
                                         §งæๆ¡กÑั¹น àเÃรÒา¨จÐะ
äไ´ดŒŒ¤คØุ³ณÀภÒา¾พ¢ขÍอ§งÀภÒา¾พ
                                            ·ท∙Õี่µต‹‹Òา§ง¡กÑั¹น

                                                                    23
¶ถŒŒÒาàเÃรÒาÁมÕี¤ค‹‹ÒาÃรÐะ´ดÑัºบãใ¹น¡ก
                                                   ÒาÃร·ท∙Óำ
quantization µต‹‹Òา
                                         §งæๆ¡กÑั¹น àเÃรÒา¨จÐะ
äไ´ดŒŒ¤คØุ³ณÀภÒา¾พ¢ขÍอ§งÀภÒา¾พ
                                            ·ท∙Õี่µต‹‹Òา§ง¡กÑั¹น

                                                                    23
¶ถŒŒÒาàเÃรÒาÁมÕี¤ค‹‹ÒาÃรÐะ´ดÑัºบãใ¹น¡ก
                                                   ÒาÃร·ท∙Óำ
quantization µต‹‹Òา
                                         §งæๆ¡กÑั¹น àเÃรÒา¨จÐะ
äไ´ดŒŒ¤คØุ³ณÀภÒา¾พ¢ขÍอ§งÀภÒา¾พ
                                            ·ท∙Õี่µต‹‹Òา§ง¡กÑั¹น

                                                                    23
¶ถŒŒÒาàเÃรÒาÁมÕี¤ค‹‹ÒาÃรÐะ´ดÑัºบãใ¹น¡ก
                                                   ÒาÃร·ท∙Óำ
quantization µต‹‹Òา
                                         §งæๆ¡กÑั¹น àเÃรÒา¨จÐะ
äไ´ดŒŒ¤คØุ³ณÀภÒา¾พ¢ขÍอ§งÀภÒา¾พ
                                            ·ท∙Õี่µต‹‹Òา§ง¡กÑั¹น

                                                                    23
¶ถŒŒÒาàเÃรÒาÁมÕี¤ค‹‹ÒาÃรÐะ´ดÑัºบãใ¹น¡ก
                                                   ÒาÃร·ท∙Óำ
quantization µต‹‹Òา
                                         §งæๆ¡กÑั¹น àเÃรÒา¨จÐะ
äไ´ดŒŒ¤คØุ³ณÀภÒา¾พ¢ขÍอ§งÀภÒา¾พ
                                            ·ท∙Õี่µต‹‹Òา§ง¡กÑั¹น

                                                                    23
CHAPTER
                 2                                                                      D I G I TA L DATA




Figure 2.12. Posterization

between areas of those colours would be elided. The effect on black and white images can be
seen clearly in Figure 2.11, which shows a gradient swatch using 256, 128, 64, 32, 16, 8, 4, and
2 different grey levels. The original gradient varies linearly from pure white to pure black, and
as we reduce the number of different greys, you can see how values band together as they are
quantized increasingly coarsely. In a less regular image, the effect manifests itself as posterization,     24
¡กÒาÃรºบÕีºบÍอÑั´ด¢ขŒŒÍอÁมÙูÅล
    (Data Compression)



                                  25
Compression




              26
Compression
              You will learn, as we examine the individual media types in detail, that a characteristic property


Compression   of media data is that it occupies a lot of storage. This means, in turn, that it needs a lot of band-
              width when it is transferred over networks. Storage and bandwidth are limited resources, so the
              high demands of media data can pose a problem. The common response to this problem is to
              apply some form of compression, which means any operation that can be performed on data to
              reduce the amount of storage required to represent it. If data has been compressed, an inverse
              decompression operation will be required to restore it to a form in which it can be displayed or
              used. Software that performs compression and decompression is often called a codec (short for
              compressor/decompressor), especially in the context of video and audio.

                                        Compression algorithms can be divided into two classes: lossless and
                                        lossy. A lossless algorithm has the property that it is always possible to
           original data                decompress data that has been compressed and retrieve an exact copy
                                        of the original data, as indicated in Figure 2.13. Any compression algo-
                                        rithm that is not lossless is lossy, which means that some data has been
    compress                            discarded in the compression process and cannot be restored, so that the
                                        decompressed data is only an approximation to the original, as shown
                                        in Figure 2.14. The discarded data will represent information that is
                       decompress
                                        not significant, and lossy algorithms which are in common use do a
                                        remarkable job at preserving the quality of images, video and sound,
          compressed data
                                        even though a considerable amount of data has been discarded. Lossless
   Figure 2.13. Lossless compression    algorithms are generally less effective than lossy ones, so for most multi-
                                        media applications some lossy compression will be used. However, for
             text the loss of even a single bit of information would be significant, so there is no such thing as
             lossy text compression.

              It may not be apparent that any sort of data can be compressed at all without loss. If no informa-
              tion is being discarded, how can space be saved? In the case of text, lossless compression works        26
2
                         Compression
    CHAPTER                                                                         DIGITAL DATA            31
                           You will learn, as we examine the individual media types in detail, that a characteristic property


  Compression              of media data is that it occupies a lot of storage. This means, in turn, that it needs a lot of band-
                           width when it is transferred over networks. Storage and bandwidth are limited resources, so the
with directly, so storage schemes which make less than optimal use of
the available bits are usedhigh demands of instead. data can pose a problem. The common response to this problem is to
                            most of the time media
                                                                                     original data
                           apply some form of compression, which means any operation that can be performed on data to
Lossless and lossy compression arethe amount separate techniques. Mostrepresent it. If data has been compressed, an inverse
                           reduce not entirely of storage required to
lossy algorithms make use of some lossless technique as part required to restore it to a form in which it can be displayed or
                           decompression operation will be of the total
compression process. Generally,Software that performs compression and decompression is often called a codec (short for
                           used. once insignificant information has been       compress
discarded, the resulting data is more amenable to lossless compression. context of video and audio.
                           compressor/decompressor), especially in the
This is particularly true in the case of image compression, as we will
explain in Chapter 4.                             Compression algorithms can be divided into two classes: lossless and
                                                        lossy. A lossless algorithm hascompressed datathat it is always possible to
                                                                                         the property
Ideally, lossy compression will data be applied atdecompresspossible
                        original only                     the latest data that has been compressed and retrieve an exact copy
stage in the preparation of the media for delivery. Any processing that as indicated in Figure 2.13. Any compression algo-
                                                        of the original data,                       decompress
is required should be done on uncompressed or losslesslythat is not lossless is lossy, which means that some data has been
                                                        rithm    compressed
data whenever possible. There are two reasons for this. When data is
                compress                                discarded in the compression process and cannot be restored, so that the
lossily compressed the lost information can never be retrieved, which
                                                        decompressed data is only an approximation to the original, as shown
means that if data is repeatedly compressed and decompressed in this
                                                        in Figure 2.14. The discarded data will represent information that is
way its quality will gradually deteriorate. Additionally, some processing
                                     decompress
                                                        not significant, and lossy algorithms which are in common use do a
operations can exaggerate the loss of quality caused by some types of
                                                        remarkable uncom- preserving the qualitydata images, video and sound,
compression. For both these reasons, it is best to work with
                                                                     job at          decompressed of
                      compressed data
pressed data, and only compress it for final delivery. even though a considerable amount of data has been discarded. Lossless
               Figure 2.13. Lossless compression        algorithms are generally less effective than lossy ones, so for most multi-
                                                        media applications Figure 2.14. Lossy compression
This ideal cannot always be achieved.Video data is usually compressed in some lossy compression will be used. However, for
the camera, and although text the loss of even a produce uncompressed
                          digital still cameras that single bit of information would be significant, so there is no such thing as
                          lossy text compression.
images are increasingly common, many cheaper cameras will compress photographs fairly severely
when the pictures are being taken. It may be necessary for a photographer to allow the camera to
compress images, in order to fit thembe apparent that any sort of data these circumstances, data without loss. If no informa-
                         It may not onto the available storage. Under can be compressed at all
should be decompressed tion isand an uncompressed version should be used In the case of text, lossless compression works
                          once, being discarded, how can space be saved? for working. This                                            26
27
27
27
27

Más contenido relacionado

Similar a 03 digital mediafundamental

Tham van cong dong tai Gia Lai
Tham van cong dong tai Gia LaiTham van cong dong tai Gia Lai
Tham van cong dong tai Gia Laiforeman
 
SKKN Rèn Luyện Kỹ Năng Nói Tiếng Anh Cho Học Sinh Lớp 6 -7
SKKN Rèn Luyện Kỹ Năng Nói Tiếng Anh Cho Học Sinh Lớp 6 -7 SKKN Rèn Luyện Kỹ Năng Nói Tiếng Anh Cho Học Sinh Lớp 6 -7
SKKN Rèn Luyện Kỹ Năng Nói Tiếng Anh Cho Học Sinh Lớp 6 -7 nataliej4
 
Councillors report card 2011
Councillors report card 2011Councillors report card 2011
Councillors report card 2011Milind Mhaske
 
Thiet ke Bao cao thuong nien - Saigon bank 2008
Thiet ke Bao cao thuong nien - Saigon bank 2008Thiet ke Bao cao thuong nien - Saigon bank 2008
Thiet ke Bao cao thuong nien - Saigon bank 2008Viết Nội Dung
 
Market oriented income generating activities
Market oriented income generating activitiesMarket oriented income generating activities
Market oriented income generating activitiesphetsoulaphonh choulatida
 
Truyền thông Nguy cơ trong tình trạng khẩn cấp về Y tế công cộng
Truyền thông Nguy cơ trong tình trạng khẩn cấp về Y tế công cộng Truyền thông Nguy cơ trong tình trạng khẩn cấp về Y tế công cộng
Truyền thông Nguy cơ trong tình trạng khẩn cấp về Y tế công cộng nataliej4
 
Market Leader Pre Intermediate Reading
Market Leader Pre Intermediate ReadingMarket Leader Pre Intermediate Reading
Market Leader Pre Intermediate ReadingHoàng Thanh Tùng
 
Επίλυση Προβλήματος: Πρόβλημα; … ή ευκαιρία για δημιουργική σκέψη;
Επίλυση Προβλήματος: Πρόβλημα; … ή ευκαιρία για δημιουργική σκέψη;Επίλυση Προβλήματος: Πρόβλημα; … ή ευκαιρία για δημιουργική σκέψη;
Επίλυση Προβλήματος: Πρόβλημα; … ή ευκαιρία για δημιουργική σκέψη;ΘΑΛΗΣ + ΦΙΛΟΙ
 
Đường cong Lorenz và hệ số Gini
Đường cong Lorenz và hệ số GiniĐường cong Lorenz và hệ số Gini
Đường cong Lorenz và hệ số Ginibigoestoschool
 

Similar a 03 digital mediafundamental (16)

Tham van cong dong tai Gia Lai
Tham van cong dong tai Gia LaiTham van cong dong tai Gia Lai
Tham van cong dong tai Gia Lai
 
SKKN Rèn Luyện Kỹ Năng Nói Tiếng Anh Cho Học Sinh Lớp 6 -7
SKKN Rèn Luyện Kỹ Năng Nói Tiếng Anh Cho Học Sinh Lớp 6 -7 SKKN Rèn Luyện Kỹ Năng Nói Tiếng Anh Cho Học Sinh Lớp 6 -7
SKKN Rèn Luyện Kỹ Năng Nói Tiếng Anh Cho Học Sinh Lớp 6 -7
 
Facebook marketing in 7 days
Facebook marketing in 7 daysFacebook marketing in 7 days
Facebook marketing in 7 days
 
PPS Chapter 7
PPS Chapter 7PPS Chapter 7
PPS Chapter 7
 
Một số vụ kiện chống bán phá giá tại Trung Quốc và EU
Một số vụ kiện chống bán phá giá tại Trung Quốc và EUMột số vụ kiện chống bán phá giá tại Trung Quốc và EU
Một số vụ kiện chống bán phá giá tại Trung Quốc và EU
 
Councillors report card 2011
Councillors report card 2011Councillors report card 2011
Councillors report card 2011
 
90 days gov
90 days gov90 days gov
90 days gov
 
Cross Cultural Management Workshop
Cross Cultural Management WorkshopCross Cultural Management Workshop
Cross Cultural Management Workshop
 
Thiet ke Bao cao thuong nien - Saigon bank 2008
Thiet ke Bao cao thuong nien - Saigon bank 2008Thiet ke Bao cao thuong nien - Saigon bank 2008
Thiet ke Bao cao thuong nien - Saigon bank 2008
 
Market oriented income generating activities
Market oriented income generating activitiesMarket oriented income generating activities
Market oriented income generating activities
 
Truyền thông Nguy cơ trong tình trạng khẩn cấp về Y tế công cộng
Truyền thông Nguy cơ trong tình trạng khẩn cấp về Y tế công cộng Truyền thông Nguy cơ trong tình trạng khẩn cấp về Y tế công cộng
Truyền thông Nguy cơ trong tình trạng khẩn cấp về Y tế công cộng
 
Market Leader Pre Intermediate Reading
Market Leader Pre Intermediate ReadingMarket Leader Pre Intermediate Reading
Market Leader Pre Intermediate Reading
 
Επίλυση Προβλήματος: Πρόβλημα; … ή ευκαιρία για δημιουργική σκέψη;
Επίλυση Προβλήματος: Πρόβλημα; … ή ευκαιρία για δημιουργική σκέψη;Επίλυση Προβλήματος: Πρόβλημα; … ή ευκαιρία για δημιουργική σκέψη;
Επίλυση Προβλήματος: Πρόβλημα; … ή ευκαιρία για δημιουργική σκέψη;
 
Danh Ngon
Danh NgonDanh Ngon
Danh Ngon
 
Đường cong Lorenz và hệ số Gini
Đường cong Lorenz và hệ số GiniĐường cong Lorenz và hệ số Gini
Đường cong Lorenz và hệ số Gini
 
BLISS APRIL 2010 ISSUE
BLISS APRIL 2010 ISSUEBLISS APRIL 2010 ISSUE
BLISS APRIL 2010 ISSUE
 

Más de อภิเษก หงษ์วิทยากร

Más de อภิเษก หงษ์วิทยากร (14)

Slide03 Number System and Operations Part 1
Slide03 Number System and Operations Part 1Slide03 Number System and Operations Part 1
Slide03 Number System and Operations Part 1
 
Slide02 digital logic operations and functions
Slide02 digital logic operations and functionsSlide02 digital logic operations and functions
Slide02 digital logic operations and functions
 
Slide01 digital fundamental
Slide01 digital fundamentalSlide01 digital fundamental
Slide01 digital fundamental
 
00 course intro
00 course intro00 course intro
00 course intro
 
08 multimedia delivering
08 multimedia delivering08 multimedia delivering
08 multimedia delivering
 
06 vdo
06 vdo06 vdo
06 vdo
 
05 audio
05 audio05 audio
05 audio
 
02 multimedia andinteractivity
02 multimedia andinteractivity02 multimedia andinteractivity
02 multimedia andinteractivity
 
00 welcome slide
00 welcome slide00 welcome slide
00 welcome slide
 
Slide05 Message Passing Architecture
Slide05 Message Passing ArchitectureSlide05 Message Passing Architecture
Slide05 Message Passing Architecture
 
03 digital mediafundamental
03 digital mediafundamental03 digital mediafundamental
03 digital mediafundamental
 
03 digital media fundamental
03 digital media fundamental03 digital media fundamental
03 digital media fundamental
 
02 multimedia andinteractivity
02 multimedia andinteractivity02 multimedia andinteractivity
02 multimedia andinteractivity
 
01 fundamental of multimedia
01 fundamental of multimedia01 fundamental of multimedia
01 fundamental of multimedia
 

Último

Unlocking the Secrets of Affiliate Marketing.pdf
Unlocking the Secrets of Affiliate Marketing.pdfUnlocking the Secrets of Affiliate Marketing.pdf
Unlocking the Secrets of Affiliate Marketing.pdfOnline Income Engine
 
VIP Call Girls In Saharaganj ( Lucknow ) 🔝 8923113531 🔝 Cash Payment (COD) 👒
VIP Call Girls In Saharaganj ( Lucknow  ) 🔝 8923113531 🔝  Cash Payment (COD) 👒VIP Call Girls In Saharaganj ( Lucknow  ) 🔝 8923113531 🔝  Cash Payment (COD) 👒
VIP Call Girls In Saharaganj ( Lucknow ) 🔝 8923113531 🔝 Cash Payment (COD) 👒anilsa9823
 
Call Girls Jp Nagar Just Call 👗 7737669865 👗 Top Class Call Girl Service Bang...
Call Girls Jp Nagar Just Call 👗 7737669865 👗 Top Class Call Girl Service Bang...Call Girls Jp Nagar Just Call 👗 7737669865 👗 Top Class Call Girl Service Bang...
Call Girls Jp Nagar Just Call 👗 7737669865 👗 Top Class Call Girl Service Bang...amitlee9823
 
7.pdf This presentation captures many uses and the significance of the number...
7.pdf This presentation captures many uses and the significance of the number...7.pdf This presentation captures many uses and the significance of the number...
7.pdf This presentation captures many uses and the significance of the number...Paul Menig
 
0183760ssssssssssssssssssssssssssss00101011 (27).pdf
0183760ssssssssssssssssssssssssssss00101011 (27).pdf0183760ssssssssssssssssssssssssssss00101011 (27).pdf
0183760ssssssssssssssssssssssssssss00101011 (27).pdfRenandantas16
 
The Coffee Bean & Tea Leaf(CBTL), Business strategy case study
The Coffee Bean & Tea Leaf(CBTL), Business strategy case studyThe Coffee Bean & Tea Leaf(CBTL), Business strategy case study
The Coffee Bean & Tea Leaf(CBTL), Business strategy case studyEthan lee
 
KYC-Verified Accounts: Helping Companies Handle Challenging Regulatory Enviro...
KYC-Verified Accounts: Helping Companies Handle Challenging Regulatory Enviro...KYC-Verified Accounts: Helping Companies Handle Challenging Regulatory Enviro...
KYC-Verified Accounts: Helping Companies Handle Challenging Regulatory Enviro...Any kyc Account
 
VIP Call Girls Gandi Maisamma ( Hyderabad ) Phone 8250192130 | ₹5k To 25k Wit...
VIP Call Girls Gandi Maisamma ( Hyderabad ) Phone 8250192130 | ₹5k To 25k Wit...VIP Call Girls Gandi Maisamma ( Hyderabad ) Phone 8250192130 | ₹5k To 25k Wit...
VIP Call Girls Gandi Maisamma ( Hyderabad ) Phone 8250192130 | ₹5k To 25k Wit...Suhani Kapoor
 
Regression analysis: Simple Linear Regression Multiple Linear Regression
Regression analysis:  Simple Linear Regression Multiple Linear RegressionRegression analysis:  Simple Linear Regression Multiple Linear Regression
Regression analysis: Simple Linear Regression Multiple Linear RegressionRavindra Nath Shukla
 
Boost the utilization of your HCL environment by reevaluating use cases and f...
Boost the utilization of your HCL environment by reevaluating use cases and f...Boost the utilization of your HCL environment by reevaluating use cases and f...
Boost the utilization of your HCL environment by reevaluating use cases and f...Roland Driesen
 
Value Proposition canvas- Customer needs and pains
Value Proposition canvas- Customer needs and painsValue Proposition canvas- Customer needs and pains
Value Proposition canvas- Customer needs and painsP&CO
 
Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...
Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...
Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...lizamodels9
 
A DAY IN THE LIFE OF A SALESMAN / WOMAN
A DAY IN THE LIFE OF A  SALESMAN / WOMANA DAY IN THE LIFE OF A  SALESMAN / WOMAN
A DAY IN THE LIFE OF A SALESMAN / WOMANIlamathiKannappan
 
Call Girls in Delhi, Escort Service Available 24x7 in Delhi 959961-/-3876
Call Girls in Delhi, Escort Service Available 24x7 in Delhi 959961-/-3876Call Girls in Delhi, Escort Service Available 24x7 in Delhi 959961-/-3876
Call Girls in Delhi, Escort Service Available 24x7 in Delhi 959961-/-3876dlhescort
 
Best VIP Call Girls Noida Sector 40 Call Me: 8448380779
Best VIP Call Girls Noida Sector 40 Call Me: 8448380779Best VIP Call Girls Noida Sector 40 Call Me: 8448380779
Best VIP Call Girls Noida Sector 40 Call Me: 8448380779Delhi Call girls
 
Monte Carlo simulation : Simulation using MCSM
Monte Carlo simulation : Simulation using MCSMMonte Carlo simulation : Simulation using MCSM
Monte Carlo simulation : Simulation using MCSMRavindra Nath Shukla
 
Call Girls In Holiday Inn Express Gurugram➥99902@11544 ( Best price)100% Genu...
Call Girls In Holiday Inn Express Gurugram➥99902@11544 ( Best price)100% Genu...Call Girls In Holiday Inn Express Gurugram➥99902@11544 ( Best price)100% Genu...
Call Girls In Holiday Inn Express Gurugram➥99902@11544 ( Best price)100% Genu...lizamodels9
 
MONA 98765-12871 CALL GIRLS IN LUDHIANA LUDHIANA CALL GIRL
MONA 98765-12871 CALL GIRLS IN LUDHIANA LUDHIANA CALL GIRLMONA 98765-12871 CALL GIRLS IN LUDHIANA LUDHIANA CALL GIRL
MONA 98765-12871 CALL GIRLS IN LUDHIANA LUDHIANA CALL GIRLSeo
 
A305_A2_file_Batkhuu progress report.pdf
A305_A2_file_Batkhuu progress report.pdfA305_A2_file_Batkhuu progress report.pdf
A305_A2_file_Batkhuu progress report.pdftbatkhuu1
 

Último (20)

Unlocking the Secrets of Affiliate Marketing.pdf
Unlocking the Secrets of Affiliate Marketing.pdfUnlocking the Secrets of Affiliate Marketing.pdf
Unlocking the Secrets of Affiliate Marketing.pdf
 
VIP Call Girls In Saharaganj ( Lucknow ) 🔝 8923113531 🔝 Cash Payment (COD) 👒
VIP Call Girls In Saharaganj ( Lucknow  ) 🔝 8923113531 🔝  Cash Payment (COD) 👒VIP Call Girls In Saharaganj ( Lucknow  ) 🔝 8923113531 🔝  Cash Payment (COD) 👒
VIP Call Girls In Saharaganj ( Lucknow ) 🔝 8923113531 🔝 Cash Payment (COD) 👒
 
Call Girls Jp Nagar Just Call 👗 7737669865 👗 Top Class Call Girl Service Bang...
Call Girls Jp Nagar Just Call 👗 7737669865 👗 Top Class Call Girl Service Bang...Call Girls Jp Nagar Just Call 👗 7737669865 👗 Top Class Call Girl Service Bang...
Call Girls Jp Nagar Just Call 👗 7737669865 👗 Top Class Call Girl Service Bang...
 
7.pdf This presentation captures many uses and the significance of the number...
7.pdf This presentation captures many uses and the significance of the number...7.pdf This presentation captures many uses and the significance of the number...
7.pdf This presentation captures many uses and the significance of the number...
 
0183760ssssssssssssssssssssssssssss00101011 (27).pdf
0183760ssssssssssssssssssssssssssss00101011 (27).pdf0183760ssssssssssssssssssssssssssss00101011 (27).pdf
0183760ssssssssssssssssssssssssssss00101011 (27).pdf
 
The Coffee Bean & Tea Leaf(CBTL), Business strategy case study
The Coffee Bean & Tea Leaf(CBTL), Business strategy case studyThe Coffee Bean & Tea Leaf(CBTL), Business strategy case study
The Coffee Bean & Tea Leaf(CBTL), Business strategy case study
 
KYC-Verified Accounts: Helping Companies Handle Challenging Regulatory Enviro...
KYC-Verified Accounts: Helping Companies Handle Challenging Regulatory Enviro...KYC-Verified Accounts: Helping Companies Handle Challenging Regulatory Enviro...
KYC-Verified Accounts: Helping Companies Handle Challenging Regulatory Enviro...
 
VVVIP Call Girls In Greater Kailash ➡️ Delhi ➡️ 9999965857 🚀 No Advance 24HRS...
VVVIP Call Girls In Greater Kailash ➡️ Delhi ➡️ 9999965857 🚀 No Advance 24HRS...VVVIP Call Girls In Greater Kailash ➡️ Delhi ➡️ 9999965857 🚀 No Advance 24HRS...
VVVIP Call Girls In Greater Kailash ➡️ Delhi ➡️ 9999965857 🚀 No Advance 24HRS...
 
VIP Call Girls Gandi Maisamma ( Hyderabad ) Phone 8250192130 | ₹5k To 25k Wit...
VIP Call Girls Gandi Maisamma ( Hyderabad ) Phone 8250192130 | ₹5k To 25k Wit...VIP Call Girls Gandi Maisamma ( Hyderabad ) Phone 8250192130 | ₹5k To 25k Wit...
VIP Call Girls Gandi Maisamma ( Hyderabad ) Phone 8250192130 | ₹5k To 25k Wit...
 
Regression analysis: Simple Linear Regression Multiple Linear Regression
Regression analysis:  Simple Linear Regression Multiple Linear RegressionRegression analysis:  Simple Linear Regression Multiple Linear Regression
Regression analysis: Simple Linear Regression Multiple Linear Regression
 
Boost the utilization of your HCL environment by reevaluating use cases and f...
Boost the utilization of your HCL environment by reevaluating use cases and f...Boost the utilization of your HCL environment by reevaluating use cases and f...
Boost the utilization of your HCL environment by reevaluating use cases and f...
 
Value Proposition canvas- Customer needs and pains
Value Proposition canvas- Customer needs and painsValue Proposition canvas- Customer needs and pains
Value Proposition canvas- Customer needs and pains
 
Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...
Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...
Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...
 
A DAY IN THE LIFE OF A SALESMAN / WOMAN
A DAY IN THE LIFE OF A  SALESMAN / WOMANA DAY IN THE LIFE OF A  SALESMAN / WOMAN
A DAY IN THE LIFE OF A SALESMAN / WOMAN
 
Call Girls in Delhi, Escort Service Available 24x7 in Delhi 959961-/-3876
Call Girls in Delhi, Escort Service Available 24x7 in Delhi 959961-/-3876Call Girls in Delhi, Escort Service Available 24x7 in Delhi 959961-/-3876
Call Girls in Delhi, Escort Service Available 24x7 in Delhi 959961-/-3876
 
Best VIP Call Girls Noida Sector 40 Call Me: 8448380779
Best VIP Call Girls Noida Sector 40 Call Me: 8448380779Best VIP Call Girls Noida Sector 40 Call Me: 8448380779
Best VIP Call Girls Noida Sector 40 Call Me: 8448380779
 
Monte Carlo simulation : Simulation using MCSM
Monte Carlo simulation : Simulation using MCSMMonte Carlo simulation : Simulation using MCSM
Monte Carlo simulation : Simulation using MCSM
 
Call Girls In Holiday Inn Express Gurugram➥99902@11544 ( Best price)100% Genu...
Call Girls In Holiday Inn Express Gurugram➥99902@11544 ( Best price)100% Genu...Call Girls In Holiday Inn Express Gurugram➥99902@11544 ( Best price)100% Genu...
Call Girls In Holiday Inn Express Gurugram➥99902@11544 ( Best price)100% Genu...
 
MONA 98765-12871 CALL GIRLS IN LUDHIANA LUDHIANA CALL GIRL
MONA 98765-12871 CALL GIRLS IN LUDHIANA LUDHIANA CALL GIRLMONA 98765-12871 CALL GIRLS IN LUDHIANA LUDHIANA CALL GIRL
MONA 98765-12871 CALL GIRLS IN LUDHIANA LUDHIANA CALL GIRL
 
A305_A2_file_Batkhuu progress report.pdf
A305_A2_file_Batkhuu progress report.pdfA305_A2_file_Batkhuu progress report.pdf
A305_A2_file_Batkhuu progress report.pdf
 

03 digital mediafundamental

  • 1. ¾พ×ื้¹น°ฐÒา¹น ¢ขÍอ§ง Êส×ื่Íอ´ดÔิ¨จÔิ·ท∙ÑัÅล 18 ÁมÔิ¶ถØุ¹นÒาÂย¹น 2555 1
  • 2. ia Systems 520251: Multimed ¾พ×ื้¹น°ฐÒา¹น ¢ขÍอ§ง Êส×ื่Íอ´ดÔิ¨จÔิ·ท∙ÑัÅล 18 ÁมÔิ¶ถØุ¹นÒาÂย¹น 2555 1
  • 5. ¢ขŒŒÍอÁมÙูÅล´ดÔิ¨จÔิ·ท∙ÑัÅล ÁมÒา·ท∙Óำ¡กÒาÃรàเ»ปÅล Õี่Âย¹นáแ»ปÅล§งäไ´ดŒŒâโ´ดÂย ÊสÒา ÁมÒาÃร¶ถ¹นÓำ¢ขŒŒÍอÁมÙูÅล ÅลÒาÂยÃรÙู»ปáแºบºบ ¡กÃรÃรÁมÇวÔิ¸ธÕี·ท∙Òา§ง¤ค ÍอÁม¾พÔิÇวàเµตÍอÃรäไ´ดŒŒËห 3
  • 6. ¢ขŒŒÍอÁมÙูÅล´ดÔิ¨จÔิ·ท∙ÑัÅล ÁมÒา·ท∙Óำ¡กÒาÃรàเ»ปÅล Õี่Âย¹นáแ»ปÅล§งäไ´ดŒŒâโ´ดÂย ÊสÒา ÁมÒาÃร¶ถ¹นÓำ¢ขŒŒÍอÁมÙูÅล ÅลÒาÂยÃรÙู»ปáแºบºบ ¡กÃรÃรÁมÇวÔิ¸ธÕี·ท∙Òา§ง¤ค ÍอÁม¾พÔิÇวàเµตÍอÃรäไ´ดŒŒËห ¢ขŒŒÍอÁมÙูÅลÊสÒาÁมÒาÃร¶ถ¹นÓำäไ»ป ¨จÑั´ดàเ¡ก็ºบäไ´ดŒŒÍอÂย‹‹Òา§งÁมÕี»ปÃรÐะ ÊสÔิ·ท∙¸ธÔิÀภÒา¾พ 3
  • 7. ¢ขŒŒÍอÁมÙูÅล´ดÔิ¨จÔิ·ท∙ÑัÅล ÁมÒา·ท∙Óำ¡กÒาÃรàเ»ปÅล Õี่Âย¹นáแ»ปÅล§งäไ´ดŒŒâโ´ดÂย ÊสÒา ÁมÒาÃร¶ถ¹นÓำ¢ขŒŒÍอÁมÙูÅล ÅลÒาÂยÃรÙู»ปáแºบºบ ¡กÃรÃรÁมÇวÔิ¸ธÕี·ท∙Òา§ง¤ค ÍอÁม¾พÔิÇวàเµตÍอÃรäไ´ดŒŒËห ¢ขŒŒÍอÁมÙูÅลÊสÒาÁมÒาÃร¶ถ¹นÓำäไ»ป ¨จÑั´ดàเ¡ก็ºบäไ´ดŒŒÍอÂย‹‹Òา§งÁมÕี»ปÃรÐะ ÊสÔิ·ท∙¸ธÔิÀภÒา¾พ ºบÊส×ื่ÍอÊสÑั­Þญ­ÞญÒา³ณ´ดÔิ¨จÔิ·ท∙ÑัÅล ÊสÒาÁมÒาÃร¶ถ¹นÓำÊส‹‹§งäไ»ปµตÒาÁมÃรÐะºบ ¢ขŒŒÍอÁมÙูÅล 3
  • 8. ¢ขŒŒÍอÁมÙูÅล´ดÔิ¨จÔิ·ท∙ÑัÅล ·ท∙ºบ·ท∙Çว¹น ºบÔิµต (bit) äไºบµต (byte) àเÅล¢ข°ฐÒา¹นÊสÍอ§ง (binary) àเÅล¢ข°ฐÒา¹นÊสÔิºบËห¡ก (hexadecimal) 4
  • 11. 7
  • 12. 8
  • 13. 8
  • 14. 00110000 8
  • 15. 00110000 9
  • 16. 00110000 9
  • 19. 01000001 11
  • 20. A ËหÃร×ืÍอàเ»ปšš¹น ¤ค‹‹ÒาÍอ×ื่¹นãใ´ด¡ก็äไ´ดŒŒ 01000001 ÊสÒาÁมÒาÃร¶ถàเ»ปšš¹นÍอÑั¡ก¢ขÃรÐะ 11
  • 21. A ËหÃร×ืÍอàเ»ปšš¹น ¤ค‹‹ÒาÍอ×ื่¹นãใ´ด¡ก็äไ´ดŒŒ 01000001 ÊสÒาÁมÒาÃร¶ถàเ»ปšš¹นÍอÑั¡ก¢ขÃรÐะ ÍอÒา¨จàเ»ปšš¹น¤ค‹‹Òา àเ©ฉ´ดÊสÕีàเ·ท∙Òา 25% 11
  • 22. A ËหÃร×ืÍอàเ»ปšš¹น ¤ค‹‹ÒาÍอ×ื่¹นãใ´ด¡ก็äไ´ดŒŒ 01000001 ÊสÒาÁมÒาÃร¶ถàเ»ปšš¹นÍอÑั¡ก¢ขÃรÐะ ÍอÒา¨จàเ»ปšš¹น¤ค‹‹Òา àเ©ฉ´ดÊสÕีàเ·ท∙Òา 25% 11
  • 23. A ËหÃร×ืÍอàเ»ปšš¹น ¤ค‹‹ÒาÍอ×ื่¹นãใ´ด¡ก็äไ´ดŒŒ 01000001 ÊสÒาÁมÒาÃร¶ถàเ»ปšš¹นÍอÑั¡ก¢ขÃรÐะ ÍอÒา¨จàเ»ปšš¹น¤ค‹‹Òา àเ©ฉ´ดÊสÕีàเ·ท∙Òา 25% 11
  • 26. ¡กÒาÃรäไ´ดŒŒÁม Òา¢ขÍอ§ง digital media ãใªชŒŒâโ»ปÃรáแ¡กÃรÁม ¤คÍอÁม¾พÔิÇวàเµตÍอÃรÊสÃรŒŒÒา§ง¢ขÖึ้¹น âโ´ดÂยµตÃร§ง àเªช‹‹¹น àเÃรÒาãใªชŒŒâโ»ปÃรáแ¡กÃรÁม Paint ãใ¹น¡ก ÒาÃรÇวÒา´ดÃรÙู»ป·ท∙Õี่àเ»ปšš¹น´ดÔิ¨จÔิ·ท∙ÑัÅล 13
  • 27. ¡กÒาÃรäไ´ดŒŒÁม Òา¢ขÍอ§ง digital media ãใªชŒŒâโ»ปÃรáแ¡กÃรÁม ¤คÍอÁม¾พÔิÇวàเµตÍอÃรÊสÃรŒŒÒา§ง¢ขÖึ้¹น âโ´ดÂยµตÃร§ง àเªช‹‹¹น àเÃรÒาãใªชŒŒâโ»ปÃรáแ¡กÃรÁม Paint ãใ¹น¡ก ÒาÃรÇวÒา´ดÃรÙู»ป·ท∙Õี่àเ»ปšš¹น´ดÔิ¨จÔิ·ท∙ÑัÅล ·ท∙Óำ¡กÒาÃรáแ»ปÅล§ง¤ค‹‹ÒาàเªชÔิ§ง¡กÒาÂยÀภÒา¾พ ËหÃร×ืÍอ¤ค‹‹Òา analogue ãใËหŒŒàเ»ปšš¹น¤ค‹‹Òา digital àเÃรÕีÂย¡ก ¡ก ÃรÃรÁมÇวÔิ¸ธÕี¹นÕี้Çว‹‹Òา digitization 13
  • 28. Digitization ÀภÒา¾พ¶ถ‹‹ÒาÂย 14
  • 29. Digitization ºบÑั¹น·ท∙Öึ¡กàเÊสÕีÂย§ง 15
  • 30. 22 F U N DA M E N TA L S In multimedia, we encounter values of several kinds that change continuously, either because Digitiz ation they originate in physical phenomena or because they exist in some analogue representation. For example, the amplitude (volume) of a sound wave varies continuously over time, as does the amplitude of an electrical signal produced by a microphone in response to a sound wave. The colour of the image formed inside a camera by its lens varies continuously across the image plane. As you see, we may be measuring different quantities, and they may be varying either over time or over space (or perhaps, as in the case of moving pictures, both). For this general discussion, we will follow tradition, and refer to the value we are measuring, whatever it may be, as a “signal”, not usually distinguishing between time-varying and space-varying signals. When we have a continuously varying signal, such as the one shown in Figure 2.2, both the value we measure, and the intervals at which we can measure it, can vary infinitesimally. In contrast, if we were to convert it to a digital signal, we would have to restrict both of these to a set of discrete values that could be represented in some fixed number of bits. That is, digitization – the process of converting a signal from analogue to digital form – consists of two steps: sampling, when we measure the signal’s value at discrete intervals, and quantization, when Figure 2.2. An analogue signal we restrict the value to a fixed set of levels. Sampling and quantization can be carried out in either order; Figure 2.3 shows a signal being ÊสÑั­Þญ­ÞญÒา³ณ first sampled and then quantized. In the sampling step, you see the analogue continuous signal reduced to a sequence of equally spaced values; in the quantization step, some of these values are chopped off so that every one lies on one of the lines defining the allowed levels. These processes are normally carried out by special hardware devices, 16
  • 31. 22 F U N DA M E N TA L S In multimedia, we encounter values of several kinds that change continuously, either because Digitiz ation they originate in physical phenomena or because they exist in some analogue representation. For example, the amplitude (volume) of a sound wave varies continuously over time, as does the amplitude of an electrical signal produced by a microphone in response to a sound wave. The colour of the image formed inside a camera by its lens varies continuously across the image plane. As you see, we may be measuring different quantities, and they may be varying either over time or over space (or perhaps, as in the case of moving pictures, both). For this general discussion, we will follow tradition, and refer to the value we are measuring, whatever it may be, as a “signal”, ¡กÃรÐะºบÇว¹น¡กÒาÃร Analogue to Digital Converter (ADC) not usually distinguishing between time-varying and space-varying signals. When we have a continuously varying signal, such as the one shown in Figure 2.2, both the value we measure, and the intervals at which we can measure it, can vary infinitesimally. In contrast, if we were to convert it to a digital signal, we would have to restrict both of these to a set of discrete values that could be represented in some fixed number of bits. That is, digitization – the process of converting a signal from analogue to digital form – consists of two steps: sampling, when we measure the signal’s value at discrete intervals, and quantization, when Figure 2.2. An analogue signal we restrict the value to a fixed set of levels. Sampling and quantization can be carried out in either order; Figure 2.3 shows a signal being ÊสÑั­Þญ­ÞญÒา³ณ first sampled and then quantized. In the sampling step, you see the analogue continuous signal reduced to a sequence of equally spaced values; in the quantization step, some of these values are chopped off so that every one lies on one of the lines defining the allowed levels. These processes are normally carried out by special hardware devices, 16
  • 32. 22 F U N DA M E N TA L S not usually distinguishing between time-varying and space-varying sig When we have a continuously varying sign In multimedia, we encounter values of several kinds that change continuously, either the value we measure, in Figure 2.2, both because Digitiz ation they originate in physical phenomena or because they exist in some can measure it, can vary infinitesimally. we analogue representation. For example, the amplitude (volume) of a sound wave varies continuously over time, as does thewe would have convert it to a digital signal, amplitude of an electrical signal produced by a microphone in response to a sound wave. The a set of discrete values that could be represen colour of the image formed inside a camera by its lens varies continuously across the digitization – the process o of bits. That is, image plane. As you see, we may be measuring different quantities, and they mayanalogue to either over timeconsists of two be varying digital form – or over space (or perhaps, as in the case of moving pictures, both). For this general discussion, we discrete interva measure the signal’s value at will follow tradition, and refer Figure valueAn analogue signal whatever it maythe value“signal”, set of levels. to the 2.2. we are measuring, we restrict be, as a to a fixed ¡กÃรÐะºบÇว¹น¡กÒาÃร Analogue to Digital Converter (ADC) not usually distinguishing between time-varying and space-varying signals. carried out in either order; Figure can be first sampled and then quantized. In the s When we have a continuously varying signal, such as the one shown a sequence of e continuous signal reduced to in Figure 2.2, both the value we measure, and the intervalssome of these values are quantization step, at which we can measure it, can vary infinitesimally. Inlies on one of the lines defining the allo one contrast, if we were to convert it to a digital signal, we would have to restrict both of these to a set of discrete values that could be represented in some fixed normally carried out b These processes are number of bits. That is, digitization – the processcalled analogue atosignal from of converting digital converters (ADCs analogue to digital form – consists of two steps:not examine. We will only consider we will sampling, when we measure the signal’s value at discrete intervals, and quantization, whensuccessive samp where the interval between Figure 2.2. An analogue signal we restrict the value to a fixed set of levels. Samplingaand quantization time or space samples in fixed amount of can be carried out in either order; Figure 2.3 shows we will generally assume that rate. Similarly, a signal being ÊสÑั­Þญ­ÞญÒา³ณ first sampled and then quantized. In theissampling step, you see the levels – are sampling quantized – the quantization analogue continuous signal reduced to a sequence of equally spaced values; in the quantization step, some of these values are chopped off so that every that digital One of the great advantages one lies on one of the lines defining the allowed levels. stems from the fact that on analogue ones those at the quantization levels – are valid These processes are normally carried out by special hardware devices, 16
  • 33. 22 F U N DA M E N TA L S not usually distinguishing between time-varying and space-varying bit of sig analog When we have a continuously varying sign measu Figure 2.2. An analogue signal In multimedia, we encounter values of several kinds that change continuously, either the value we measure, in Figure 2.2, both because we re Digitiz ation they originate in physical phenomena or because they exist in some can measure it, can vary infinitesimally. we analogue representation. For example, the amplitude (volume) of a sound wave varies continuously over time, as does thewe would first s convert it to a digital signal, can b have amplitude of an electrical signal produced by a microphone in response to a sound wave. The contin a set of discrete values that could be represen quant colour of the image formed inside a camera by its lens varies continuously across the digitization – the process o image plane. of bits. That is, one li As you see, we may be measuring different quantities, and they mayanalogue to either over timeconsists of two be varying digital form – or over space (or perhaps, as in the case of moving pictures, both). For this general discussion, we discrete interva measure the signal’s value at These will follow tradition, and refer to the Figure value we are measuring, whatever it may be, as a “signal”, 2.2. An analogue signal ¡กÃรÐะºบÇว¹น¡กÒาÃร Analogue to Digital Converter (ADC) we restrict the value to a fixed set of levels. called not usually distinguishing between time-varying and space-varying signals. carried out in either order; Figure can be we w first sampled and then quantized. In where the s When we have a continuously varying signal, such as the one shown a sequence of e continuous signal reduced to sampl in Figure 2.2, both the value we measure, and the intervalssome of these values areS quantization step, at which rate. we can measure it, can vary infinitesimally. Inlies on one of the lines defining the qua one contrast, if we were to is allo convert it to a digital signal, we would have to restrict both of these to One a set of discrete values that could be represented in some fixed normally carried out b These processes are number analog of bits. That is, digitization – the processcalled analogue atosignal from of converting digital converters (ADCs those analogue to digital form – consists of two steps:not examine. We will only consider a we will sampling, when we over measure the signal’s value at discrete intervals, and quantization, whensuccessive inevit where the interval between samp Figure 2.2. An analogue signal Figure 2.3. Sampling and we restrict the value to a fixed set of levels. Samplingaand quantization time or space quantization samples in fixed amount of ence can be carried out in either order; Figure 2.3 shows we will generally assume that rate. Similarly, a signal being ÊสÑั­Þญ­ÞญÒา³ณ first sampled and then quantized. In theissampling step, you see the levels – are sampling quantization quantizedapisake@gmail.com................. Ex Libris – the quantization analogue continuous signal reduced to a sequence of equally spaced values; in the quantization step, some of these values are chopped off so that every that digital One of the great advantages one lies on one of the lines defining the allowed levels. stems from the fact that on analogue ones those at the quantization levels – are valid These processes are normally carried out by special hardware devices, 16
  • 34. 22 F U N DA M E N TA L S not usually distinguishing between time-varying and space-varying bit of sig analog When we have a continuously varying sign measu Figure 2.2. An analogue signal In multimedia, we encounter values of several kinds that change continuously, either the value we measure, in Figure 2.2, both because ÊสÑั­Þญ­ÞญÒา³ณ´ดÔิ¨จÔิ·ท∙ÑัÅล¨จÐะ we re Digitiz ation they originate in physical phenomena or because they exist in some can measure it, can vary infinitesimally. we analogue representation. can b ºบÃรÃรàเ·ท∙Òา»ป˜˜­ÞญËหÒาàเÃร×ื่Íอ§ง For example, the amplitude (volume) of a sound wave varies continuously over time, as does thewe would first s convert it to a digital signal, have amplitude of an electrical signal produced by a microphone in response to a sound wave. The noise contin a set of discrete values that could be represen quant colour of the image formed inside a camera by its lens varies continuously across the digitization – the process o image plane. of bits. That is, one li As you see, we may be measuring different quantities, and they mayanalogue to either over timeconsists of two be varying digital form – or over space (or perhaps, as in the case of moving pictures, both). For this general discussion, we discrete interva measure the signal’s value at These will follow tradition, and refer to the Figure value we are measuring, whatever it may be, as a “signal”, 2.2. An analogue signal ¡กÃรÐะºบÇว¹น¡กÒาÃร Analogue to Digital Converter (ADC) we restrict the value to a fixed set of levels. called not usually distinguishing between time-varying and space-varying signals. carried out in either order; Figure can be we w first sampled and then quantized. In where the s When we have a continuously varying signal, such as the one shown a sequence of e continuous signal reduced to sampl in Figure 2.2, both the value we measure, and the intervalssome of these values areS quantization step, at which rate. we can measure it, can vary infinitesimally. Inlies on one of the lines defining the qua one contrast, if we were to is allo convert it to a digital signal, we would have to restrict both of these to One a set of discrete values that could be represented in some fixed normally carried out b These processes are number analog of bits. That is, digitization – the processcalled analogue atosignal from of converting digital converters (ADCs those analogue to digital form – consists of two steps:not examine. We will only consider a we will sampling, when we over measure the signal’s value at discrete intervals, and quantization, whensuccessive inevit where the interval between samp Figure 2.2. An analogue signal Figure 2.3. Sampling and we restrict the value to a fixed set of levels. Samplingaand quantization time or space quantization samples in fixed amount of ence can be carried out in either order; Figure 2.3 shows we will generally assume that rate. Similarly, a signal being ÊสÑั­Þญ­ÞญÒา³ณ first sampled and then quantized. In theissampling step, you see the levels – are sampling quantization quantizedapisake@gmail.com................. Ex Libris – the quantization analogue continuous signal reduced to a sequence of equally spaced values; in the quantization step, some of these values are chopped off so that every that digital One of the great advantages one lies on one of the lines defining the allowed levels. stems from the fact that on analogue ones those at the quantization levels – are valid These processes are normally carried out by special hardware devices, 16
  • 35. measure the signal’s value at discrete intervals, and quantization, when Figure 2.2. An analogue signal we restrict the value to a fixed set of levels. Sampling and quantization can be carried out in either order; Figure 2.3 shows a signal being first sampled and then quantized. In the sampling step, you see the Digitization continuous signal reduced to a sequence of equally spaced values; in the quantization step, some of these values are chopped off so that every one lies on one of the lines defining the allowed levels. These processes are normally carried out by special hardware devices, called analogue to digital converters (ADCs), whose internal workings we will not examine. We will only consider the (almost invariable) case where the interval between successive samples is fixed; the number of samples in a fixed amount of time or space is known as the sampling rate. Similarly, we will generally assume that the levels to which a signal is quantized – the quantization levels – are equally spaced. One of the great advantages that digital representations have over analogue ones stems from the fact that only certain signal values – those at the quantization levels – are valid. If a signal is transmitted over a wire or stored on some physical medium such as magnetic tape, Figure 2.3. Sampling and inevitably some random noise is introduced, either because of interfer- quantization ence from stray magnetic fields, or simply because of the unavoidable Ex Libris quantization apisake@gmail.com...................................................... © MacAvon Media 17
  • 36. measure the signal’s value at discrete intervals, and quantization, when Figure 2.2. An analogue signal we restrict the value to a fixed set of levels. Sampling and quantization can be carried out in either order; Figure 2.3 shows a signal being first sampled and then quantized. In the sampling step, you see the Digitization continuous signal reduced to a sequence of equally spaced values; in the quantization step, some of these values are chopped off so that every one lies on one of the lines defining the allowed levels. These processes are normally carried out by special hardware devices, called analogue to digital converters (ADCs), whose internal workings information lost we will not examine. We will only consider the (almost invariable) case where the interval between successive samples is fixed; the number of samples in a fixed amount of time or space is known as the sampling rate. Similarly, we will generally assume that the levels to which a signal is quantized – the quantization levels – are equally spaced. One of the great advantages that digital representations have over analogue ones stems from the fact that only certain signal values – those at the quantization levels – are valid. If a signal is transmitted over a wire or stored on some physical medium such as magnetic tape, Figure 2.3. Sampling and inevitably some random noise is introduced, either because of interfer- quantization ence from stray magnetic fields, or simply because of the unavoidable Ex Libris quantization apisake@gmail.com...................................................... © MacAvon Media 17
  • 37. measure the signal’s value at discrete intervals, and quantization, when Figure 2.2. An analogue signal we restrict the value to a fixed set of levels. Sampling and quantization However, looking at Figure 2.3, you can see that some information must have been lost during can be carried out in either order; Figure 2.3 shows a signal being the digitization process. How can we claim that the digitized result is in any sense an accurate first sampled and then quantized. In the sampling step, you see the Digitization representation of the original analogue signal? The only meaningful measure of accuracy must be continuous signal reduced to a sequence of equally spaced values; in the how closely the original can be reconstructed. In order to reconstruct an analogue signal from a quantization step, some of these values are chopped off so that every set of samples, what we need to do, informally speaking, is decide what to put in the gaps between one lies on one of the lines defining the allowed levels. the samples. We can describe the reconstruction process precisely in mathematical terms, and that description provides an exact specification of the theoretically best are normally carried out by special hardware devices, These processes way to generate the required signal. In practice, we use methods that are simplercalled the theoretical optimum but (ADCs), whose internal workings than analogue to digital converters which can easily be implemented in fast hardware. information lost we will not examine. We will only consider the (almost invariable) case where the interval between successive samples is fixed; the number of One possibility is to “sample and hold”: that is, the value of a sample samples in a fixed amount of time or space is known as the sampling is used for the entire extent between it and the following sample. As generally assume that the levels to which a signal rate. Similarly, we will Figure 2.4 shows, this produces a signal with abrupt transitions,–which is quantized the quantization levels – are equally spaced. is not really a very good approximation to the original (shown dotted). However, when such a signal is passed to an output device – suchadvantages that digital representations have over One of the great as a monitor or a loudspeaker – for display or playback, the lags stems from the fact that only certain signal values – analogue ones and imperfections inherent in the physical device will those at thediscon- cause these quantization levels – are valid. If a signal is transmitted tinuities to be smoothed out, and the result actually approximates the on some physical medium such as magnetic tape, over a wire or stored theoretical optimum quite Sampling and Figure 2.3. well. (However, in the future, improvements inevitably some randomFigure is introduced, either because of interfer- noise 2.4. Sample and hold in the technology for the playback of sound and picture will stray magnetic fields, or simply because of the unavoidable quantization ence from demand reconstruction matching improvements in the signal.) sample & Ex Libris quantization hold © MacAvon Media apisake@gmail.com...................................................... Clearly, though, if the original samples were too far apart, any reconstruction is going to be reconstruction inadequate, because there may be details in the analogue signal that, as it were, slipped between samples. Figure 2.5 shows an example: the values of the consecutive samples taken at si and si+1 are identical, and there cannot possibly be any way of inferring the presence of the spike in between those two points from them – the signal could as easily have dipped down or stayed at 17
  • 38. Digitization 24 F U N DA M E N TA L S the same level. The effects of such undersampling on the way in which the reconstructed signal will be perceived depend on what the signal represents – sound, image, and so on – and whether it is time-varying or space-varying. We will describe specific instances later. Suffice it to say, for now, that they are manifested as distortions and artefacts which are always undesirable. si si+1 It is easy enough to see that if the sampling rate is too low some detail will be lost in the sampling. It is less easy to see whether there is ever Figure 2.5. Undersampling any rate at which we can be sure that the samples are close enough together to allow the signal to be accurately reconstructed, and if there is, how close is close enough. To get a better understanding of undersampling these matters, we need to consider an alternative way of representing a signal. Later, this will also help us to understand some related aspects of sound and image processing. You are probably familiar with the idea that a musical note played on an instrument consists of waveforms of several different frequencies added together. There is the fundamental, which is the pitch associated 18
  • 39. Digitization 24 F U N DA M E N TA L S ¡กÒาÃร undersampl the same level. The effects of such undersampling ingon¢ขthe §งáแËหin which Íอ way Åล‹‹§ง ¡กÓำàเ¹นÔิ´ด ¡ก‹‹Íอ perceived depend on the reconstructed signal will be ãใËหŒŒàเ¡กÔิ´ด»ป˜˜­ÞญËห what the signal r– construct ÊสÑั­Þญ represents esound, image, and so on – and whether is Òาitãใ¹นtime-varying ¡กÒาÃร ­Þญ instances later. Suffice Åล or space-varying. We will describe specific Òา³ณ·ท∙Õี่¨จÐะáแÊส´ด§ง it to ¼ผ say, for now, that they are manifested as distortions and artefacts which are always undesirable. si si+1 It is easy enough to see that if the sampling rate is too low some detail will be lost in the sampling. It is less easy to see whether there is ever Figure 2.5. Undersampling any rate at which we can be sure that the samples are close enough together to allow the signal to be accurately reconstructed, and if there is, how close is close enough. To get a better understanding of undersampling these matters, we need to consider an alternative way of representing a signal. Later, this will also help us to understand some related aspects of sound and image processing. You are probably familiar with the idea that a musical note played on an instrument consists of waveforms of several different frequencies added together. There is the fundamental, which is the pitch associated 18
  • 40. Digitization 24 F U N DA M E N TA L S ¡กÒาÃร undersampl the same level. The effects of such undersampling ingon¢ขthe §งáแËหin which Íอ way Åล‹‹§ง ¡กÓำàเ¹นÔิ´ด ¡ก‹‹Íอ perceived depend on the reconstructed signal will be ãใËหŒŒàเ¡กÔิ´ด»ป˜˜­ÞญËห what the signal r– construct ÊสÑั­Þญ represents esound, image, and so on – and whether is Òาitãใ¹นtime-varying ¡กÒาÃร ­Þญ instances later. Suffice Åล or space-varying. We will describe specific Òา³ณ·ท∙Õี่¨จÐะáแÊส´ด§ง it to ¼ผ say, for now, that they are manifested as distortions and artefacts which are always undesirable. si si+1 It is easy enough to see that if the sampling rate is too low some detail will be lost in the sampling. It is less easy to see whether there is ever Figure 2.5. Undersampling Íอ§ง output ¨จÐะ any rate at which we can be sure that the samples are close enough Ðะ¡กÑั¹น¤คØุ³ณÀภÒา¾พ¢ข together to allow the signal to be accurately reconstructed, and if àเ¾พ×ื่Íอ»ปÃร undersampling ªชŒŒÍอÑัµตÃรÒา¡กÒาÃร sa mpling ´ดŒŒÇวÂย there is, how close is close enough. To get a better understanding of µตŒŒÍอ§งãใ these matters, we need to consider an alternative way of representing «ซÖึ่§งàเ·ท∙‹‹Òา¡กÑัºบ 2f h a signal. Later, this will also help us to understand some related aspects Nyquist rate of sound and image processing. You are probably familiar with the idea that a musical note played on an instrument consists of waveforms of several different frequencies added together. There is the fundamental, which is the pitch associated 18
  • 41. µตÑัÇวÍอÂย‹‹Òา§งàเÊสÕีÂย§ง ·ท∙Õี่ sampling ´ดŒŒÇวÂยÍอ ÑัµตÃรÒา·ท∙Õี่àเËหÁมÒาÐะÊสÁม 19
  • 42. µตÑัÇวÍอÂย‹‹Òา§งàเÊสÕีÂย§ง ·ท∙Õี่ sampling ´ดŒŒÇวÂยÍอ ÑัµตÃรÒา·ท∙Õี่àเËหÁมÒาÐะÊสÁม 19
  • 44. ãใ¹นàเÃร×ื่Íอ§งÀภÒา¾พ ¡กÒาÃร undersampling ·ท∙ÓำãใËห ŒŒàเ¡กÔิ´ด¢ขÍอºบËหÂยÑั¡ก ËหÃร×ืÍอàเ¡กÔิ´ด Moiré pattern 21
  • 46. analogue to digital form – consists of two steps: sampling, when we measure the signal’s value at discrete intervals, and quantization, when Figure 2.2. An analogue signal we restrict the value to a fixed set of levels. Sampling and quantization can be carried out in either order; Figure 2.3 shows a signal being Digitiz ation first sampled and then quantized. In the sampling step, you see the continuous signal reduced to a sequence of equally spaced values; in the quantization step, some of these values are chopped off so that every one lies on one of the lines defining the allowed levels. These processes are normally carried out by special hardware devices, called analogue to digital converters (ADCs), whose internal workings we will not examine. We will only consider the (almost invariable) case where the interval between successive samples is fixed; the number of samples in a fixed amount of time or space is known as the sampling rate. Similarly, we will generally assume that the levels to which a signal is quantized – the quantization levels – are equally spaced. One of the great advantages that digital representations have over analogue ones stems from the fact that only certain signal values – those at the quantization levels – are valid. If a signal is transmitted over a wire or stored on some physical medium such as magnetic tape, Figure 2.3. Sampling and inevitably some random noise is introduced, either because of interfer- quantization ence from stray magnetic fields, or simply because of the unavoidable Ex Libris quantization apisake@gmail.com...................................................... © MacAvon Media 22
  • 47. analogue to digital form – consists of two steps: sampling, when we measure the signal’s value at discrete intervals, and quantization, when Figure 2.2. An analogue signal we restrict the value to a fixed set of levels. Sampling and quantization can be carried out in either order; Figure 2.3 shows a signal being Digitiz ation first sampled and then quantized. In the sampling step, you see the continuous signal reduced to a sequence of equally spaced values; in the quantization step, some of these values are chopped off so that every one lies on one of the lines defining the allowed levels. These processes are normally carried out by special hardware devices, called analogue to digital converters (ADCs), whose internal workings we will not examine. We will only consider the (almost invariable) case where the interval between successive samples is fixed; the number of samples in a fixed amount of time or space is known as the sampling rate. Similarly, we will generally assume that the levels to which a signal ãใ¹น¡กÃร³ณÕี·ท∙Õี่àเÃรÒาÁมÕี¤ค‹‹ÒาÃรÐะ is quantized – the quantization levels – are equally spaced. ´ดÑัºบãใ¹น¡กÒาÃร·ท∙Óำ quadvantagesathatodigital Õี่µต antiz ti n ·ท∙ representations have over One of the great ่Óำ¨จÐะàเ»ปšš¹นµตŒŒ¹นàเËหµตØุãใËหŒŒ àเ¡กÔิ´ด¤คÇวÒาÁมäไÁม‹‹ÊสÁมºบÙูÃร³ณ analogue ones stems from the fact that only certain signal values – ¢ขÍอ transmittedt those at the quantization levels – are valid. If a signal§งis out pu over a wire or stored on some physical medium such as magnetic tape, Figure 2.3. Sampling and inevitably some random noise is introduced, either because of interfer- quantization ence from stray magnetic fields, or simply because of the unavoidable Ex Libris quantization apisake@gmail.com...................................................... © MacAvon Media 22
  • 48. ¶ถŒŒÒาàเÃรÒาÁมÕี¤ค‹‹ÒาÃรÐะ´ดÑัºบãใ¹น¡ก ÒาÃร·ท∙Óำ quantization µต‹‹Òา §งæๆ¡กÑั¹น àเÃรÒา¨จÐะ äไ´ดŒŒ¤คØุ³ณÀภÒา¾พ¢ขÍอ§งÀภÒา¾พ ·ท∙Õี่µต‹‹Òา§ง¡กÑั¹น 23
  • 49. ¶ถŒŒÒาàเÃรÒาÁมÕี¤ค‹‹ÒาÃรÐะ´ดÑัºบãใ¹น¡ก ÒาÃร·ท∙Óำ quantization µต‹‹Òา §งæๆ¡กÑั¹น àเÃรÒา¨จÐะ äไ´ดŒŒ¤คØุ³ณÀภÒา¾พ¢ขÍอ§งÀภÒา¾พ ·ท∙Õี่µต‹‹Òา§ง¡กÑั¹น 23
  • 50. ¶ถŒŒÒาàเÃรÒาÁมÕี¤ค‹‹ÒาÃรÐะ´ดÑัºบãใ¹น¡ก ÒาÃร·ท∙Óำ quantization µต‹‹Òา §งæๆ¡กÑั¹น àเÃรÒา¨จÐะ äไ´ดŒŒ¤คØุ³ณÀภÒา¾พ¢ขÍอ§งÀภÒา¾พ ·ท∙Õี่µต‹‹Òา§ง¡กÑั¹น 23
  • 51. ¶ถŒŒÒาàเÃรÒาÁมÕี¤ค‹‹ÒาÃรÐะ´ดÑัºบãใ¹น¡ก ÒาÃร·ท∙Óำ quantization µต‹‹Òา §งæๆ¡กÑั¹น àเÃรÒา¨จÐะ äไ´ดŒŒ¤คØุ³ณÀภÒา¾พ¢ขÍอ§งÀภÒา¾พ ·ท∙Õี่µต‹‹Òา§ง¡กÑั¹น 23
  • 52. ¶ถŒŒÒาàเÃรÒาÁมÕี¤ค‹‹ÒาÃรÐะ´ดÑัºบãใ¹น¡ก ÒาÃร·ท∙Óำ quantization µต‹‹Òา §งæๆ¡กÑั¹น àเÃรÒา¨จÐะ äไ´ดŒŒ¤คØุ³ณÀภÒา¾พ¢ขÍอ§งÀภÒา¾พ ·ท∙Õี่µต‹‹Òา§ง¡กÑั¹น 23
  • 53. CHAPTER 2 D I G I TA L DATA Figure 2.12. Posterization between areas of those colours would be elided. The effect on black and white images can be seen clearly in Figure 2.11, which shows a gradient swatch using 256, 128, 64, 32, 16, 8, 4, and 2 different grey levels. The original gradient varies linearly from pure white to pure black, and as we reduce the number of different greys, you can see how values band together as they are quantized increasingly coarsely. In a less regular image, the effect manifests itself as posterization, 24
  • 56. Compression You will learn, as we examine the individual media types in detail, that a characteristic property Compression of media data is that it occupies a lot of storage. This means, in turn, that it needs a lot of band- width when it is transferred over networks. Storage and bandwidth are limited resources, so the high demands of media data can pose a problem. The common response to this problem is to apply some form of compression, which means any operation that can be performed on data to reduce the amount of storage required to represent it. If data has been compressed, an inverse decompression operation will be required to restore it to a form in which it can be displayed or used. Software that performs compression and decompression is often called a codec (short for compressor/decompressor), especially in the context of video and audio. Compression algorithms can be divided into two classes: lossless and lossy. A lossless algorithm has the property that it is always possible to original data decompress data that has been compressed and retrieve an exact copy of the original data, as indicated in Figure 2.13. Any compression algo- rithm that is not lossless is lossy, which means that some data has been compress discarded in the compression process and cannot be restored, so that the decompressed data is only an approximation to the original, as shown in Figure 2.14. The discarded data will represent information that is decompress not significant, and lossy algorithms which are in common use do a remarkable job at preserving the quality of images, video and sound, compressed data even though a considerable amount of data has been discarded. Lossless Figure 2.13. Lossless compression algorithms are generally less effective than lossy ones, so for most multi- media applications some lossy compression will be used. However, for text the loss of even a single bit of information would be significant, so there is no such thing as lossy text compression. It may not be apparent that any sort of data can be compressed at all without loss. If no informa- tion is being discarded, how can space be saved? In the case of text, lossless compression works 26
  • 57. 2 Compression CHAPTER DIGITAL DATA 31 You will learn, as we examine the individual media types in detail, that a characteristic property Compression of media data is that it occupies a lot of storage. This means, in turn, that it needs a lot of band- width when it is transferred over networks. Storage and bandwidth are limited resources, so the with directly, so storage schemes which make less than optimal use of the available bits are usedhigh demands of instead. data can pose a problem. The common response to this problem is to most of the time media original data apply some form of compression, which means any operation that can be performed on data to Lossless and lossy compression arethe amount separate techniques. Mostrepresent it. If data has been compressed, an inverse reduce not entirely of storage required to lossy algorithms make use of some lossless technique as part required to restore it to a form in which it can be displayed or decompression operation will be of the total compression process. Generally,Software that performs compression and decompression is often called a codec (short for used. once insignificant information has been compress discarded, the resulting data is more amenable to lossless compression. context of video and audio. compressor/decompressor), especially in the This is particularly true in the case of image compression, as we will explain in Chapter 4. Compression algorithms can be divided into two classes: lossless and lossy. A lossless algorithm hascompressed datathat it is always possible to the property Ideally, lossy compression will data be applied atdecompresspossible original only the latest data that has been compressed and retrieve an exact copy stage in the preparation of the media for delivery. Any processing that as indicated in Figure 2.13. Any compression algo- of the original data, decompress is required should be done on uncompressed or losslesslythat is not lossless is lossy, which means that some data has been rithm compressed data whenever possible. There are two reasons for this. When data is compress discarded in the compression process and cannot be restored, so that the lossily compressed the lost information can never be retrieved, which decompressed data is only an approximation to the original, as shown means that if data is repeatedly compressed and decompressed in this in Figure 2.14. The discarded data will represent information that is way its quality will gradually deteriorate. Additionally, some processing decompress not significant, and lossy algorithms which are in common use do a operations can exaggerate the loss of quality caused by some types of remarkable uncom- preserving the qualitydata images, video and sound, compression. For both these reasons, it is best to work with job at decompressed of compressed data pressed data, and only compress it for final delivery. even though a considerable amount of data has been discarded. Lossless Figure 2.13. Lossless compression algorithms are generally less effective than lossy ones, so for most multi- media applications Figure 2.14. Lossy compression This ideal cannot always be achieved.Video data is usually compressed in some lossy compression will be used. However, for the camera, and although text the loss of even a produce uncompressed digital still cameras that single bit of information would be significant, so there is no such thing as lossy text compression. images are increasingly common, many cheaper cameras will compress photographs fairly severely when the pictures are being taken. It may be necessary for a photographer to allow the camera to compress images, in order to fit thembe apparent that any sort of data these circumstances, data without loss. If no informa- It may not onto the available storage. Under can be compressed at all should be decompressed tion isand an uncompressed version should be used In the case of text, lossless compression works once, being discarded, how can space be saved? for working. This 26
  • 58. 27
  • 59. 27
  • 60. 27
  • 61. 27