Class Span¶
Defined in File Span.h
Class Documentation¶
-
class
Span A range of pixels within one row of an Image
Public Types
-
typedef SpanPixelIterator
Iterator¶ An iterator over points in the Span.
Public Functions
-
Span(int y, int x0, int x1)¶ - Parameters
y: Row that Span’s inx0: Starting column (inclusive)x1: Ending column (inclusive)
-
~Span()¶
-
int
getX0() const¶ Return the starting x-value.
-
int &
getX0()¶ Return the starting x-value.
-
int
getX1() const¶ Return the ending x-value.
-
int &
getX1()¶ Return the ending x-value.
-
int
getY() const¶ Return the y-value.
-
int &
getY()¶ Return the y-value.
-
int
getWidth() const¶ Return the number of pixels.
-
int
getMinX() const¶ Minimum x-value.
-
int
getMaxX() const¶ Maximum x-value.
-
int
getBeginX() const¶ Begin (inclusive) x-value.
-
int
getEndX() const¶ End (exclusive) x-value.
-
bool
contains(int x) const¶
-
bool
contains(int x, int y) const¶
-
bool
isEmpty() const¶ Return true if the span contains no pixels.
-
void
shift(int dx, int dy)¶
Friends
-
friend
lsst::afw::geom::Span::detection::Footprint
-
std::ostream &
operator<<(std::ostream &os, Span const &span)¶ Stream output; delegates to toString().
-
typedef SpanPixelIterator