convert image pixels from square to hexagonal
<p>How can i convert the pixels of an image from square to hexagonal? Doing so i need to extract the rgb values from each hex pixel. Is there any library or function that simplify this process?</p>

<p>Example : Mona Lisa Hexagonal Pixel Shape </p>

<p><a href="http://i.stack.imgur.com/o3isE.jpg" rel="nofollow"><img src="http://i.stack.imgur.com/o3isE.jpg" alt="enter image description here"></a>
Nothing tried.  Thanks</p>

<p>First of all, I think there is no such a function that is ready for you to perform the lattice conversion, thus you may need to implement the conversion process by yourself.</p>

<p>The lattice conversion is a re-sampling process, and it is also a interpolation process. There are many algorithms that have been developed in the hexagonal image processing papers.</p>

<p>Please see the example for you:
<a href="http://i.stack.imgur.com/AcPR3.png" rel="nofollow"><img src="http://i.stack.imgur.com/AcPR3.png" alt="enter image description here"></a>
<a href="http://i.stack.imgur.com/cXzPZ.png" rel="nofollow"><img src="http://i.stack.imgur.com/cXzPZ.png" alt="enter image description here"></a></p>

python opencv numpy image-processing