Archive

Archive for the ‘Computer Graphics’ Category

2D Matrix Decomposition

July 10th, 2009
Comments Off on 2D Matrix Decomposition

This demonstrates the polar decomposition of 2D matrices into their angle, scale, and shear components. The polarDecomp algorithm is taken from Shoemake & Duff “Matrix Animation and Polar Decomposition“, 1992.

Read more…

Computer Graphics, Mathematica

Pixel-perfect Graphics, Revisited

November 25th, 2008
Comments Off on Pixel-perfect Graphics, Revisited

Mathematica 7 introduces a new Image function that eliminates all the hassle previously necessary to create and export pixel-perfect raster images.

Read more…

Computer Graphics, Languages, Mathematica, Software

What is a sampling test image?

September 8th, 2008
Comments Off on What is a sampling test image?

I was asked what the purpose is of the test image in my previous post, and why the alpha was set to 0.01 rather than 0 in alternating pixels.
Read more…

Computer Graphics, Computers, Software

Exporting Pixel-Perfect Graphics in Mathematica

September 2nd, 2008
Comments Off on Exporting Pixel-Perfect Graphics in Mathematica

I keep having to figure out how to export pixel-perfect raster images from Mathematica, which I use for test images with my software. I found that it’s simpler to use ArrayPlot than Raster now, so I’m documenting this for my future use (and any one else’s).
Read more…

Computer Graphics, Languages, Mathematica, Software