Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block Aerilius

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
Aerilius / transformation_matrix_utils.rb
Created Apr 2, 2018
Decomposing a transformation matrix into translation, scaling and Euler angles
View transformation_matrix_utils.rb
# Decompose a 4×4 augmented rotation matrix without shear into translation, scaling and rotation components.
# @param m [Array(16)] matrix
# @return [Array(3),Array(3),Array(3)] three arrays representing
# the translation vector,
# the scaling factor per axis and
# the Euler rotation angles in radians
def separate_translation_scaling_rotation(m)
m = m.clone
# Extract translation
Aerilius /
Created Jan 17, 2013
A shell script to translate Apple's SIPS (scriptable image processing system) commands to ImageMagick. It can be used to test software that depends on SIPS (and thus the proprietary Core Image) on any other unixoid system, ie. Linux.
# This script translates some SIPS (scriptable image processing system) commands to ImageMagick.
while :
You can’t perform that action at this time.