sk.robotics.rlcs.agents.image
Class TresholdAgent.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.TresholdAgent.Cfg
Enclosing class:
TresholdAgent

public static class TresholdAgent.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
 int treshold
          The treshold value.
 
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
TresholdAgent.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

treshold

public int treshold
The treshold value. All pixels greater value will get converted to white, others to black color.

Constructor Detail

TresholdAgent.Cfg

public TresholdAgent.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