29 #include <Image/ImageProcessor.h>
35 : processor(processor)
38 , abortRequested(false)
45 std::unique_lock lock(jobMutex);
46 this->objectClassNames = objectClassNames;
53 abortRequested =
false;
63 std::unique_lock lock(jobMutex);
69 abortRequested =
true;
84 processor->initObjectClasses();
87 memoryx::ObjectLocalizationResultList localResult;
89 while (!abortRequested)
94 while (!jobPending && !abortRequested)
103 ARMARX_INFO <<
"ObjectLocalizerProcessorJob::process(): exit requested";
110 ARMARX_DEBUG <<
"ObjectLocalizerProcessorJob::process(): starting localization";
120 for (
int n = 0; n < numImages; n++)
122 for (
int j = 0; j < processor->
resultImages[n]->height; j++)
124 for (
int i = 0; i < processor->
resultImages[n]->width; i++)
157 catch (std::exception& e)
164 std::unique_lock lock(jobMutex);
165 result = localResult;