Popular recipes tagged "imaging"http://code.activestate.com/recipes/tags/imaging/2016-07-31T22:50:28-07:00ActiveState Code RecipesImage Projection Onto Sphere (Python)
2016-07-31T22:50:28-07:00FB36http://code.activestate.com/recipes/users/4172570/http://code.activestate.com/recipes/580695-image-projection-onto-sphere/
<p style="color: grey">
Python
recipe 580695
by <a href="/recipes/users/4172570/">FB36</a>
(<a href="/recipes/tags/graphics/">graphics</a>, <a href="/recipes/tags/image/">image</a>, <a href="/recipes/tags/images/">images</a>, <a href="/recipes/tags/image_processing/">image_processing</a>, <a href="/recipes/tags/imaging/">imaging</a>, <a href="/recipes/tags/math/">math</a>, <a href="/recipes/tags/mathematics/">mathematics</a>, <a href="/recipes/tags/pil/">pil</a>).
</p>
<p>Image projection onto sphere using Equirectangular map projection.</p>
<p>Download the test image from the Wikipedia page!</p>
Using pngcanvas, a pure Python PNG library (Python)
2014-01-15T22:45:11-08:00Vasudev Ramhttp://code.activestate.com/recipes/users/4173351/http://code.activestate.com/recipes/578811-using-pngcanvas-a-pure-python-png-library/
<p style="color: grey">
Python
recipe 578811
by <a href="/recipes/users/4173351/">Vasudev Ram</a>
(<a href="/recipes/tags/image_processing/">image_processing</a>, <a href="/recipes/tags/imaging/">imaging</a>, <a href="/recipes/tags/png/">png</a>, <a href="/recipes/tags/pngcanvas/">pngcanvas</a>, <a href="/recipes/tags/python/">python</a>).
</p>
<p>This recipe shows a simple example of how to use pngcanvas, a pure Python library for PNG image creation.</p>
Using the python imaging library to generate degraded letter stimuli (Python)
2008-09-06T05:24:33-07:00Kaushik Ghosehttp://code.activestate.com/recipes/users/4166965/http://code.activestate.com/recipes/576490-using-the-python-imaging-library-to-generate-degra/
<p style="color: grey">
Python
recipe 576490
by <a href="/recipes/users/4166965/">Kaushik Ghose</a>
(<a href="/recipes/tags/imaging/">imaging</a>, <a href="/recipes/tags/library/">library</a>, <a href="/recipes/tags/science/">science</a>, <a href="/recipes/tags/stimuli/">stimuli</a>, <a href="/recipes/tags/visual/">visual</a>).
</p>
<p>Code to generate degraded letter stimuli, as used in the paper "The remarkable inefficiency of word recognition" (Pelli et al. 2003). Utilizes the Python Imaging Library, and is an example of the usage of this library.</p>
Pad images to power-of-two dimensions. (Python)
2008-08-12T18:46:40-07:00Martin Wilsonhttp://code.activestate.com/recipes/users/4166376/http://code.activestate.com/recipes/576416-pad-images-to-power-of-two-dimensions/
<p style="color: grey">
Python
recipe 576416
by <a href="/recipes/users/4166376/">Martin Wilson</a>
(<a href="/recipes/tags/graphics/">graphics</a>, <a href="/recipes/tags/imaging/">imaging</a>, <a href="/recipes/tags/library/">library</a>, <a href="/recipes/tags/of/">of</a>, <a href="/recipes/tags/opengl/">opengl</a>, <a href="/recipes/tags/pil/">pil</a>, <a href="/recipes/tags/power/">power</a>, <a href="/recipes/tags/power_of_two/">power_of_two</a>, <a href="/recipes/tags/python_imaging_library/">python_imaging_library</a>, <a href="/recipes/tags/two/">two</a>).
Revision 4.
</p>
<p>Pads any amount of images each to power-of-two dimensions, useful for OpenGL programming.</p>