SourceXtractorPlusPlus
1.0.3
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
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
Image.h
PixelCoordinate.h
VectorImage.h
SourceXtractor::Image
Interface representing an image.
Definition
Image.h:44
SourceXtractor::NeighbourInfo::m_neighbour_image
std::shared_ptr< VectorImage< int > > m_neighbour_image
Definition
NeighbourInfo.h:46
SourceXtractor::NeighbourInfo::isNeighbourObjectPixel
bool isNeighbourObjectPixel(int x, int y) const
Definition
NeighbourInfo.cpp:64
SourceXtractor::NeighbourInfo::~NeighbourInfo
virtual ~NeighbourInfo()=default
SourceXtractor::NeighbourInfo::m_offset
PixelCoordinate m_offset
Definition
NeighbourInfo.h:47
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
SourceXtractor
Definition
Aperture.h:30
std::shared_ptr
SourceXtractor::PixelCoordinate
A pixel coordinate made of two integers m_x and m_y.
Definition
PixelCoordinate.h:37
std::vector
Generated by
1.14.0