sk.robotics.rlcs.agents.image
Class ConvolutionAgent.Cfg

java.lang.Object
  extended by sk.robotics.rlcs.agentspace.Agent.Cfg
      extended by sk.robotics.rlcs.agents.image.ImageFilterAgent.Cfg
          extended by sk.robotics.rlcs.agents.image.ConvolutionAgent.Cfg
Enclosing class:
ConvolutionAgent

public static class ConvolutionAgent.Cfg
extends ImageFilterAgent.Cfg


Nested Class Summary
 
Nested classes/interfaces inherited from class sk.robotics.rlcs.agents.image.ImageFilterAgent.Cfg
ImageFilterAgent.Cfg.ImageType
 
Nested classes/interfaces inherited from class sk.robotics.rlcs.agentspace.Agent.Cfg
Agent.Cfg.Limited, Agent.Cfg.NoDefault, Agent.Cfg.Required, Agent.Cfg.Validator
 
Field Summary
 java.lang.Boolean copyEdgePixels
          Copy edge pixels.
 java.lang.String matrixData
          The convolution matrix data.
 java.lang.Integer matrixHeight
          Height of the convolution matrix.
 java.lang.Integer matrixWidth
          Width of the convolution matrix.
 
Fields inherited from class sk.robotics.rlcs.agents.image.ImageFilterAgent.Cfg
blockSourceImage, blockTargetImage, copyBeforeFilter, inputImageType, outputHeight, outputImageType, outputWidth, priority, validity
 
Fields inherited from class sk.robotics.rlcs.agentspace.Agent.Cfg
enabled, id, logLevel, timerPeriodMs, triggers
 
Constructor Summary
ConvolutionAgent.Cfg()
           
 
Method Summary
 void validate()
          Config validation.
 
Methods inherited from class sk.robotics.rlcs.agentspace.Agent.Cfg
createAgent, equals, getHiddenFields, hideFields
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

matrixWidth

public java.lang.Integer matrixWidth
Width of the convolution matrix.


matrixHeight

public java.lang.Integer matrixHeight
Height of the convolution matrix.


matrixData

public java.lang.String matrixData
The convolution matrix data. Line separated by semicolons, and in each line values separated by spaces.


copyEdgePixels

public java.lang.Boolean copyEdgePixels
Copy edge pixels. If this is set, pixel on edges of the image are copied from source to destination, otherwise the edges in destination are filled with zeroes.

Constructor Detail

ConvolutionAgent.Cfg

public ConvolutionAgent.Cfg()
Method Detail

validate

public void validate()
Description copied from class: Agent.Cfg
Config validation. This base versions checks that fields declared as required (through the Required annotation) are filled. Derived agent config classes may override this to provide custom validation function for user defined configuration. It can be as well used for setting default values for uninitialized fields, or any other processing. To veto launching the agent, it can throw an exception.

Overrides:
validate in class Agent.Cfg