SourceXtractorPlusPlus
0.13
Please provide a description of the project.
SEImplementation
src
lib
Plugin
DetectionFrameImages
DetectionFrameImagesTask.cpp
Go to the documentation of this file.
1
18
#include "
SEFramework/Property/DetectionFrame.h
"
19
#include "
SEImplementation/Measurement/MultithreadedMeasurement.h
"
20
21
#include "
SEImplementation/Plugin/DetectionFrameImages/DetectionFrameImages.h
"
22
#include "
SEImplementation/Plugin/DetectionFrameImages/DetectionFrameImagesTask.h
"
23
24
namespace
SourceXtractor
{
25
26
void
DetectionFrameImagesTask::computeProperties
(
SourceInterface
& source)
const
{
27
std::lock_guard<std::recursive_mutex>
lock
(
MultithreadedMeasurement::g_global_mutex
);
28
29
auto
frame = source.
getProperty
<
DetectionFrame
>().getFrame();
30
auto
width = frame->getOriginalImage()->getWidth();
31
auto
height = frame->getOriginalImage()->getHeight();
32
33
source.
setProperty
<
DetectionFrameImages
>(frame, width, height);
34
}
35
36
}
// SEImplementation namespace
37
std::lock
T lock(T... args)
SourceXtractor::DetectionFrameImages
Definition:
DetectionFrameImages.h:32
DetectionFrame.h
std::lock_guard< std::recursive_mutex >
SourceXtractor::MultithreadedMeasurement::g_global_mutex
static std::recursive_mutex g_global_mutex
Definition:
MultithreadedMeasurement.h:53
SourceXtractor
Definition:
Aperture.h:30
SourceXtractor::DetectionFrame
Definition:
DetectionFrame.h:33
SourceXtractor::DetectionFrameImagesTask::computeProperties
void computeProperties(SourceInterface &source) const override
Computes one or more properties for the Source.
Definition:
DetectionFrameImagesTask.cpp:26
DetectionFrameImagesTask.h
MultithreadedMeasurement.h
SourceXtractor::SourceInterface::getProperty
const PropertyType & getProperty(unsigned int index=0) const
Convenience template method to call getProperty() with a more user-friendly syntax.
Definition:
SourceInterface.h:57
SourceXtractor::SourceInterface
The SourceInterface is an abstract "source" that has properties attached to it.
Definition:
SourceInterface.h:46
SourceXtractor::SourceInterface::setProperty
void setProperty(Args... args)
Definition:
SourceInterface.h:72
DetectionFrameImages.h
Generated by
1.8.20