AttentionWindow

Module that extracts a region from an image based on a top-down position and bottom-up detection data. When the bottom-up data is available, the top-down input will select among these positions. There are a number of possibilities:

When no top-down or bottom-up object sizes are available it will be set by the parameter focus_radius or both of focus_width and focus_height.

Example XML definition

A simple example

  <module
      class = "AttentionWindow"
      name = "AttentionWindow"
      output_size = "64"
  />

Parameters

NameDescriptionTypeDefault
classThe class name for the module; must be "AttentionWindow".string
nameThe name of this instance of the module.string
window_radiusThe radius of the window.float15
window_size_xThe width of the window. Calculated from radius if not set.float0
window_size_yThe height of the window. Calculated from radius if not set.float0
output_size_xThe width of the output.int64
output_size_yThe height of the output.int64

Module Connections

Inputs

NameDescription
INPUTThe input image
BOTTOM_UP_POSITIONThe coordinates of detected objects in the image
BOTTOM_UP_BOUNDSThe bounds of the detected object. Four corners.
BOTTOM_UP_COUNTThe number of detected objects
TOP_DOWN_POSITIONA 2x1 array that represents the center of the focus in the input image. Range from 0 to 1, where 0.5 is the center of the image
TOP_DOWN_BOUNDSThe four corners on the top-down attention window

Outputs

NameDescription
OUTPUTThe size of the output

Author

Christian Balkenius
christian.balkenius@lucs.lu.se
Lund University Cognitive Science

Files

AttentionWindow.h
AttentionWindow.cc
AttentionWindow.ikc

blog comments powered by Disqus