<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <title>eopeak</title>
  
  <subtitle>欢迎来到我的博客</subtitle>
  <link href="https://eopeak.github.io/atom.xml" rel="self"/>
  
  <link href="https://eopeak.github.io/"/>
  <updated>2024-01-24T06:23:03.179Z</updated>
  <id>https://eopeak.github.io/</id>
  
  <author>
    <name>eopeak</name>
    
  </author>
  
  <generator uri="https://hexo.io/">Hexo</generator>
  
  <entry>
    <title>图像压缩学习</title>
    <link href="https://eopeak.github.io/2024/01/22/tu-xiang-ya-suo-xue-xi/"/>
    <id>https://eopeak.github.io/2024/01/22/tu-xiang-ya-suo-xue-xi/</id>
    <published>2024-01-22T04:10:50.000Z</published>
    <updated>2024-01-24T06:23:03.179Z</updated>
    
    <content type="html"><![CDATA[<h1 id="图像压缩算法"><a href="#图像压缩算法" class="headerlink" title="图像压缩算法"></a>图像压缩算法</h1><h2 id="图像压缩简介"><a href="#图像压缩简介" class="headerlink" title="图像压缩简介"></a>图像压缩简介</h2><p>小波变换的一般模型</p><p><img src="C:\Users\12856\AppData\Roaming\marktext\images\2024-01-24-13-58-34-image.png"></p><p>典型的方法: EZW, SPIHT, EBCOT</p><h3 id="图像边界处理"><a href="#图像边界处理" class="headerlink" title="图像边界处理"></a>图像边界处理</h3><p>图像小波分解是将图像数据与滤波器系数进行线性卷积运算，使滤波器的输出样点数大于输入的样点性卷积运算，使滤波器的输出样点数大于输入的样点数；但从子带压缩编码的效率看，是希望各子图信号的样点数总数不大于原始图像信号的样点数，且子图信号应能完全重构其原始信号信号应能完全重构其原始信号。常用的方法是对信号常用的方法是对信号进行边界延拓。</p><h3 id="小波图像编码"><a href="#小波图像编码" class="headerlink" title="小波图像编码"></a>小波图像编码</h3><p>不同分辨率子带之间数据的相关性.</p><img title="" src="file:///C:/Users/12856/AppData/Roaming/marktext/images/2024-01-24-14-04-48-image.png" alt="" width="290"><h3 id="小波系数的零树特性"><a href="#小波系数的零树特性" class="headerlink" title="小波系数的零树特性"></a>小波系数的零树特性</h3><p>对于给定的阈值T，若小波系数x满足|x|&lt;=T，则称x关于T是不重要的</p><p>系数。</p><p>实验统计表明，若一个小波系数关于T是不重要的，则它的所有子孙</p><p>系数关于T是不重要系数的概率在98%以上[该结论仅供参考]</p><h3 id="小波零树编码"><a href="#小波零树编码" class="headerlink" title="小波零树编码"></a>小波零树编码</h3><p>1992，Lewis and Knowles 利用小波树中各级子带系数之间的相似性，最早提出了小波零树编码算法。该算法将量化后系数为零的系数的子孙系数都指定为零。</p><h2 id="嵌入式零树算法"><a href="#嵌入式零树算法" class="headerlink" title="嵌入式零树算法"></a>嵌入式零树算法</h2><p>基本概念：重要系数，不重要系数(相对某个阈值) P  N    T     Z（2比特标识符）</p><p>扫描顺序：从低精度到高精度</p><p>初始系数表</p><img src="file:///C:/Users/12856/AppData/Roaming/marktext/images/2024-01-24-14-16-16-image.png" title="" alt="" width="229"><h3 id="编码过程"><a href="#编码过程" class="headerlink" title="编码过程"></a>编码过程</h3><h4 id="选择阈值"><a href="#选择阈值" class="headerlink" title="选择阈值"></a>选择阈值</h4><p><img src="C:\Users\12856\AppData\Roaming\marktext\images\2024-01-24-14-10-53-image.png"></p><p>每一次阈值除二</p><h3 id="主扫描"><a href="#主扫描" class="headerlink" title="主扫描"></a>主扫描</h3><p><img src="C:\Users\12856\AppData\Roaming\marktext\images\2024-01-24-14-20-44-image.png"></p><p>每轮扫描后，将P N，输出为0，Z T暂时不变</p><h3 id="辅扫描"><a href="#辅扫描" class="headerlink" title="辅扫描"></a>辅扫描</h3><p>对正，负系数的幅值进行编码</p><p><img src="C:\Users\12856\AppData\Roaming\marktext\images\2024-01-24-14-13-30-image.png"></p><h3 id="输出编码信息"><a href="#输出编码信息" class="headerlink" title="输出编码信息"></a>输出编码信息</h3><p>包括两类，一类是本轮完成的信息，一类是下次扫描的信息，即将上一轮P N置0后得到的新的系数表与上一轮的阈值的一半，进行处理。</p><img src="file:///C:/Users/12856/AppData/Roaming/marktext/images/2024-01-24-14-21-19-image.png" title="" alt="" width="445"><p>新一轮，如图</p><p><img src="C:\Users\12856\AppData\Roaming\marktext\images\2024-01-24-14-15-48-image.png"></p><p>之后得到输出结果</p><p><img src="C:\Users\12856\AppData\Roaming\marktext\images\2024-01-24-14-21-50-image.png"></p><p>EZW编码与位平面的关系</p><p><img src="C:\Users\12856\AppData\Roaming\marktext\images\2024-01-24-14-17-29-image.png"></p><p><img src="C:\Users\12856\AppData\Roaming\marktext\images\2024-01-24-14-18-20-image.png"></p><p>接下来是解码</p><p><img src="C:\Users\12856\AppData\Roaming\marktext\images\2024-01-24-14-19-13-image.png"></p><p><img src="C:\Users\12856\AppData\Roaming\marktext\images\2024-01-24-14-19-27-image.png"></p><p><img src="C:\Users\12856\AppData\Roaming\marktext\images\2024-01-24-14-19-50-image.png"></p><h1 id="SPIHT编码"><a href="#SPIHT编码" class="headerlink" title="SPIHT编码"></a>SPIHT编码</h1><h1 id="EBCOT编码"><a href="#EBCOT编码" class="headerlink" title="EBCOT编码"></a>EBCOT编码</h1>]]></content>
    
    
      
      
    <summary type="html">&lt;h1 id=&quot;图像压缩算法&quot;&gt;&lt;a href=&quot;#图像压缩算法&quot; class=&quot;headerlink&quot; title=&quot;图像压缩算法&quot;&gt;&lt;/a&gt;图像压缩算法&lt;/h1&gt;&lt;h2 id=&quot;图像压缩简介&quot;&gt;&lt;a href=&quot;#图像压缩简介&quot; class=&quot;headerlink&quot; titl</summary>
      
    
    
    
    
  </entry>
  
  <entry>
    <title>小波学习</title>
    <link href="https://eopeak.github.io/2024/01/22/xiao-bo-xue-xi/"/>
    <id>https://eopeak.github.io/2024/01/22/xiao-bo-xue-xi/</id>
    <published>2024-01-22T04:10:31.000Z</published>
    <updated>2024-01-22T04:10:31.688Z</updated>
    
    
    
    
    
  </entry>
  
  <entry>
    <title>数组刷题</title>
    <link href="https://eopeak.github.io/2024/01/22/shu-zu-shua-ti/"/>
    <id>https://eopeak.github.io/2024/01/22/shu-zu-shua-ti/</id>
    <published>2024-01-22T03:59:48.000Z</published>
    <updated>2024-01-22T04:03:56.842Z</updated>
    
    <content type="html"><![CDATA[<h1 id="leetcode刷题第一天"><a href="#leetcode刷题第一天" class="headerlink" title="leetcode刷题第一天"></a>leetcode刷题第一天</h1><h2 id="数组类题目"><a href="#数组类题目" class="headerlink" title="数组类题目"></a>数组类题目</h2><h3 id="1两数之和"><a href="#1两数之和" class="headerlink" title="1两数之和"></a>1两数之和</h3><h4 id="题目"><a href="#题目" class="headerlink" title="题目"></a>题目</h4><p>给定一个整数数组 nums&nbsp;和一个目标值 target，请你在该数组中找出和为目标值的那&nbsp;两个&nbsp;整数，并返回他们的数组下标。</p><p>你可以假设每种输入只会对应一个答案。但是，数组中同一个元素不能使用两遍。</p><p><strong>示例:</strong></p><p>给定 nums = [2, 7, 11, 15], target = 9</p><p>因为 nums[0] + nums[1] = 2 + 7 = 9</p><p>所以返回 [0, 1]</p><h4 id="思路"><a href="#思路" class="headerlink" title="思路"></a>思路</h4><h5 id="第一种暴力求解"><a href="#第一种暴力求解" class="headerlink" title="第一种暴力求解"></a>第一种暴力求解</h5><p>首先对数组元素遍历，第一遍每一次得到一个数，之后进行第二次遍历，将剩下的数字与每一次第一遍的数进行相加，与目标值进行比较，得到即返回数组下标值</p><p>可修改处：</p><p>1.若每种输入不只会对应一个答案，修改方案如何？</p><p>2.把两数之和扩展为n数之和，如何进行优化？</p><p>第一种暴力求解代码</p><p>C语言版</p><figure class="highlight c"><table><tbody><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"></span><br></pre></td></tr></tbody></table></figure><h5 id="第二种先排序再查找"><a href="#第二种先排序再查找" class="headerlink" title="第二种先排序再查找"></a>第二种先排序再查找</h5><p>可解决第一个问题，处理多答案的方案</p><p>首先复习一下排序的知识</p><p>排序算法包括内部排序，外部排序</p><table><thead><tr><th>插入</th><th>交换</th><th>选择</th><th>其他</th><th>外部</th></tr></thead><tbody><tr><td>直接插入</td><td>冒泡</td><td>简单选择</td><td>归并</td><td>多路归并</td></tr><tr><td>折半插入</td><td>快速</td><td>堆排序</td><td>基数</td><td></td></tr><tr><td>希尔</td><td></td><td></td><td></td><td></td></tr></tbody></table><p>之后是查找的知识</p><p>1.顺序查找法</p><p>2.分块查找发</p><p>3.折半查找法</p><p>4.树形查找</p><p>5.b树</p><p>6.哈希表</p><h5 id="第三种哈希表"><a href="#第三种哈希表" class="headerlink" title="第三种哈希表"></a>第三种哈希表</h5><p>哈希表知识学习</p>]]></content>
    
    
      
      
    <summary type="html">&lt;h1 id=&quot;leetcode刷题第一天&quot;&gt;&lt;a href=&quot;#leetcode刷题第一天&quot; class=&quot;headerlink&quot; title=&quot;leetcode刷题第一天&quot;&gt;&lt;/a&gt;leetcode刷题第一天&lt;/h1&gt;&lt;h2 id=&quot;数组类题目&quot;&gt;&lt;a href=&quot;#数组类题</summary>
      
    
    
    
    
  </entry>
  
  <entry>
    <title>my-first-blog</title>
    <link href="https://eopeak.github.io/2024/01/16/my-first-blog/"/>
    <id>https://eopeak.github.io/2024/01/16/my-first-blog/</id>
    <published>2024-01-16T05:58:15.000Z</published>
    <updated>2024-01-16T06:00:44.201Z</updated>
    
    <content type="html"><![CDATA[<p>这是我的第一个博客</p>]]></content>
    
    
      
      
    <summary type="html">&lt;p&gt;这是我的第一个博客&lt;/p&gt;
</summary>
      
    
    
    
    
  </entry>
  
  <entry>
    <title>Hello World</title>
    <link href="https://eopeak.github.io/2024/01/16/hello-world/"/>
    <id>https://eopeak.github.io/2024/01/16/hello-world/</id>
    <published>2024-01-16T05:17:20.199Z</published>
    <updated>2024-01-20T02:50:27.034Z</updated>
    
    <content type="html"><![CDATA[<p>Welcome to <a href="https://hexo.io/">Hexo</a>! This is your very first post. Check <a href="https://hexo.io/docs/">documentation</a> for more info. If you get any problems when using Hexo, you can find the answer in <a href="https://hexo.io/docs/troubleshooting.html">troubleshooting</a> or you can ask me on <a href="https://github.com/hexojs/hexo/issues">GitHub</a>.</p><h2 id="Quick-Start"><a href="#Quick-Start" class="headerlink" title="Quick Start"></a>Quick Start</h2><h3 id="Create-a-new-post"><a href="#Create-a-new-post" class="headerlink" title="Create a new post"></a>Create a new post</h3><figure class="highlight bash"><table><tbody><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo new <span class="string">"My New Post"</span></span><br></pre></td></tr></tbody></table></figure><p>More info: <a href="https://hexo.io/docs/writing.html">Writing</a></p><h3 id="Run-server"><a href="#Run-server" class="headerlink" title="Run server"></a>Run server</h3><figure class="highlight bash"><table><tbody><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo server</span><br></pre></td></tr></tbody></table></figure><p>More info: <a href="https://hexo.io/docs/server.html">Server</a></p><h3 id="Generate-static-files"><a href="#Generate-static-files" class="headerlink" title="Generate static files"></a>Generate static files</h3><figure class="highlight bash"><table><tbody><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo generate</span><br></pre></td></tr></tbody></table></figure><p>More info: <a href="https://hexo.io/docs/generating.html">Generating</a></p><h3 id="Deploy-to-remote-sites"><a href="#Deploy-to-remote-sites" class="headerlink" title="Deploy to remote sites"></a>Deploy to remote sites</h3><figure class="highlight bash"><table><tbody><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo deploy</span><br></pre></td></tr></tbody></table></figure><p>More info: <a href="https://hexo.io/docs/one-command-deployment.html">Deployment</a></p>]]></content>
    
    
      
      
    <summary type="html">&lt;p&gt;Welcome to &lt;a href=&quot;https://hexo.io/&quot;&gt;Hexo&lt;/a&gt;! This is your very first post. Check &lt;a href=&quot;https://hexo.io/docs/&quot;&gt;documentation&lt;/a&gt; for</summary>
      
    
    
    
    
  </entry>
  
</feed>
