<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DZone Snippets: matlab code</title>
    <link>http://snippets.dzone.com/posts</link>
    <pubDate>Sun, 12 Oct 2008 19:20:02 GMT</pubDate>
    <description>DZone Snippets: matlab code</description>
    <item>
      <title>Matlab - showBitPlanes</title>
      <link>http://snippets.dzone.com/posts/show/2969</link>
      <description>&lt;code&gt;&lt;br /&gt;% Ritorna i Bit Plabes dell'immagine a toni di grigio&lt;br /&gt;&lt;br /&gt;function showBitPlanes(img)&lt;br /&gt;&lt;br /&gt;    imgGray = double( rgb2gray(img) );&lt;br /&gt;    titleString = 'bit planes ';&lt;br /&gt;    &lt;br /&gt;    % MSB ... LSB&lt;br /&gt;    k = 128;&lt;br /&gt;    &lt;br /&gt;    for b=1:8&lt;br /&gt;        &lt;br /&gt;        subplot(2, 4, b);&lt;br /&gt;        imshow( (bitand(imgGray, k) / k) * 255 ); % Fa un and dei bit&lt;br /&gt;        title([titleString int2str(b-1)]);&lt;br /&gt;        k = k/2; % Shifta di 2 i bit&lt;br /&gt;        &lt;br /&gt;    end;&lt;br /&gt;    &lt;br /&gt;return;&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Sun, 05 Nov 2006 00:16:40 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/2969</guid>
      <author>whitetiger ()</author>
    </item>
    <item>
      <title>Matlab - DoubleFlip Image</title>
      <link>http://snippets.dzone.com/posts/show/2951</link>
      <description>// Flip Width &amp; Height&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;function flipIMG=DoubleFlip(img)&lt;br /&gt;&lt;br /&gt;    tic&lt;br /&gt;&lt;br /&gt;    flipIMG = img([1:end/2, end/2:-1:1], [1:end/2, end/2:-1:1], :);&lt;br /&gt;&lt;br /&gt;    toc&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Thu, 02 Nov 2006 01:08:50 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/2951</guid>
      <author>whitetiger ()</author>
    </item>
  </channel>
</rss>
