JeVois
1.20
JeVois Smart Embedded Machine Vision Toolkit
|
Share this page: |
|
|
|
|
|
|
Go to the documentation of this file.
38 #ifdef JEVOIS_LDEBUG_ENABLE
48 LogLevel::info, LogLevel_Values, ParamCateg);
56 "JeVois cameras are connected to a same USB bus",
"jevois", ParamCateg);
74 public Parameter<manager::help, manager::loglevel, manager::tracelevel, manager::nickname>
85 Manager(std::string
const & instance =
"TheManager");
89 Manager(
int argc,
char const* argv[], std::string
const & instance =
"TheManager");
107 template <
class Comp,
typename... Args>
111 template <
class Comp,
typename... Args>
118 template <
class Comp>
122 template <
class Comp>
138 template <
class Comp = jevois::Component>
142 template <
class Comp>
152 using Component::init;
156 using Component::uninit;
168 void onParamChange(manager::loglevel
const & param, manager::LogLevel
const & newval)
override;
171 void onParamChange(manager::tracelevel
const & param,
unsigned int const & newval)
override;
188 void doParseCommandLine();
192 std::vector<std::string>
const parseCommandLine(std::vector<std::string>
const & commandLineArgs);
195 std::vector<std::string> itsCommandLineArgs;
201 std::vector<std::string> itsRemainingArgs;
206 #include <jevois/Component/details/ManagerImpl.H>
const std::string & instanceName() const
The instance name of this component.
void onParamChange(manager::loglevel const ¶m, manager::LogLevel const &newval) override
Parameter callback.
Manager of a hierarchy of Component objects.
JEVOIS_DECLARE_PARAMETER(thresh1, double, "First threshold for hysteresis", 50.0, ParamCateg)
A component of a model hierarchy.
void preInit() override
Calls parseCommandLine()
std::shared_ptr< Comp > addSubComponent(std::string const &instanceName, Args &&...args)=delete
Use addComponent() on the Manager as opposed to jevois::Component::addSubComponent()
A category to which multiple ParameterDef definitions can belong.
const std::vector< std::string > & remainingArgs() const
Get the remaining arguments that were not parsed by the command line.
virtual ~Manager()
Destructor.
void removeComponent(std::shared_ptr< Comp > &component)
Remove a top-level Component from the Manager, by shared_ptr.
void removeSubComponent(std::shared_ptr< Comp > &component)=delete
Use removeComponent() on the Manager as opposed to jevois::Component::removeSubComponent()
void printHelpMessage() const
Constructs a help message and tries to send it to /usr/bin/less.
std::shared_ptr< Comp > addComponent(std::string const &instanceName, Args &&...args)
Pseudo-constructor: construct a top-level Component.
void postInit() override
Checks for the –help flag.
JEVOIS_DECLARE_PARAMETER_WITH_CALLBACK(l2grad, bool, "Use more accurate L2 gradient norm if true, L1 if false", false, ParamCateg)
std::shared_ptr< Comp > getSubComponent(std::string const &instanceName) const =delete
Use getComponent() on the Manager as opposed to jevois::Component::getSubComponent()
void constructHelpMessage(std::ostream &out) const
Constructs a help message from all parameters in the model, and outputs it to 'out'.
std::shared_ptr< Comp > getComponent(std::string const &instanceName) const
Get a top-level component by instance name.
JEVOIS_DEFINE_ENUM_CLASS(CameraSensor,(any)(imx290)(os08a10)(ar0234))
Enum for different sensor models.
void setCommandLineArgs(int argc, char const *argv[])
Set the command-line arguments, call this before start() if args were not passed at construction.