&#39;key3&#39; } = ...;   # Assignment of Values to Hash Slice</code></pre>

<h2 id="A.-Separation-with-PDL">A. Separation with PDL</h2>

<p>In the example below we assign the RGB layers of the image to a Hash Slice. The <code>rgb()</code> function is doing it for us. Then we create a Hash Element named &quot;bit_plane&quot; and assign the bit planes (an array) of each color to the Hash Slice <code>(&#39;red&#39;,&#39;green&#39;,&#39;blue&#39;)</code>. This is done with the function <code>bit_plane()</code>