SourceXtractorPlusPlus 1.0.3
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
MLSegmentation.h
Go to the documentation of this file.
1
17
18
19#ifndef _SEIMPLEMENTATION_SEGMENTATION_MLSEGMENTATION_H_
20#define _SEIMPLEMENTATION_SEGMENTATION_MLSEGMENTATION_H_
21
24
25namespace SourceXtractor {
26
27
33public:
34
35 virtual ~MLSegmentation() = default;
36
37 MLSegmentation(std::shared_ptr<SourceFactory> source_factory, std::string model_path, double ml_threshold)
38 : m_source_factory(source_factory), m_model_path(model_path), m_ml_threshold(ml_threshold) {
39 assert(source_factory != nullptr);
40 }
41
43
44private:
49
51
52
54
57
58};
59
60}
61
62#endif /* _SEIMPLEMENTATION_SEGMENTATION_MLSEGMENTATION_H_ */
virtual ~MLSegmentation()=default
void labelImage(Segmentation::LabellingListener &listener, std::shared_ptr< const DetectionImageFrame > frame) override
std::vector< MLSegmentation::Tile > getTiles(const DetectionImage &image) const
std::shared_ptr< SourceFactory > m_source_factory
MLSegmentation(std::shared_ptr< SourceFactory > source_factory, std::string model_path, double ml_threshold)
Image< SeFloat > DetectionImage
Alias for the detection image, to make easier its type modification.
Definition Image.h:80
A pixel coordinate made of two integers m_x and m_y.