Skip to content

Instantly share code, notes, and snippets.

View jacobsn's full-sized avatar

Nathan Jacobs jacobsn

View GitHub Profile
@jacobsn
jacobsn / gist:7413932
Last active December 28, 2015 00:29
Patch to make povray build on OS X Mavericks (see https://github.com/mxcl/homebrew/issues/23612). Adds a boost:: to the beginning of every shared_ptr.
diff -Naur source/backend/bounding/boundingtask.cpp source/backend/bounding/boundingtask.cpp
--- source/backend/bounding/boundingtask.cpp 2012-02-05 15:53:40.000000000 -0500
+++ source/backend/bounding/boundingtask.cpp 2013-11-11 09:07:59.000000000 -0500
@@ -187,7 +187,7 @@
BSPProgress();
};
-BoundingTask::BoundingTask(shared_ptr<SceneData> sd, unsigned int bt) :
+BoundingTask::BoundingTask(boost::shared_ptr<SceneData> sd, unsigned int bt) :
Task(new SceneThreadData(sd), boost::bind(&BoundingTask::SendFatalError, this, _1)),
@jacobsn
jacobsn / README.md
Last active July 20, 2016 20:30
Trying to understand variational autoencoders.
@jacobsn
jacobsn / structure_tensor2.m
Created September 19, 2020 17:11
A function for computing Eigenvalues and the first Eigenvector of the structure tensor of an image.
%structure_tensor2
%
% Computes the eigenvalues and eigenvectors of the structure tensor of im.
%
function [e1 e2 ev1] = structure_tensor2(im, opt)
if ~exist('opt', 'var')
opt = struct();
end