nngn
Loading...
Searching...
No Matches
img_conv.lua File Reference

Functions

local function filter_size_round (s)
 

Variables

local camera< const > = require "nngn.lib.camera"
 
local input< const > = require("nngn.lib.input")
 
local common< const > = require "demos.cl.common"
 
local img_common< const > = require "demos.cl.img_common"
 
local N< const > = 4
 
local LIMITS< const > = nngn:compute():get_limits()
 
local MAX_SIZE< const > = LIMITS[Compute.WORK_GROUP_SIZE + 1]
 
local MAX_SIZE2< const > = math.sqrt(MAX_SIZE)
 
local LOCAL_SIZE< const > = common.local_size(img_common.IMG_SIZE, MAX_SIZE2)
 
local PIXEL_SIZE< const > = 4
 
local MIN_STD_DEV< const > = 0.6
 
local MAX_STD_DEV< const > = 8
 
local MIN_FILTER_WIDTH< const > = 3
 
local FILTER_MUL_FOR_STD_DEV< const > = 6
 
local MAX_LOCAL< const > = LIMITS[Compute.LOCAL_MEMORY + 1]
 
local MAX_FILTER_WIDTH_LOCAL< const > =
 
local MAX_STD_DEV_LOCAL< const > =
 
local FILTER_VEC_SIZE< const > =
 
local FILTER_VEC_SIZE2< const > =
 
local img_raw
 
local img_buf
 
local img
 
local read_v< const > = img_common.init()
 

Function Documentation

◆ filter_size_round()

local function filter_size_round ( s )

Variable Documentation

◆ camera< const >

local camera< const > = require "nngn.lib.camera"

◆ common< const >

local common< const > = require "demos.cl.common"

◆ FILTER_MUL_FOR_STD_DEV< const >

local FILTER_MUL_FOR_STD_DEV< const > = 6

◆ FILTER_VEC_SIZE2< const >

local FILTER_VEC_SIZE2< const > =

◆ FILTER_VEC_SIZE< const >

local FILTER_VEC_SIZE< const > =

◆ img

local img

◆ img_buf

local img_buf

◆ img_common< const >

local img_common< const > = require "demos.cl.img_common"

◆ img_raw

local img_raw

◆ input< const >

local input< const > = require("nngn.lib.input")

◆ LIMITS< const >

local LIMITS< const > = nngn:compute():get_limits()

◆ LOCAL_SIZE< const >

local LOCAL_SIZE< const > = common.local_size(img_common.IMG_SIZE, MAX_SIZE2)

◆ MAX_FILTER_WIDTH_LOCAL< const >

local MAX_FILTER_WIDTH_LOCAL< const > =

◆ MAX_LOCAL< const >

local MAX_LOCAL< const > = LIMITS[Compute.LOCAL_MEMORY + 1]

◆ MAX_SIZE2< const >

local MAX_SIZE2< const > = math.sqrt(MAX_SIZE)

◆ MAX_SIZE< const >

local MAX_SIZE< const > = LIMITS[Compute.WORK_GROUP_SIZE + 1]

◆ MAX_STD_DEV< const >

local MAX_STD_DEV< const > = 8

◆ MAX_STD_DEV_LOCAL< const >

local MAX_STD_DEV_LOCAL< const > =

◆ MIN_FILTER_WIDTH< const >

local MIN_FILTER_WIDTH< const > = 3

◆ MIN_STD_DEV< const >

local MIN_STD_DEV< const > = 0.6

◆ N< const >

local N< const > = 4

◆ PIXEL_SIZE< const >

local PIXEL_SIZE< const > = 4

◆ read_v< const >

local read_v< const > = img_common.init()