SourceXtractorPlusPlus
1.0.3
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
SEImplementation
SEImplementation
Output
LdacOutput.h
Go to the documentation of this file.
1
/*
2
* LdacOutput.h
3
*
4
* Created on: Feb 10, 2022
5
* Author: mschefer
6
*/
7
8
#ifndef _SEIMPLEMENTATION_OUTPUT_LDACOUTPUT_H_
9
#define _SEIMPLEMENTATION_OUTPUT_LDACOUTPUT_H_
10
11
#include "Table/FitsWriter.h"
12
13
#include "
SEImplementation/Output/FlushableOutput.h
"
14
15
namespace
SourceXtractor
{
16
17
class
LdacOutput
:
public
FlushableOutput
{
18
19
public
:
20
LdacOutput
(
const
std::string
& filename,
SourceToRowConverter
source_to_row,
size_t
flush_size)
21
:
FlushableOutput
(source_to_row, flush_size),
m_filename
(filename),
m_part_nb
(0),
m_rms
(0),
m_gain
(0) {
22
}
23
24
void
nextPart
()
override
;
25
26
void
outputSource
(
const
SourceInterface
& source)
override
;
27
28
protected
:
29
void
writeRows
(
const
std::vector<Euclid::Table::Row>
& rows)
override
{
30
Euclid::Table::Table
table {rows};
31
m_fits_writer
->addData(table);
32
}
33
34
private
:
35
void
writeHeaders
();
36
37
std::string
m_filename
;
38
int
m_part_nb
;
39
40
std::shared_ptr<Euclid::Table::FitsWriter>
m_fits_writer
;
41
42
std::map<std::string, MetadataEntry>
m_image_metadata
{};
43
DetectionImage::PixelType
m_rms
;
44
double
m_gain
;
45
};
46
47
}
48
49
#endif
/* _SEIMPLEMENTATION_OUTPUT_LDACOUTPUT_H_ */
FlushableOutput.h
std::string
Euclid::Table::Table
SourceXtractor::FlushableOutput::FlushableOutput
FlushableOutput(SourceToRowConverter source_to_row, size_t flush_size)
Definition
FlushableOutput.h:22
SourceXtractor::FlushableOutput::SourceToRowConverter
std::function< Euclid::Table::Row(const SourceInterface &)> SourceToRowConverter
Definition
FlushableOutput.h:20
SourceXtractor::Image< SeFloat >::PixelType
SeFloat PixelType
Definition
Image.h:48
SourceXtractor::LdacOutput::writeHeaders
void writeHeaders()
Definition
LdacOutput.cpp:142
SourceXtractor::LdacOutput::m_part_nb
int m_part_nb
Definition
LdacOutput.h:38
SourceXtractor::LdacOutput::LdacOutput
LdacOutput(const std::string &filename, SourceToRowConverter source_to_row, size_t flush_size)
Definition
LdacOutput.h:20
SourceXtractor::LdacOutput::m_image_metadata
std::map< std::string, MetadataEntry > m_image_metadata
Definition
LdacOutput.h:42
SourceXtractor::LdacOutput::nextPart
void nextPart() override
Definition
LdacOutput.cpp:185
SourceXtractor::LdacOutput::m_filename
std::string m_filename
Definition
LdacOutput.h:37
SourceXtractor::LdacOutput::m_fits_writer
std::shared_ptr< Euclid::Table::FitsWriter > m_fits_writer
Definition
LdacOutput.h:40
SourceXtractor::LdacOutput::writeRows
void writeRows(const std::vector< Euclid::Table::Row > &rows) override
Definition
LdacOutput.h:29
SourceXtractor::LdacOutput::m_gain
double m_gain
Definition
LdacOutput.h:44
SourceXtractor::LdacOutput::outputSource
void outputSource(const SourceInterface &source) override
Definition
LdacOutput.cpp:117
SourceXtractor::LdacOutput::m_rms
DetectionImage::PixelType m_rms
Definition
LdacOutput.h:43
SourceXtractor::SourceInterface
The SourceInterface is an abstract "source" that has properties attached to it.
Definition
SourceInterface.h:46
std::map
SourceXtractor
Definition
Aperture.h:30
std::shared_ptr
std::vector
Generated by
1.15.0