SourceXtractorPlusPlus  0.15
Please provide a description of the project.
Public Member Functions | Public Attributes | List of all members
SourceXtractor::PixelCoordinate Class Reference

A pixel coordinate made of two integers m_x and m_y. More...

#include <PixelCoordinate.h>

Public Member Functions

 PixelCoordinate ()
 
 PixelCoordinate (int x, int y)
 
bool operator== (const PixelCoordinate &other) const
 
bool operator!= (const PixelCoordinate &other) const
 
PixelCoordinate operator* (double scalar) const
 
PixelCoordinate operator+ (const PixelCoordinate &other) const
 
PixelCoordinateoperator+= (const PixelCoordinate &other)
 
PixelCoordinate operator- (const PixelCoordinate &other) const
 
PixelCoordinateoperator-= (const PixelCoordinate &other)
 
bool operator>= (const PixelCoordinate &other) const
 
bool operator<= (const PixelCoordinate &other) const
 
bool clip (int w, int h)
 

Public Attributes

int m_x
 
int m_y
 

Detailed Description

A pixel coordinate made of two integers m_x and m_y.

Definition at line 37 of file PixelCoordinate.h.

Constructor & Destructor Documentation

◆ PixelCoordinate() [1/2]

SourceXtractor::PixelCoordinate::PixelCoordinate ( )
inline

Definition at line 40 of file PixelCoordinate.h.

Referenced by operator*(), operator+(), and operator-().

◆ PixelCoordinate() [2/2]

SourceXtractor::PixelCoordinate::PixelCoordinate ( int  x,
int  y 
)
inline

Definition at line 42 of file PixelCoordinate.h.

Member Function Documentation

◆ clip()

bool SourceXtractor::PixelCoordinate::clip ( int  w,
int  h 
)
inline

Make sure the coordinates are within a box of a given width and height

Returns
true if the coordinates have been modified (clipped)

Definition at line 90 of file PixelCoordinate.h.

References m_x, m_y, std::max(), and std::min().

Referenced by SourceXtractor::NeighbourInfo::NeighbourInfo(), and SourceXtractor::ImageAccessor< T >::nextCoordinates().

Here is the call graph for this function:

◆ operator!=()

bool SourceXtractor::PixelCoordinate::operator!= ( const PixelCoordinate other) const
inline

Definition at line 48 of file PixelCoordinate.h.

◆ operator*()

PixelCoordinate SourceXtractor::PixelCoordinate::operator* ( double  scalar) const
inline

Definition at line 52 of file PixelCoordinate.h.

References m_x, m_y, and PixelCoordinate().

Here is the call graph for this function:

◆ operator+()

PixelCoordinate SourceXtractor::PixelCoordinate::operator+ ( const PixelCoordinate other) const
inline

Definition at line 57 of file PixelCoordinate.h.

References m_x, m_y, and PixelCoordinate().

Here is the call graph for this function:

◆ operator+=()

PixelCoordinate& SourceXtractor::PixelCoordinate::operator+= ( const PixelCoordinate other)
inline

Definition at line 61 of file PixelCoordinate.h.

References m_x, and m_y.

◆ operator-()

PixelCoordinate SourceXtractor::PixelCoordinate::operator- ( const PixelCoordinate other) const
inline

Definition at line 67 of file PixelCoordinate.h.

References m_x, m_y, and PixelCoordinate().

Here is the call graph for this function:

◆ operator-=()

PixelCoordinate& SourceXtractor::PixelCoordinate::operator-= ( const PixelCoordinate other)
inline

Definition at line 71 of file PixelCoordinate.h.

References m_x, and m_y.

◆ operator<=()

bool SourceXtractor::PixelCoordinate::operator<= ( const PixelCoordinate other) const
inline

Definition at line 81 of file PixelCoordinate.h.

References m_x, and m_y.

◆ operator==()

bool SourceXtractor::PixelCoordinate::operator== ( const PixelCoordinate other) const
inline

Definition at line 44 of file PixelCoordinate.h.

References m_x, and m_y.

◆ operator>=()

bool SourceXtractor::PixelCoordinate::operator>= ( const PixelCoordinate other) const
inline

Definition at line 77 of file PixelCoordinate.h.

References m_x, and m_y.

Member Data Documentation

◆ m_x

int SourceXtractor::PixelCoordinate::m_x

Definition at line 38 of file PixelCoordinate.h.

