< Previous | Contents | Next >

Image Inputs

A tool node can have a number of image inputs or outputs.


image


Image Inputs can be defined easily shown here in this code snippet.


--Image, Masks Inputs

InImage = self:AddInput("Background", "Background", { LINKID_DataType = "Image",

LINK_Main = 1,

})

InImage2 = self:AddInput("Image2", "Image2", { LINKID_DataType = "Image",

LINK_Main = 2, INP_Required = false,

})

-- Create an output image

OutImage = self:AddOutput("Output", "Output", { LINKID_DataType = "Image",

LINK_Main = 1,

})