Plane normal dot products
P = [ 1 c ]
[ c 1 ]
Plane normals
#!/usr/bin/env stack | |
{- stack | |
--resolver lts-15.15 | |
script | |
--package ersatz | |
-} | |
{-# LANGUAGE DeriveGeneric #-} | |
{-# LANGUAGE GeneralizedNewtypeDeriving #-} | |
{-# LANGUAGE RecordWildCards #-} |
#!/usr/bin/env stack | |
{- stack | |
--resolver lts-15.15 | |
script | |
--package ersatz | |
--package containers | |
-} | |
{-# LANGUAGE RecordWildCards #-} | |
{-# LANGUAGE TypeApplications #-} |
Plane normal dot products
P = [ 1 c ]
[ c 1 ]
Plane normals
clear all; | |
# The dot products between the symmetry plane normals. | |
plane_dots = [ | |
1 -cos(pi/3) 0 | |
-cos(pi/3) 1 -cos(pi/5) | |
0 -cos(pi/5) 1 | |
]; | |
# The dot products of the seed vertices with the symmetry plane normals. |
Dealing with a system of equations with more unknowns than equations by making some of the unknowns parameters and using Gaussian elimination to solve for the remaining ones.
2a + 3b = 4c
5a + 6b + 42 = 7d
Arbitrarily, make b and d parameters and solve for a and c:
#Warn | |
#SingleInstance | |
SetWorkingDir(A_ScriptDir) | |
Component := "" | |
Device := "Analogue 1 + 2 (Microphone)" | |
Mute(State) { | |
OldState := SoundGetMute(Component, Device) |
{-# LANGUAGE FlexibleContexts #-} | |
module Main where | |
import Data.Foldable as F | |
import Data.List (intercalate) | |
import Data.Massiv.Array as A | |
import Data.Massiv.Array.IO | |
import Graphics.ColorSpace | |
import System.Environment (getArgs) |
const fs = require('mz/fs') | |
const hirestime = require('hirestime') | |
const Purgecss = require('purgecss') | |
class PurgecssPlugin { | |
static defaultOptions () { | |
return {} | |
} | |
constructor (api, originalOptions) { |
main = average [im0, im1] ++ mask; | |
[im0, im1] = map (\p extract_bands 0 3 (Image_file p)) | |
[ "5.0 Knights of the Eternal Throne.jpg" | |
, "5.10 Jedi Under Siege.jpg" | |
]; | |
mask = 255 - min_pair 255 (20 * average diff_bands); | |
diff_bands = bands (on my_diff (colour_transform_to Image_type.sRGB) im0 im1) |