1 #ifndef SEGMENTIFY_HPP_ 2 #define SEGMENTIFY_HPP_ 4 #include "HyPerLayer.hpp" 5 #include "SegmentLayer.hpp" 12 virtual Response::Status
13 communicateInitInfo(std::shared_ptr<CommunicateInitInfoMessage const> message)
override;
14 virtual Response::Status allocateDataStructures()
override;
15 virtual bool activityIsSpiking()
override {
return false; }
20 int initialize(
const char *name,
HyPerCol *hc);
22 void ioParam_originalLayerName(
enum ParamsIOFlag ioFlag);
23 void ioParam_segmentLayerName(
enum ParamsIOFlag ioFlag);
26 void ioParam_inputMethod(
enum ParamsIOFlag ioFlag);
29 void ioParam_outputMethod(
enum ParamsIOFlag ioFlag);
30 virtual void allocateV()
override;
31 virtual void initializeV()
override;
32 virtual void initializeActivity()
override;
34 virtual Response::Status updateState(
double timef,
double dt)
override;
36 float calcNormDist(
float xVal,
float mean,
float binSigma);
39 int initialize_base();
42 int checkLabelValBuf(
int newSize);
43 int buildLabelToIdx(
int batchIdx);
44 int calculateLabelVals(
int batchIdx);
45 int setOutputVals(
int batchIdx);
47 char *originalLayerName;
49 char *segmentLayerName;
54 std::map<int, int> labelToIdx;
int ioParamsFillGroup(enum ParamsIOFlag ioFlag) override