Avisynth script to shift the red channel Log Out | Topics | Search
Moderators | Register | Edit Profile

stereo3d.com webboard » General 3D Discussion » Avisynth script to shift the red channel « Previous Next »

Author Message
Top of pagePrevious messageNext messageBottom of page Link to this message

Anonymous

Rating: N/A
Votes: 0 (Vote!)

Posted on Tuesday, March 09, 2004 - 5:03 pm:   Edit PostDelete PostView Post/Check IPPrint Post

# red shifter (3d anaglyph?)
# this script shifts the red channel up and
# to the left an arbitrary amount of pixels

# load your source
AVISource("640x480.avi")

# if the source is yuv it needs to be converted to rgb
ConvertToRGB()

# split the red and cyan channels
red =RGBAdjust(1,0,0,1)
cyan=RGBAdjust(0,1,1,1)

# overlay (parameter meaning documented in avisynth help)
Overlay(cyan,red,-4,-4,opacity=0.5,output="YV12")

# optionally crop and tweak
Crop(0,0,636,476)
Tweak(sat=2,bright=2,cont=2)

Add Your Message Here
Post:
Bold text Italics Underline Create a hyperlink Insert a clipart image

Username: Posting Information:
This is a private posting area. Only registered users and moderators may post messages here.
Password:
Options: Enable HTML code in message
Automatically activate URLs in message
Action:

Topics | Last Day | Last Week | Tree View | Search | User List | Help/Instructions | Program Credits Administration