Creating Depthmap Based Stereoscopic Anaglyphs in Apple Shake.
FileIn = SFileIn("$HOME/Desktop/velcro.jpg", "Auto", 0, 0, "v1.1",
"0", "");
greymap = SFileIn("$HOME/Desktop/greymap.png", "Auto", 0, 0,
"v1.1", "0", "");
Resize1 = Resize(greymap, 3072, 2048, "default", 0);
Sharpen1 = Sharpen(FileIn, 100, 20, xPixels/GetDefaultAspect(),
"rgba");
Expand1 = Expand(Resize1, 0.3, 0.3, 0.3, 0, 0.75, 0.75, 0.75,
1);
Saturation1 = Saturation(Sharpen1, 0.2);
Gamma1 = Gamma(Saturation1, 0.4, rGamma, rGamma, 1);
Brightness1 = Brightness(Gamma1, 1.84820426);
IDisplace1 = IDisplace(Brightness1, Expand1, 60, 0, 0.3, 0, "R",
"n", 0, xDelta);
Copy1 = Copy(IDisplace1, Brightness1, 1, "ngbn", 0);
Copy2 = Copy(IDisplace1, Brightness1, 1, "nnb", 0);
CCrop1 = CCrop(Copy1, 247, 0, 3072, 2048);
CCrop2 = CCrop(Copy2, 247, 0, 3072, 2048);
Anaglyph = FileOut(CCrop1, "$HOME/Desktop/anaglyph.png", "Png");
ColorCode3D = FileOut(CCrop2, "$HOME/Desktop/colorcode.png",
"Png");// User Interface settings
SetKey(
“nodeView.Anaglyph.t”, “0″,
“nodeView.Anaglyph.x”, “80″,
“nodeView.Anaglyph.y”, “336″,
“nodeView.Brightness1.t”, “0″,
“nodeView.Brightness1.x”, “-46″,
“nodeView.Brightness1.y”, “620″,
“nodeView.CCrop1.t”, “0″,
“nodeView.CCrop1.x”, “89″,
“nodeView.CCrop1.y”, “407″,
“nodeView.CCrop2.t”, “0″,
“nodeView.CCrop2.x”, “-75.25″,
“nodeView.CCrop2.y”, “407″,
“nodeView.ColorCode3D.t”, “0″,
“nodeView.ColorCode3D.x”, “-95.25″,
“nodeView.ColorCode3D.y”, “336″,
“nodeView.Copy1.t”, “0″,
“nodeView.Copy1.x”, “92″,
“nodeView.Copy1.y”, “478″,
“nodeView.Copy2.t”, “0″,
“nodeView.Copy2.x”, “-72.25″,
“nodeView.Copy2.y”, “478″,
“nodeView.Expand1.t”, “0″,
“nodeView.Expand1.x”, “123″,
“nodeView.Expand1.y”, “620″,
“nodeView.FileIn.t”, “1″,
“nodeView.FileIn.tnChannel”, “0″,
“nodeView.FileIn.tnTime”, “1″,
“nodeView.FileIn.tnVisible”, “1″,
“nodeView.FileIn.x”, “-56″,
“nodeView.FileIn.y”, “1008″,
“nodeView.Gamma1.t”, “0″,
“nodeView.Gamma1.x”, “-37″,
“nodeView.Gamma1.y”, “691″,
“nodeView.IDisplace1.t”, “0″,
“nodeView.IDisplace1.x”, “37.5″,
“nodeView.IDisplace1.y”, “549″,
“nodeView.Resize1.t”, “0″,
“nodeView.Resize1.x”, “127″,
“nodeView.Resize1.y”, “691″,
“nodeView.Saturation1.t”, “0″,
“nodeView.Saturation1.x”, “-46″,
“nodeView.Saturation1.y”, “762″,
“nodeView.Sharpen1.t”, “0″,
“nodeView.Sharpen1.x”, “-59″,
“nodeView.Sharpen1.y”, “937″,
“nodeView.greymap.t”, “1″,
“nodeView.greymap.tnChannel”, “0″,
“nodeView.greymap.tnTime”, “1″,
“nodeView.greymap.tnVisible”, “1″,
“nodeView.greymap.x”, “103″,
“nodeView.greymap.y”, “762″
);








