Jiro's pick this week is abSIRD by Daniel Armyr.
Here's a fun pick for the week. This function takes a matrix, representing a height-map, and visualizes it using an Autostereogram. To quote Daniel, "the algorithm used is abSIRD, published in 2004 by Lewey Geselowitz. It is a fast, in-place algorithm
that is exquisitely simple to implement."
Can you see them? Hint: cross your eyes.
m = membrane(1, 250, 9, 2);
makeAbsird(m);
p = load('penny');
% Make it 4 times bigger (imresize from Image Processing Toolbox)
p2 = imresize(p.P, 4);
makeAbsird(p2);
What a great way to visualize 3D data!
I like this entry not only for the coolness factor, but also for how it is written. The code is robustly written with error
checking and plenty of comments to describe the algorithm. I also like the published example code that he included with the entry. These files can be easily created using MATLAB's publishing capability, and it's a great way of showing how to use your code or explaining concepts. I especially like them when they
are used with File Exchange entries.
Comments
Give this function a try (and cross your eyes) and let us know what you think here or leave a comment for Daniel.
评论
要发表评论,请点击 此处 登录到您的 MathWorks 帐户或创建一个新帐户。