Referenced by SourceXtractor::FlexibleModelFittingPointModel::addForSource(), SourceXtractor::FlexibleModelFittingExponentialModel::addForSource(), SourceXtractor::FlexibleModelFittingDevaucouleursModel::addForSource(), SourceXtractor::FlexibleModelFittingSersicModel::addForSource(), clip(), SourceXtractor::MeasurementFrameGroupRectangleTask::computeProperties(), SourceXtractor::MeasurementFrameRectangleTask::computeProperties(), SourceXtractor::MoffatModelFittingTask::computeProperties(), SourceXtractor::ImageAccessor< T >::firstCoordinates(), SourceXtractor::MeasurementFrameGroupRectangle::getBottomRight(), SourceXtractor::MeasurementFrameRectangle::getBottomRight(), SourceXtractor::Image< T >::getChunk(), SourceXtractor::RecenterImage< T >::getChunk(), SourceXtractor::SubImage< T >::getChunk(), SourceXtractor::getCoordX(), SourceXtractor::MeasurementFrameGroupRectangle::getHeight(), SourceXtractor::MeasurementFrameRectangle::getHeight(), SourceXtractor::getMirrorPixel(), SourceXtractor::SubImage< T >::getRepr(), SourceXtractor::MeasurementFrameGroupRectangle::getTopLeft(), SourceXtractor::MeasurementFrameRectangle::getTopLeft(), SourceXtractor::ImageChunk< T >::getValue(), SourceXtractor::ImageAccessor< T >::getValue(), SourceXtractor::VectorImage< T >::getValue(), SourceXtractor::MeasurementFrameGroupRectangle::getWidth(), SourceXtractor::MeasurementFrameRectangle::getWidth(), SourceXtractor::PixelBoundaries::getWidth(), SourceXtractor::NeighbourInfo::isNeighbourObjectPixel(), SourceXtractor::MeasurementFrameGroupRectangle::isOutsideOfFrame(), SourceXtractor::BFSSegmentation::labelSource(), SourceXtractor::MeasurementFrameGroupRectangle::MeasurementFrameGroupRectangle(), SourceXtractor::MeasurementFrameRectangle::MeasurementFrameRectangle(), SourceXtractor::NeighbourInfo::NeighbourInfo(), SourceXtractor::ImageAccessor< T >::nextCoordinates(), std::hash< SourceXtractor::PixelCoordinate >::operator()(), operator*(), operator+(), operator+=(), operator-(), operator-=(), operator<=(), operator==(), operator>=(), SourceXtractor::DFTConvolution< T, TPadding >::padKernel(), SourceXtractor::OverlappingBoundariesCriteria::shouldGroup(), and SourceXtractor::SubImage< T >::SubImage().

◆ m_y

int SourceXtractor::PixelCoordinate::m_y

Definition at line 38 of file PixelCoordinate.h.

Referenced by SourceXtractor::FlexibleModelFittingPointModel::addForSource(), SourceXtractor::FlexibleModelFittingExponentialModel::addForSource(), SourceXtractor::FlexibleModelFittingDevaucouleursModel::addForSource(), SourceXtractor::FlexibleModelFittingSersicModel::addForSource(), clip(), SourceXtractor::MeasurementFrameGroupRectangleTask::computeProperties(), SourceXtractor::MeasurementFrameRectangleTask::computeProperties(), SourceXtractor::MoffatModelFittingTask::computeProperties(), SourceXtractor::ImageAccessor< T >::firstCoordinates(), SourceXtractor::Image< T >::getChunk(), SourceXtractor::RecenterImage< T >::getChunk(), SourceXtractor::SubImage< T >::getChunk(), SourceXtractor::getCoordY(), SourceXtractor::MeasurementFrameGroupRectangle::getHeight(), SourceXtractor::MeasurementFrameRectangle::getHeight(), SourceXtractor::PixelBoundaries::getHeight(), SourceXtractor::getMirrorPixel(), SourceXtractor::SubImage< T >::getRepr(), SourceXtractor::ImageChunk< T >::getValue(), SourceXtractor::ImageAccessor< T >::getValue(), SourceXtractor::VectorImage< T >::getValue(), SourceXtractor::NeighbourInfo::isNeighbourObjectPixel(), SourceXtractor::BFSSegmentation::labelSource(), SourceXtractor::MeasurementFrameGroupRectangle::MeasurementFrameGroupRectangle(), SourceXtractor::MeasurementFrameRectangle::MeasurementFrameRectangle(), SourceXtractor::NeighbourInfo::NeighbourInfo(), SourceXtractor::ImageAccessor< T >::nextCoordinates(), std::hash< SourceXtractor::PixelCoordinate >::operator()(), operator*(), operator+(), operator+=(), operator-(), operator-=(), operator<=(), operator==(), operator>=(), SourceXtractor::OverlappingBoundariesCriteria::shouldGroup(), and SourceXtractor::SubImage< T >::SubImage().


The documentation for this class was generated from the following file: