
#include "Neuro/EnvVisualCortex.H"#include "Component/ModelOptionDef.H"#include "Envision/env_c_math_ops.h"#include "Envision/env_image_ops.h"#include "Envision/env_job_server.h"#include "Envision/env_log.h"#include "Envision/env_mt_visual_cortex.h"#include "Envision/env_pthread_interface.h"#include "Envision/env_stdio_interface.h"#include "Neuro/EnvOpts.H"#include "Util/AllocAux.H"#include "Util/JobWithSemaphore.H"#include "Util/StringConversions.H"#include "Util/WorkThreadServer.H"#include <cstdio>#include <sstream>#include <vector>
Go to the source code of this file.
Functions | |
| static void * | malloc_thunk (env_size_t n) |
| static Image< byte > | convert_gray (const struct env_image *iimage, const struct env_dims dims) |
| static Image< float > | convert_gray_float (const struct env_image *iimage, const struct env_dims dims, const float factor) |
| static void | workthread_job_server (void *job_server_data, const struct env_job *jobs, const env_size_t njobs) |
Variables | |
| const ModelOptionDef | OPT_EvcMaxnormType |
| const ModelOptionDef | OPT_EvcScaleBits |
| const ModelOptionDef | OPT_EvcNumDirections |
| const ModelOptionDef | OPT_EvcMotionThresh |
| const ModelOptionDef | OPT_EvcFlickerThresh |
| const ModelOptionDef | OPT_EvcRangeThresh |
| const ModelOptionDef | OPT_EvcMultiScaleFlicker |
| const ModelOptionDef | OPT_EvcShowMemStats |
| const ModelOptionDef | OPT_EvcNumOrientations |
| const ModelOptionDef | OPT_EvcType |
| const ModelOptionDef | OPT_EvcColorSmoothing |
| const ModelOptionDef | OPT_EvcOutputFactor |
Definition in file EnvVisualCortex.C.
| const ModelOptionDef OPT_EvcColorSmoothing |
{ MODOPT_FLAG, "EvcColorSmoothing", &MOC_ENVISION, OPTEXP_CORE,
"Whether to do two-frame smoothing of the color channel",
"evc-color-smoothing", '\0', "", "false" }
Definition at line 144 of file EnvVisualCortex.C.
| const ModelOptionDef OPT_EvcFlickerThresh |
{ MODOPT_ARG(byte), "EvcFlickerThresh", &MOC_ENVISION, OPTEXP_CORE,
"Low threshold cutoff for flicker channel",
"evc-flicker-thresh", '\0', "<byte>", "20" }
Definition at line 88 of file EnvVisualCortex.C.
| const ModelOptionDef OPT_EvcMaxnormType |
{ MODOPT_ARG(std::string), "EvcMaxnormType", &MOC_ENVISION, OPTEXP_CORE,
"Type of normalization to use",
"evc-maxnorm-type", '\0', "<None|Maxnorm>", "Maxnorm" }
Definition at line 62 of file EnvVisualCortex.C.
| const ModelOptionDef OPT_EvcMotionThresh |
{ MODOPT_ARG(byte), "EvcMotionThresh", &MOC_ENVISION, OPTEXP_CORE,
"Low threshold cutoff for motion channel",
"evc-motion-thresh", '\0', "<byte>", "12" }
Definition at line 82 of file EnvVisualCortex.C.
| const ModelOptionDef OPT_EvcMultiScaleFlicker |
{ MODOPT_FLAG, "EvcMultiScaleFlicker", &MOC_ENVISION, OPTEXP_CORE,
"Whether to use a true multi-scale flicker channel",
"evc-multiscale-flicker", '\0', "", "true" }
Definition at line 102 of file EnvVisualCortex.C.
| const ModelOptionDef OPT_EvcNumDirections |
{ MODOPT_ARG(byte), "EvcNumDirections", &MOC_ENVISION, OPTEXP_CORE,
"Number of motion directions to use",
"evc-num-directions", '\0', "<byte>", "4" }
Definition at line 76 of file EnvVisualCortex.C.
| const ModelOptionDef OPT_EvcNumOrientations |
{ MODOPT_ARG(byte), "EvcNumOrientations", &MOC_ENVISION, OPTEXP_CORE,
"Number of orientation channels to use",
"evc-num-orientations", '\0', "<byte>", "4" }
Definition at line 116 of file EnvVisualCortex.C.
| const ModelOptionDef OPT_EvcOutputFactor |
{ MODOPT_ARG(float), "EvcOutputFactor", &MOC_ENVISION, OPTEXP_CORE,
"Factor applied to outputs of EnvVisualCortexFloat to scale them to Amps of "
"synaptic input currents to saliency map",
"evc-outfac", '\0', "<float>", "5.0e-18" }
Definition at line 149 of file EnvVisualCortex.C.
| const ModelOptionDef OPT_EvcRangeThresh |
{ MODOPT_ARG(int), "EvcRangeThresh", &MOC_ENVISION, OPTEXP_CORE,
"Low threshold cutoff for normalizing maps. "
"If the range of the map is bellow this threshold "
"then the value would be set to 0.",
"evc-range-thresh", '\0', "<int>", "0" }
Definition at line 94 of file EnvVisualCortex.C.
| const ModelOptionDef OPT_EvcScaleBits |
{ MODOPT_ARG(byte), "EvcScaleBits", &MOC_ENVISION, OPTEXP_CORE,
"Number of bits of dynamic range to use",
"evc-scale-bits", '\0', "<byte>", "16" }
Definition at line 68 of file EnvVisualCortex.C.
| const ModelOptionDef OPT_EvcShowMemStats |
{ MODOPT_FLAG, "EvcShowMemStats", &MOC_ENVISION, OPTEXP_CORE,
"Whether to show memory usage",
"evc-show-memstats", '\0', "", "false" }
Definition at line 108 of file EnvVisualCortex.C.
| const ModelOptionDef OPT_EvcType |
{ MODOPT_ARG(std::string), "EvcType", &MOC_ENVISION, OPTEXP_CORE,
"A string containing one or more of the characters "
"'I', 'C', 'O', 'F', and 'M', "
"indicating which of the intensity, color, orientation, flicker, "
"and motion channels should be included, respectively. Additionally, "
"each character can optionally be followed by a ':' and a "
"floating-point number between 0.0 and 1.0 indicating the weight for "
"that channel. By default, each channel receives a weight of 1.0.",
"evc-type", '\0',
"<I:wC:wO:wF:wM:w>", "ICOFM"
}
Definition at line 122 of file EnvVisualCortex.C.
1.6.3