from JascApp import *

def ScriptProperties():
    return {
        'Author': '',
        'Copyright': '',
        'Description': ''
        }

def Preset_UserDefinedFilter():
    return {
        'ApplyToRed': App.Constants.Boolean.true, 
        'Bias': 0, 
        'ApplyToGreen': App.Constants.Boolean.true, 
        'Divisor': 1, 
        'ApplyToGrey': App.Constants.Boolean.false, 
        'ApplyToBlue': App.Constants.Boolean.true, 
        'Kernel': ((0,0,0,0,0,0,0),(0,0,0,0,0,0,0),(0,0,-1,0,0,0,0),(0,0,-1,1,1
            ,0,0),(0,0,0,0,1,0,0),(0,0,0,0,0,0,0),(0,0,0,0,0,0,0))
        }

def Do(Environment):
    App.Do(Environment,  'UserDefinedFilter',         Preset_UserDefinedFilter())

