Skip to content

Commit 4285f0b

Browse files
authored
Fixed bug in PatchGenerator.cpp when input is result of another PatchGenerator
1 parent e8a76a1 commit 4285f0b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

source/FAST/Algorithms/ImagePatch/PatchGenerator.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ void PatchGenerator::generateStream() {
212212
mRuntimeManager->stopRegularTimer("create patch");
213213
try {
214214
if(previousPatch) {
215-
addOutputData(0, previousPatch, false);
215+
addOutputData(0, previousPatch, false, false);
216216
frameAdded();
217217
}
218218
} catch(ThreadStopped &e) {
@@ -301,7 +301,7 @@ void PatchGenerator::generateStream() {
301301
patch->setFrameData("progress", std::to_string(m_progress));
302302
try {
303303
if(previousPatch) {
304-
addOutputData(0, previousPatch, false);
304+
addOutputData(0, previousPatch, false, false);
305305
frameAdded();
306306
//std::this_thread::sleep_for(std::chrono::seconds(2));
307307
}
@@ -322,7 +322,7 @@ void PatchGenerator::generateStream() {
322322
// Add final patch, and mark it has last frame
323323
previousPatch->setLastFrame(getNameOfClass());
324324
try {
325-
addOutputData(0, previousPatch, false);
325+
addOutputData(0, previousPatch, false, false);
326326
} catch(ThreadStopped &e) {
327327

328328
}
@@ -395,4 +395,4 @@ float PatchGenerator::getProgress() {
395395
return m_progress;
396396
}
397397

398-
}
398+
}

0 commit comments

Comments
 (0)