<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/136162</link>
    <title>MATLAB Central Newsreader - Dummies guide to DCT</title>
    <description>Feed for thread: Dummies guide to DCT</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Thu, 16 Nov 2006 17:15:00 -0500</pubDate>
      <title>Dummies guide to DCT</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/136162#342986</link>
      <author>James Turner</author>
      <description>Hi,&lt;br&gt;
&lt;br&gt;
I was wondering if someone could explain to me the Discrete Cosine&lt;br&gt;
Transform, in as simple as possible English. I have attempted to&lt;br&gt;
read many webpages and books on the transform but this is the first&lt;br&gt;
time I have ever touched upon watermarking and malipulating images,&lt;br&gt;
and I have no previous knowledge of ANY form of watermarking or&lt;br&gt;
manipulating images. I really can't get my head around the process&lt;br&gt;
of the DCT.&lt;br&gt;
&lt;br&gt;
Any form of explanation that I may understand over my other sources&lt;br&gt;
would be great (for example, I have tried reading &amp;lt;&lt;a href=&quot;http://en.wikipedia.org/wiki/Discrete_cosine_transform&quot;&gt;http://en.wikipedia.org/wiki/Discrete_cosine_transform&lt;/a&gt;&amp;gt;&lt;br&gt;
ut I just can't make sense of it).&lt;br&gt;
&lt;br&gt;
Many thanks,&lt;br&gt;
&lt;br&gt;
James</description>
    </item>
    <item>
      <pubDate>Thu, 16 Nov 2006 14:29:07 -0500</pubDate>
      <title>Re: Dummies guide to DCT</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/136162#342990</link>
      <author>sturlamolden</author>
      <description>&lt;br&gt;
James Turner wrote:&lt;br&gt;
&lt;br&gt;
&amp;gt; I was wondering if someone could explain to me the Discrete Cosine&lt;br&gt;
&amp;gt; Transform, in as simple as possible English.&lt;br&gt;
&lt;br&gt;
In the DCT the signal is decomposed into a sum of cosines, as opposed&lt;br&gt;
to the Discrete Fourier transform (DFT) where the signal is decomposed&lt;br&gt;
into a sum of sines and cosines.</description>
    </item>
    <item>
      <pubDate>Thu, 16 Nov 2006 17:42:10 -0500</pubDate>
      <title>Re: Dummies guide to DCT</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/136162#342993</link>
      <author>Greg von Winckel</author>
      <description>James Turner wrote:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Hi,&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; I was wondering if someone could explain to me the Discrete Cosine&lt;br&gt;
&amp;gt; Transform, in as simple as possible English. I have attempted to&lt;br&gt;
&amp;gt; read many webpages and books on the transform but this is the first&lt;br&gt;
&amp;gt; time I have ever touched upon watermarking and malipulating images,&lt;br&gt;
&amp;gt; and I have no previous knowledge of ANY form of watermarking or&lt;br&gt;
&amp;gt; manipulating images. I really can't get my head around the process&lt;br&gt;
&amp;gt; of the DCT.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Any form of explanation that I may understand over my other sources&lt;br&gt;
&amp;gt; would be great (for example, I have tried reading &amp;lt;&lt;a href=&quot;http://en.wikipedia.org/wiki/Discrete_cosine_transform&quot;&gt;http://en.wikipedia.org/wiki/Discrete_cosine_transform&lt;/a&gt;&amp;gt;&lt;br&gt;
&amp;gt; ut I just can't make sense of it).&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Many thanks,&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; James&lt;br&gt;
&amp;nbsp;&amp;nbsp;&lt;br&gt;
&lt;br&gt;
You might want to take a look at my code for transforming between&lt;br&gt;
Chebyshev polynomials and pointspace values. It is effectively a DCT.&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;lt;&lt;a href=&quot;http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=4591&amp;objectType=file&quot;&gt;http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=4591&amp;objectType=file&lt;/a&gt;&amp;gt;&lt;br&gt;
&lt;br&gt;
HTH,&lt;br&gt;
&lt;br&gt;
Greg</description>
    </item>
    <item>
      <pubDate>Thu, 16 Nov 2006 18:35:30 -0500</pubDate>
      <title>Re: Dummies guide to DCT</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/136162#342999</link>
      <author>James Turner</author>
      <description>sturlamolden wrote:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; James Turner wrote:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; I was wondering if someone could explain to me the Discrete&lt;br&gt;
&amp;gt; Cosine&lt;br&gt;
&amp;gt;&amp;gt; Transform, in as simple as possible English.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; In the DCT the signal is decomposed into a sum of cosines, as&lt;br&gt;
&amp;gt; opposed&lt;br&gt;
&amp;gt; to the Discrete Fourier transform (DFT) where the signal is&lt;br&gt;
&amp;gt; decomposed&lt;br&gt;
&amp;gt; into a sum of sines and cosines.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&lt;br&gt;
&lt;br&gt;
Thanks for the respone guys, but I think I need even more reading. I&lt;br&gt;
am lost at &quot;the signal is decomposed into a sum of cosines&quot;. I don't&lt;br&gt;
understand what a sum of cosines is! Is there not a way of explaining&lt;br&gt;
DCT assuming that a person ONLY understands what a digital image is&lt;br&gt;
(i.e. a collection of pixels described using bits)? I'm talking&lt;br&gt;
simple so a kid could understand it kind of stuff!</description>
    </item>
    <item>
      <pubDate>Thu, 16 Nov 2006 18:46:18 -0500</pubDate>
      <title>Re: Dummies guide to DCT</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/136162#343002</link>
      <author>Ken Davis</author>
      <description>&quot;James Turner&quot; &amp;lt;james_turner_81@hotmail.co.uk&amp;gt; wrote in message &lt;br&gt;
news:ef462d4.2@webcrossing.raydaftYaTP...&lt;br&gt;
&amp;gt; sturlamolden wrote:&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; James Turner wrote:&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt; I was wondering if someone could explain to me the Discrete&lt;br&gt;
&amp;gt;&amp;gt; Cosine&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt; Transform, in as simple as possible English.&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; In the DCT the signal is decomposed into a sum of cosines, as&lt;br&gt;
&amp;gt;&amp;gt; opposed&lt;br&gt;
&amp;gt;&amp;gt; to the Discrete Fourier transform (DFT) where the signal is&lt;br&gt;
&amp;gt;&amp;gt; decomposed&lt;br&gt;
&amp;gt;&amp;gt; into a sum of sines and cosines.&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Thanks for the respone guys, but I think I need even more reading. I&lt;br&gt;
&amp;gt; am lost at &quot;the signal is decomposed into a sum of cosines&quot;. I don't&lt;br&gt;
&amp;gt; understand what a sum of cosines is! Is there not a way of explaining&lt;br&gt;
&amp;gt; DCT assuming that a person ONLY understands what a digital image is&lt;br&gt;
&amp;gt; (i.e. a collection of pixels described using bits)? I'm talking&lt;br&gt;
&amp;gt; simple so a kid could understand it kind of stuff!&lt;br&gt;
&lt;br&gt;
I fear you may be in over your head. You really need a little linear algebra &lt;br&gt;
and maybe a little signal/image processing to understand this stuff.&lt;br&gt;
&lt;br&gt;
That said, the short answer is that you decompose your image into a weighted &lt;br&gt;
sum of &quot;primitive&quot; images. These primitive images are just sinusoidal waves &lt;br&gt;
of different frequencies in both the x and y directions. When you do a DCT &lt;br&gt;
you are calculating what the values of the weights are. You can transmit the &lt;br&gt;
complete set of weights (or a selected subset of them) and reconstruct the &lt;br&gt;
original image by applying the weights to the appropriate primitive images &lt;br&gt;
and adding them all together.&lt;br&gt;
&lt;br&gt;
When you encode information into an image by perturbing the weights, the &lt;br&gt;
effect of the perturbation may be very difficult to see in the reconstructed &lt;br&gt;
image. </description>
    </item>
    <item>
      <pubDate>Thu, 16 Nov 2006 15:56:56 -0500</pubDate>
      <title>Re: Dummies guide to DCT</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/136162#343004</link>
      <author>Rune Allnor</author>
      <description>&lt;br&gt;
James Turner skrev:&lt;br&gt;
&amp;gt; sturlamolden wrote:&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; James Turner wrote:&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; I was wondering if someone could explain to me the Discrete&lt;br&gt;
&amp;gt; &amp;gt; Cosine&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; Transform, in as simple as possible English.&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; In the DCT the signal is decomposed into a sum of cosines, as&lt;br&gt;
&amp;gt; &amp;gt; opposed&lt;br&gt;
&amp;gt; &amp;gt; to the Discrete Fourier transform (DFT) where the signal is&lt;br&gt;
&amp;gt; &amp;gt; decomposed&lt;br&gt;
&amp;gt; &amp;gt; into a sum of sines and cosines.&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Thanks for the respone guys, but I think I need even more reading. I&lt;br&gt;
&amp;gt; am lost at &quot;the signal is decomposed into a sum of cosines&quot;. I don't&lt;br&gt;
&amp;gt; understand what a sum of cosines is! Is there not a way of explaining&lt;br&gt;
&amp;gt; DCT assuming that a person ONLY understands what a digital image is&lt;br&gt;
&amp;gt; (i.e. a collection of pixels described using bits)? I'm talking&lt;br&gt;
&amp;gt; simple so a kid could understand it kind of stuff!&lt;br&gt;
&lt;br&gt;
Why do you expect anybody to be able to do that? The DCT is&lt;br&gt;
usually taught in the 3rd or 4th year in university, after at least&lt;br&gt;
two years priming with basic maths and some intro image&lt;br&gt;
processing and DSP courses.&lt;br&gt;
&lt;br&gt;
There is a reason why the DCT is not taught to kids.&lt;br&gt;
&lt;br&gt;
Rune</description>
    </item>
    <item>
      <pubDate>Fri, 17 Nov 2006 04:40:02 -0500</pubDate>
      <title>Re: Dummies guide to DCT</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/136162#343052</link>
      <author>James Turner</author>
      <description>Ken Davis wrote:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &quot;James Turner&quot; &amp;lt;james_turner_81@hotmail.co.uk&amp;gt; wrote in&lt;br&gt;
message&lt;br&gt;
&amp;gt; news:ef462d4.2@webcrossing.raydaftYaTP...&lt;br&gt;
&amp;gt;&amp;gt; sturlamolden wrote:&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt; James Turner wrote:&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt;&amp;gt; I was wondering if someone could explain to me the&lt;br&gt;
Discrete&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt; Cosine&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt;&amp;gt; Transform, in as simple as possible English.&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt; In the DCT the signal is decomposed into a sum of cosines,&lt;br&gt;
as&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt; opposed&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt; to the Discrete Fourier transform (DFT) where the signal is&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt; decomposed&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt; into a sum of sines and cosines.&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; Thanks for the respone guys, but I think I need even more&lt;br&gt;
&amp;gt; reading. I&lt;br&gt;
&amp;gt;&amp;gt; am lost at &quot;the signal is decomposed into a sum of cosines&quot;. I&lt;br&gt;
&amp;gt; don't&lt;br&gt;
&amp;gt;&amp;gt; understand what a sum of cosines is! Is there not a way of&lt;br&gt;
&amp;gt; explaining&lt;br&gt;
&amp;gt;&amp;gt; DCT assuming that a person ONLY understands what a digital&lt;br&gt;
image&lt;br&gt;
&amp;gt; is&lt;br&gt;
&amp;gt;&amp;gt; (i.e. a collection of pixels described using bits)? I'm talking&lt;br&gt;
&amp;gt;&amp;gt; simple so a kid could understand it kind of stuff!&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; I fear you may be in over your head. You really need a little&lt;br&gt;
&amp;gt; linear algebra&lt;br&gt;
&amp;gt; and maybe a little signal/image processing to understand this&lt;br&gt;
&amp;gt; stuff.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; That said, the short answer is that you decompose your image into a&lt;br&gt;
&amp;gt; weighted&lt;br&gt;
&amp;gt; sum of &quot;primitive&quot; images. These primitive images are just&lt;br&gt;
&amp;gt; sinusoidal waves&lt;br&gt;
&amp;gt; of different frequencies in both the x and y directions. When you&lt;br&gt;
&amp;gt; do a DCT&lt;br&gt;
&amp;gt; you are calculating what the values of the weights are. You can&lt;br&gt;
&amp;gt; transmit the&lt;br&gt;
&amp;gt; complete set of weights (or a selected subset of them) and&lt;br&gt;
&amp;gt; reconstruct the&lt;br&gt;
&amp;gt; original image by applying the weights to the appropriate primitive&lt;br&gt;
&amp;gt; images&lt;br&gt;
&amp;gt; and adding them all together.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; When you encode information into an image by perturbing the&lt;br&gt;
&amp;gt; weights, the&lt;br&gt;
&amp;gt; effect of the perturbation may be very difficult to see in the&lt;br&gt;
&amp;gt; reconstructed&lt;br&gt;
&amp;gt; image.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&lt;br&gt;
&lt;br&gt;
Thank you for your helpful response Ken. Your explanation definitly&lt;br&gt;
helps, and you are right, I need to do more reading. I can't expect&lt;br&gt;
to understand the DCT straight out without understanding the basics&lt;br&gt;
:)&lt;br&gt;
&lt;br&gt;
Regards,&lt;br&gt;
&lt;br&gt;
James</description>
    </item>
  </channel>
</rss>

