MCPcopy Create free account
hub / github.com/biometrics/openbr / finalize

Method finalize

openbr/plugins/core/pipe.cpp:142–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140 }
141
142 virtual void finalize(TemplateList &output)
143 {
144 output.clear();
145 // For each transform,
146 for (int i = 0; i < transforms.size(); i++)
147 {
148
149 // Collect any final templates
150 TemplateList last_set;
151 transforms[i]->finalize(last_set);
152 if (last_set.empty())
153 continue;
154 // Push any templates received through the remaining transforms in the sequence
155 for (int j = (i+1); j < transforms.size();j++)
156 {
157 transforms[j]->projectUpdate(last_set);
158 }
159 // append the result to the output set
160 output.append(last_set);
161 }
162 }
163
164 void init()
165 {

Callers

nothing calls this directly

Calls 4

clearMethod · 0.45
sizeMethod · 0.45
projectUpdateMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected