SourceXtractorPlusPlus
0.12
Please provide a description of the project.
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
SEFramework
SEFramework
Aperture
NeighbourInfo.h
Go to the documentation of this file.
1
17
/*
18
* NeighbourInfo.h
19
*
20
* Created on: Oct 12, 2018
21
* Author: Alejandro Alvarez
22
*/
23
24
#ifndef _SEFRAMEWORK_SEFRAMEWORK_APERTURE_NEIGHBOURINFO_H
25
#define _SEFRAMEWORK_SEFRAMEWORK_APERTURE_NEIGHBOURINFO_H
26
27
#include <vector>
28
#include "
SEFramework/Image/Image.h
"
29
#include "
SEFramework/Image/VectorImage.h
"
30
#include "
SEUtils/PixelCoordinate.h
"
31
32
namespace
SourceXtractor {
33
34
class
NeighbourInfo
{
35
public
:
36
virtual
~NeighbourInfo
() =
default
;
37
38
NeighbourInfo
(
const
PixelCoordinate
&min_pixel,
const
PixelCoordinate
&max_pixel,
39
const
std::vector<PixelCoordinate>
&pixel_list,
40
const
std::shared_ptr
<
Image<SeFloat>
> &threshold_image);
41
42
43
bool
isNeighbourObjectPixel
(
int
x
,
int
y
)
const
;
44
45
private
:
46
std::shared_ptr<VectorImage<int>
>
m_neighbour_image
;
47
PixelCoordinate
m_offset
;
48
};
49
50
}
// end SourceXtractor
51
52
#endif // _SEFRAMEWORK_SEFRAMEWORK_APERTURE_NEIGHBOURINFO_H
std::shared_ptr
x
std::shared_ptr< DependentParameter< std::shared_ptr< EngineParameter > > > x
Definition:
MoffatModelFittingTask.cpp:94
SourceXtractor::NeighbourInfo::~NeighbourInfo
virtual ~NeighbourInfo()=default
SourceXtractor::NeighbourInfo::m_neighbour_image
std::shared_ptr< VectorImage< int > > m_neighbour_image
Definition:
NeighbourInfo.h:46
y
std::shared_ptr< DependentParameter< std::shared_ptr< EngineParameter > > > y
Definition:
MoffatModelFittingTask.cpp:94
SourceXtractor::NeighbourInfo::isNeighbourObjectPixel
bool isNeighbourObjectPixel(int x, int y) const
Definition:
NeighbourInfo.cpp:60
SourceXtractor::NeighbourInfo::NeighbourInfo
NeighbourInfo(const PixelCoordinate &min_pixel, const PixelCoordinate &max_pixel, const std::vector< PixelCoordinate > &pixel_list, const std::shared_ptr< Image< SeFloat >> &threshold_image)
Definition:
NeighbourInfo.cpp:28
Image.h
SourceXtractor::NeighbourInfo::m_offset
PixelCoordinate m_offset
Definition:
NeighbourInfo.h:47
VectorImage.h
SourceXtractor::PixelCoordinate
A pixel coordinate made of two integers m_x and m_y.
Definition:
PixelCoordinate.h:37
SourceXtractor::NeighbourInfo
Definition:
NeighbourInfo.h:34
std::vector
STL class.
PixelCoordinate.h
SourceXtractor::Image
Interface representing an image.
Definition:
Image.h:43
Generated by
1.8.5