1
$(if (not no_procedure) or (no_procedure == 1) then
4
// Function to run the Execute method of this filter
6
Image ${name:gsub("ImageFilter$", ""):gsub("Filter$", "")} ( $(include ImageParameters.in)$(include InputParameters.in)$(include MemberParameters.in) )
9
return filter.Execute ( $(for inum=1,number_of_inputs do
13
OUT=OUT .. 'image' .. inum
15
local count = number_of_inputs
18
if not (inputs[inum].optional and no_optional) then
23
OUT=OUT..inputs[inum].name:sub(1,1):lower() .. inputs[inum].name:sub(2,-1)
32
OUT= OUT .. members[i].name:sub(1,1):lower() .. members[i].name:sub(2,-1)
36
end)$(if inputs and ((not no_procedure) or (no_procedure == 1))then
37
local has_optional_inputs = false
39
if inputs[i].optional then
40
has_optional_inputs=inputs[i].optional
43
if has_optional_inputs and not no_optional then
45
-- we recusively include this same template file but with the no_optional variable defined
47
$(include FunctionalAPI.cxx.in)]]
49
end)$(if inputs then no_optional=nil end)