
Definition in file ContourChannel.C.
#include "Channels/ContourChannel.H"
#include "Channels/ChannelBase.H"
#include "Channels/ChannelOpts.H"
#include "Channels/ComplexChannel.H"
#include "Component/ModelOptionDef.H"
#include "Component/OptionManager.H"
#include "Image/ColorOps.H"
#include "Image/DrawOps.H"
#include "Image/FilterOps.H"
#include "Image/ImageSet.H"
#include "Image/ImageSetOps.H"
#include "Image/LevelSpec.H"
#include "Image/MathOps.H"
#include "Image/PyramidOps.H"
#include "Image/Range.H"
#include "Image/ShapeOps.H"
#include "Image/fancynorm.H"
#include "Raster/GenericFrame.H"
#include "Transport/FrameOstream.H"
#include "Util/Assert.H"
#include "Util/CpuTimer.H"
#include "Util/StringConversions.H"
#include "Util/StringUtil.H"
#include "Util/Types.H"
#include "Util/log.H"
#include "Util/sformat.H"
#include "rutz/shared_ptr.h"
#include <cmath>
#include <map>
#include <iostream>
#include <fstream>
Include dependency graph for ContourChannel.C:

Go to the source code of this file.
|
||||||||||||
|
Factory function that creates a new ContourChannel.
Definition at line 2344 of file ContourChannel.C. References makeSharedComp(). Referenced by main(), RawVisualCortex::paramChanged(), and processWholeImage(). |
|
|
Initial value:
{ MODOPT_ALIAS, "ALIAScontourModel0027", &MOC_ALIAS, OPTEXP_CORE,
"Contour model #0027",
"contour-model-0027", '\0', "",
"--contour-cxn-type=BraunNorm "
"--contour-cxn-beta=0.07 "
"--contour-cxn-excit-strength=1.7 "
"--contour-cxn-inhib-strength=-0.3 "
"--contour-cxn-dims=25x25 "
"--contour-cxn-peak-distance=2.5 "
"--contour-dynamics-type=Static "
"--cinnic-fast-plast=5.405775 "
"--cinnic-group-top=0.0048828125 "
"--cinnic-leak=0.0003662109375 "
"--cinnic-sigmoid-thresh=35.15625 "
"--cinnic-suppression-add=1.6875 "
"--cinnic-suppression-sub=2.0 "
"--contour-filter-reduction=1 "
"--contour-first-scale=2 "
"--contour-gabor-width=5.0 "
"--contour-num-iterations=3 "
"--contour-num-scales=1 "
}
Definition at line 1937 of file ContourChannel.C. |
|
|
Initial value:
{ MODOPT_ALIAS, "ALIAScontourModel0032", &MOC_ALIAS, OPTEXP_CORE,
"Contour model #0032",
"contour-model-0032", '\0', "",
"--contour-cxn-type=BraunNorm "
"--contour-cxn-beta=0.000720977783205 "
"--contour-cxn-dims=31x31 "
"--contour-cxn-excit-strength=2.33459472656 "
"--contour-cxn-inhib-strength=-0.0030920982361 "
"--contour-cxn-peak-distance=54.931640625 "
"--contour-dynamics-type=Static "
"--cinnic-fast-plast=0.0791861572262 "
"--cinnic-group-size=11 "
"--cinnic-group-top=0.15625 "
"--cinnic-leak=1.318359375 "
"--cinnic-sigmoid-thresh=474.609375 "
"--cinnic-suppression-add=0.75 "
"--cinnic-suppression-sub=2.0 "
"--contour-filter-reduction=2 "
"--contour-first-scale=1 "
"--contour-gabor-width=2.02549743327 "
"--contour-num-iterations=1 "
"--contour-num-scales=1 "
}
Definition at line 1962 of file ContourChannel.C. |
|
|
Initial value:
{ MODOPT_ARG(float), "CinnicAngleDropOff", &MOC_CHANNEL, OPTEXP_CORE,
"AngleDropOff parameter for the cinnic kernel in the contour channel "
"(corresponds to old ParamMap parameter 'AngleDropOff=35.0')",
"cinnic-angle-dropoff", '\0', "<float>", "35.0" }
Definition at line 557 of file ContourChannel.C. |
|
|
Initial value:
{ MODOPT_ARG(float), "CinnicAngleOrthRangeA", &MOC_CHANNEL, OPTEXP_CORE,
"AngleOrthRangeA parameter for the cinnic kernel in the contour channel "
"(corresponds to old ParamMap parameter 'AngleOrthRangeA=45.0')",
"cinnic-angle-orth-range-a", '\0', "<float>", "45.0" }
Definition at line 585 of file ContourChannel.C. |
|
|
Initial value:
{ MODOPT_ARG(float), "CinnicAngleOrthRangeB", &MOC_CHANNEL, OPTEXP_CORE,
"AngleOrthRangeB parameter for the cinnic kernel in the contour channel "
"(corresponds to old ParamMap parameter 'AngleOrthRangeB=35.0')",
"cinnic-angle-orth-range-b", '\0', "<float>", "35.0" }
Definition at line 592 of file ContourChannel.C. |
|
|
Initial value:
{ MODOPT_ARG(float), "CinnicAngleSuppress", &MOC_CHANNEL, OPTEXP_CORE,
"AngleSuppress parameter for the cinnic kernel in the contour channel "
"(corresponds to old ParamMap parameter 'AngleSuppress=60.0')",
"cinnic-angle-suppress", '\0', "<float>", "60.0" }
Definition at line 564 of file ContourChannel.C. |
|
|
Initial value:
{ MODOPT_ARG(float), "CinnicColinearDiff", &MOC_CHANNEL, OPTEXP_CORE,
"ColinearDiff parameter for the cinnic kernel in the contour channel "
"(corresponds to old ParamMap parameter 'CoLinearDiff=16.0')",
"cinnic-colinear-diff", '\0', "<float>", "16.0" }
Definition at line 634 of file ContourChannel.C. |
|
|
Initial value:
{ MODOPT_ARG(float), "CinnicLayerFastPlast", &MOC_CHANNEL, OPTEXP_CORE,
"Fast-plasticity strength under --contour-dynamics-type=Static "
"(corresponds to old ParamMap parameter 'fastPlast=7.2077')",
"cinnic-fast-plast", '\0', "<float>", "7.2077" }
Definition at line 1308 of file ContourChannel.C. |
|
|
Initial value:
{ MODOPT_ARG(float), "CinnicLayerFilterThresh", &MOC_CHANNEL, OPTEXP_CORE,
"Filter values less than this threshold will be forced to 0, under "
"--contour-dynamics-type=Static "
"(corresponds to old ParamMap parameter 'filterThresh=0.0001')",
"cinnic-filter-thresh", '\0', "<float>", "0.0001" }
Definition at line 1371 of file ContourChannel.C. |
|
|
Initial value:
{ MODOPT_ARG(float), "CinnicLayerGroupBottom", &MOC_CHANNEL, OPTEXP_CORE,
"Threshold beneath which group suppression is removed, under "
"--contour-dynamics-type=Static "
"(corresponds to old ParamMap parameter 'groupAvgBottom=0.0')",
"cinnic-group-bottom", '\0', "<float>", "0.0" }
Definition at line 1315 of file ContourChannel.C. |
|
|
Initial value:
{ MODOPT_ARG(int), "CinnicLayerGroupSize", &MOC_CHANNEL, OPTEXP_CORE,
"Width of low-pass kernel used to compute group suppression, under "
"--contour-dynamics-type=Static "
"(corresponds to old ParamMap parameter 'groupSize=15')",
"cinnic-group-size", '\0', "<int>", "15" }
Definition at line 1331 of file ContourChannel.C. |
|
|
Initial value:
{ MODOPT_ARG(float), "CinnicLayerGroupTop", &MOC_CHANNEL, OPTEXP_CORE,
"Threshold above which group suppression is added, under "
"--contour-dynamics-type=Static "
"(corresponds to old ParamMap parameter 'groupAvgTop=0.03125')",
"cinnic-group-top", '\0', "<float>", "0.03125" }
Definition at line 1323 of file ContourChannel.C. |
|
|
Initial value:
{ MODOPT_ARG(float), "CinnicLayerLeak", &MOC_CHANNEL, OPTEXP_CORE,
"Amount of global leak during each iteration under "
"--contour-dynamics-type=Static "
"(corresponds to old ParamMap parameter 'leakFactor=0.5')",
"cinnic-leak", '\0', "<float>", "0.5" }
Definition at line 1339 of file ContourChannel.C. |
|
|
Initial value:
{ MODOPT_ARG(float), "CinnicLayerSigmoidThresh", &MOC_CHANNEL, OPTEXP_CORE,
"Threshold for the output sigmoid nonlinearity, under "
"--contour-dynamics-type=Static "
"(corresponds to old ParamMap parameter 'sigmoidThresh=9.0')",
"cinnic-sigmoid-thresh", '\0', "<float>", "9.0" }
Definition at line 1363 of file ContourChannel.C. |
|
|
Initial value:
{ MODOPT_ARG(float), "CinnicLayerSuppressionAdd", &MOC_CHANNEL, OPTEXP_CORE,
"Scale factor for group suppression added where the rate of change "
"exceeds --cinnic-group-top, --contour-dynamics-type=Static "
"(corresponds to old ParamMap parameter 'suppressionAdd=1.0')",
"cinnic-suppression-add", '\0', "<float>", "1.0" }
Definition at line 1347 of file ContourChannel.C. |
|
|
Initial value:
{ MODOPT_ARG(float), "CinnicLayerSuppressionSub", &MOC_CHANNEL, OPTEXP_CORE,
"Scale factor for group suppression removed where the rate of change "
"is less than --cinnic-group-bottom, --contour-dynamics-type=Static "
"(corresponds to old ParamMap parameter 'suppressionSub=1.0')",
"cinnic-suppression-sub", '\0', "<float>", "1.0" }
Definition at line 1355 of file ContourChannel.C. |
|
|
Initial value:
{ MODOPT_ARG(float), "CinnicNeuronExSize", &MOC_CHANNEL, OPTEXP_CORE,
"NeuronExSize parameter for the cinnic kernel in the contour channel "
"(corresponds to old ParamMap parameter 'NeuronExSize=12.0')",
"cinnic-neuron-ex-size", '\0', "<float>", "12.0" }
Definition at line 599 of file ContourChannel.C. |
|
|
Initial value:
{ MODOPT_ARG(float), "CinnicNeuronOrthSize", &MOC_CHANNEL, OPTEXP_CORE,
"NeuronOrthSize parameter for the cinnic kernel in the contour channel "
"(corresponds to old ParamMap parameter 'NeuronOrthSize=12.0')",
"cinnic-neuron-orth-size", '\0', "<float>", "12.0" }
Definition at line 620 of file ContourChannel.C. |
|
|
Initial value:
{ MODOPT_ARG(float), "CinnicNeuronSupSize", &MOC_CHANNEL, OPTEXP_CORE,
"NeuronSupSize parameter for the cinnic kernel in the contour channel "
"(corresponds to old ParamMap parameter 'NeuronSupSize=10.0')",
"cinnic-neuron-sup-size", '\0', "<float>", "10.0" }
Definition at line 606 of file ContourChannel.C. |
|
|
Initial value:
{ MODOPT_ARG(float), "CinnicNeuronSupStart", &MOC_CHANNEL, OPTEXP_CORE,
"NeuronSupStart parameter for the cinnic kernel in the contour channel "
"(corresponds to old ParamMap parameter 'NeuronSupStart=1.0')",
"cinnic-neuron-sup-start", '\0', "<float>", "1.0" }
Definition at line 613 of file ContourChannel.C. |
|
|
Initial value:
{ MODOPT_ARG(float), "CinnicOrthMult", &MOC_CHANNEL, OPTEXP_CORE,
"OrthMult parameter for the cinnic kernel in the contour channel "
"(corresponds to old ParamMap parameter 'OrthMult=0.0')",
"cinnic-orth-mult", '\0', "<float>", "0.0" }
Definition at line 578 of file ContourChannel.C. |
|
|
Initial value:
{ MODOPT_ARG(float), "CinnicSupMult", &MOC_CHANNEL, OPTEXP_CORE,
"SupMult parameter for the cinnic kernel in the contour channel "
"(corresponds to old ParamMap parameter 'SupMult=1.5')",
"cinnic-sup-mult", '\0', "<float>", "1.5" }
Definition at line 571 of file ContourChannel.C. |
|
|
Initial value:
{ MODOPT_ARG(float), "CinnicValueCutoff", &MOC_CHANNEL, OPTEXP_CORE,
"valueCutOff parameter for the cinnic kernel in the contour channel "
"(corresponds to old ParamMap parameter 'valueCutOff=0.0001')",
"cinnic-value-cutoff", '\0', "<float>", "0.0001" }
Definition at line 627 of file ContourChannel.C. |
|
|
Initial value:
{ MODOPT_ARG(ContourChannelDynamicsType), "ContourChannelDynamicsType", &MOC_CHANNEL, OPTEXP_CORE,
"The type of iterative dynamics to use in the contour channel "
"(corresponds to old ParamMap parameter 'dynamicsType=1')",
"contour-dynamics-type", '\0', "<Static|Dynamic>", "Static" }
Definition at line 1893 of file ContourChannel.C. |
|
|
Initial value:
{ MODOPT_ARG(unsigned int), "ContourChannelFilterReduction", &MOC_CHANNEL, OPTEXP_CORE,
"Number of octaves by which to downsize the oriented filter outputs "
"in the contour channel "
"(corresponds to old ParamMap parameter 'filterReduction=1')",
"contour-filter-reduction", '\0', "<uint>", "1" }
Definition at line 1885 of file ContourChannel.C. |
|
|
Initial value:
{ MODOPT_ARG(ContourChannelFilterStyle), "ContourChannelFilterStyle", &MOC_CHANNEL, OPTEXP_CORE,
"Type of orientation filtering to use in the contour channel "
"(corresponds to old ParamMap parameter 'filterStyle=2')",
"contour-filter-style", '\0', "<Steerable|Gabor|GaussianSteerable>", "Gabor" }
Definition at line 1870 of file ContourChannel.C. |
|
|
Initial value:
{ MODOPT_ARG(unsigned int), "ContourChannelFirstScale", &MOC_CHANNEL, OPTEXP_CORE,
"Lowest pyramid scale to use in the contour channel "
"(corresponds to old ParamMap parameter 'firstScale=0')",
"contour-first-scale", '\0', "<uint>", "0" }
Definition at line 1848 of file ContourChannel.C. |
|
|
Initial value:
{ MODOPT_ARG(float), "ContourChannelGaborPeriod", &MOC_CHANNEL, OPTEXP_CORE,
"Period of the sine-wave component of the gabor filter used in the "
"contour channel "
"(corresponds to old ParamMap parameter 'gaborPeriod=5.0')",
"contour-gabor-width", '\0', "<float>", "5.0" }
Definition at line 1877 of file ContourChannel.C. |
|
|
Initial value:
{ MODOPT_ARG(unsigned int), "ContourChannelIterations", &MOC_CHANNEL, OPTEXP_CORE,
"Number of iterations to run in the contour channel "
"(corresponds to old ParamMap parameter 'iterations=3')",
"contour-num-iterations", '\0', "<uint>", "3" }
Definition at line 1834 of file ContourChannel.C. |
|
|
Initial value:
{ MODOPT_ARG(unsigned int), "ContourChannelLowPassWidth", &MOC_CHANNEL, OPTEXP_CORE,
"Width of low-pass filter to use in the contour channel "
"(corresponds to old ParamMap parameter 'lowPassWidth=9')",
"contour-lowpass-width", '\0', "<uint>", "9" }
Definition at line 1841 of file ContourChannel.C. |
|
|
Initial value:
{ MODOPT_ARG(Dims), "ContourChannelMaxInputDims", &MOC_CHANNEL, OPTEXP_CORE,
"If input to the contour channel is larger than these dims, then "
"it will be rescaled down to fit "
"(corresponds to old ParamMap parameters 'maxInputW=10000' and 'maxInputH=10000')",
"contour-max-input-dims", '\0', "<w>x<h>", "10000x10000" }
Definition at line 1862 of file ContourChannel.C. |
|
|
Initial value:
{ MODOPT_ARG(int), "ContourChannelNormFlags", &MOC_CHANNEL, OPTEXP_CORE,
"Bitwise-OR'ed combination of Flags to use when normaling float images "
"in the contour channel (FLOAT_NORM_0_255=1, FLOAT_NORM_WITH_SCALE=2, "
"FLOAT_NORM_PRESERVE=4) "
"(corresponds to old ParamMap parameter 'normFlags=3')",
"contour-norm-flags", '\0', "<int>", "3" }
Definition at line 1900 of file ContourChannel.C. |
|
|
Initial value:
{ MODOPT_ARG(unsigned int), "ContourChannelNumScales", &MOC_CHANNEL, OPTEXP_CORE,
"Number of pyramid scale to use in the contour channel "
"(corresponds to old ParamMap parameter 'scalesNumber=3')",
"contour-num-scales", '\0', "<uint>", "3" }
Definition at line 1855 of file ContourChannel.C. |
|
|
Initial value:
{ MODOPT_ARG(int), "ContourChannelOutputBlur", &MOC_CHANNEL, OPTEXP_CORE,
"Box-filter width to use when blurring+decimating to rescale "
"the output of the contour channel",
"contour-output-blur", '\0', "<int>", "4" }
Definition at line 1909 of file ContourChannel.C. |
|
|
Initial value:
{ MODOPT_FLAG, "ContourChannelSaveFilterOutput", &MOC_CHANNEL, OPTEXP_SAVE,
"Whether to save summary images of the contour channel's oriented "
"filter outputs",
"save-contour-filter-output", '\0', "", "false" }
Definition at line 1923 of file ContourChannel.C. |
|
|
Initial value:
{ MODOPT_FLAG, "ContourChannelSaveOutput", &MOC_CHANNEL, OPTEXP_SAVE,
"Whether to save output maps from the contour channel",
"save-contour-output", '\0', "", "false" }
Definition at line 1930 of file ContourChannel.C. |
|
|
Initial value:
{ MODOPT_FLAG, "ContourChannelSaveWeights", &MOC_CHANNEL, OPTEXP_SAVE,
"Whether to save a summary image of the contour channel's kernel "
"weights",
"save-contour-weights", '\0', "", "false" }
Definition at line 1916 of file ContourChannel.C. |
|
|
Initial value:
{ MODOPT_ARG(float), "ContourConnectionBeta", &MOC_CHANNEL, OPTEXP_CORE,
"Beta parameter for the Braun kernel in the contour channel "
"(corresponds to old ParamMap parameter 'beta=0.07')",
"contour-cxn-beta", '\0', "<float>", "0.07" }
Definition at line 828 of file ContourChannel.C. |
|
|
Initial value:
{ MODOPT_ARG(Dims), "ContourConnectionDims", &MOC_CHANNEL, OPTEXP_CORE,
"Dimensions of the individual connection kernels in the contour channel "
"(corresponds to old ParamMap parameters 'sizeX=13' and 'sizeY=13')",
"contour-cxn-dims", '\0', "<w>x<h>", "13x13" }
Definition at line 353 of file ContourChannel.C. |
|
|
Initial value:
{ MODOPT_ARG(float), "ContourConnectionExcitStrength", &MOC_CHANNEL, OPTEXP_CORE,
"ExcitStrength parameter for the Braun kernel in the contour channel "
"(corresponds to old ParamMap parameter 'excitStrength=1.7')",
"contour-cxn-excit-strength", '\0', "<float>", "1.7" }
Definition at line 814 of file ContourChannel.C. |
|
|
Initial value:
{ MODOPT_ARG(float), "ContourConnectionInhibStrength", &MOC_CHANNEL, OPTEXP_CORE,
"InhibStrength parameter for the Braun kernel in the contour channel "
"(corresponds to old ParamMap parameter 'inhibStrength=-0.3')",
"contour-cxn-inhib-strength", '\0', "<float>", "-0.3" }
Definition at line 821 of file ContourChannel.C. |
|
|
Initial value:
{ MODOPT_ARG(int), "ContourConnectionNumOrient", &MOC_CHANNEL, OPTEXP_CORE,
"Number of orientations to use in the contour channel's connection kernel "
"(corresponds to old ParamMap parameter 'numAngles=12')",
"contour-num-orient", '\0', "<int>", "12" }
Definition at line 360 of file ContourChannel.C. |
|
|
Initial value:
{ MODOPT_FLAG, "ContourConnectionOrthoIntxn", &MOC_CHANNEL, OPTEXP_CORE,
"Whether to include (inhibitory) interactions between (near-)orthogonal "
"orientations in the contour channel "
"(corresponds to old ParamMap parameter 'orthoIntxn=0')",
"contour-ortho-interaction", '\0', "", "false" }
Definition at line 835 of file ContourChannel.C. |
|
|
Initial value:
{ MODOPT_ARG(float), "ContourConnectionPeakDistance", &MOC_CHANNEL, OPTEXP_CORE,
"PeakDistance parameter for the Braun kernel in the contour channel "
"(corresponds to old ParamMap parameter 'peakDistance=2.0')",
"contour-cxn-peak-distance", '\0', "<float>", "2.0" }
Definition at line 807 of file ContourChannel.C. |
|
|
Initial value:
{ MODOPT_ARG(ContourConnectionType), "ContourConnectionType", &MOC_CHANNEL, OPTEXP_CORE,
"Type of connection kernel to use in the contour channel "
"(corresponds to old ParamMap parameter 'cxnType=3')",
"contour-cxn-type", '\0', "<Cinnic|Braun|BraunNorm>", "BraunNorm" }
Definition at line 1827 of file ContourChannel.C. |
|
|
Initial value:
{ MODOPT_ARG(float), "ContourLayerDynamicFilterThresh", &MOC_CHANNEL, OPTEXP_CORE,
"Timestep for the contour channel with --contour-dynamics-type=Dynamic "
"(corresponds to old ParamMap parameter 'filterThresh=0.0001')",
"contour-layer-filter-thresh", '\0', "<float>", "0.0001" }
Definition at line 1075 of file ContourChannel.C. |
|
|
Initial value:
{ MODOPT_ARG(float), "ContourLayerDynamicTimestep", &MOC_CHANNEL, OPTEXP_CORE,
"Timestep for the contour channel with --contour-dynamics-type=Dynamic "
"(corresponds to old ParamMap parameter 'timestep=0.5')",
"contour-layer-timestep", '\0', "<float>", "0.5" }
Definition at line 1068 of file ContourChannel.C. |
|
|
Initial value:
{ MODOPT_FLAG, "ContourLayerSaveDetails", &MOC_CHANNEL, OPTEXP_SAVE,
"Whether to save detailed intermediate maps from individual scale "
"bands in the contour channel",
"save-contour-layer-details", '\0', "", "false" }
Definition at line 980 of file ContourChannel.C. |
|
|
Initial value:
{ MODOPT_FLAG, "ContourLayerSaveOutput", &MOC_CHANNEL, OPTEXP_SAVE,
"Whether to save per-iteration output from individual scale bands "
"in the contour channel",
"save-contour-layer-output", '\0', "", "false" }
Definition at line 973 of file ContourChannel.C. |
1.4.4