1 #ifndef SEGMENTLAYER_HPP_ 2 #define SEGMENTLAYER_HPP_ 4 #include "HyPerLayer.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; }
17 const std::map<int, int> getCenterIdxBuf(
int batch) {
return centerIdx[batch]; }
21 int initialize(
const char *name,
HyPerCol *hc);
23 void ioParam_originalLayerName(
enum ParamsIOFlag ioFlag);
24 void ioParam_segmentMethod(
enum ParamsIOFlag ioFlag);
25 virtual void initializeActivity()
override;
27 virtual void allocateV()
override;
28 virtual void initializeV()
override;
30 virtual Response::Status updateState(
double timef,
double dt)
override;
33 int initialize_base();
34 int checkLabelBufSize(
int newSize);
36 int loadCenterIdxMap(
int batchIdx,
int numLabels);
38 int checkIdxBufSize(
int newSize);
42 char *originalLayerName;
58 std::map<int, int> maxX;
59 std::map<int, int> maxY;
60 std::map<int, int> minX;
61 std::map<int, int> minY;
64 std::vector<std::map<int, int>> centerIdx;
int ioParamsFillGroup(enum ParamsIOFlag ioFlag) override