LSSTApplications
10.0+286,10.0+36,10.0+46,10.0-2-g4f67435,10.1+152,10.1+37,11.0,11.0+1,11.0-1-g47edd16,11.0-1-g60db491,11.0-1-g7418c06,11.0-2-g04d2804,11.0-2-g68503cd,11.0-2-g818369d,11.0-2-gb8b8ce7
LSSTDataManagementBasePackage
|
The base class for MaskedImageLocators (const and non-const) More...
#include <MaskedImage.h>
Classes | |
class | _x_or_y_iterator |
class | apply_x |
class | apply_y |
class | cached_location_t |
A saved relative position, providing efficient access to neighbouring pixels. More... | |
Public Types | |
typedef boost::tuple< typename ImageLocator::cached_location_t, typename MaskLocator::cached_location_t, typename VarianceLocator::cached_location_t > | IMVCachedLocation |
typedef _x_or_y_iterator< apply_x > | x_iterator |
An x_iterator that provides a view of the xy_locator (i.e. advancing one advances the other) More... | |
typedef _x_or_y_iterator< apply_y > | y_iterator |
A y_iterator that provides a view of the xy_locator (i.e. advancing one advances the other) More... | |
typedef boost::mpl::vector < ImagePixelT, MaskPixelT, VariancePixelT > | PixelTVec |
Public Member Functions | |
MaskedImageLocatorBase (ImageLocator const &img, MaskLocator const &msk, VarianceLocator const &var) | |
Construct a MaskedImageLocator from image/mask/variance locators. More... | |
Pixel | operator* () |
Dereference a locator, returning a Pixel. More... | |
Pixel | operator() (int x, int y) |
Dereference a locator, returning a Pixel offset by (x, y) from the locator. More... | |
Pixel | operator[] (cached_location_t const &cached_loc) |
Dereference a locator, returning a Pixel offset by the amount set when we created the cached_location_t . More... | |
x_iterator | x () |
y_iterator | y () |
cached_location_t | cache_location (int x, int y) const |
Create a cached_location_t offset by (x, y) from locator. More... | |
template<typename N > | |
Ref< typename boost::mpl::at < PixelTVec, N >::type >::type | apply_IMV (cached_location_t const &cached_loc) |
template<typename N > | |
Ref< typename boost::mpl::at < PixelTVec, N >::type >::type | apply_IMV () |
template<typename N > | |
Ref< typename boost::mpl::at < PixelTVec, N >::type >::type | apply_IMV (int x, int y) |
Ref< ImagePixelT >::type | image (cached_location_t const &cached_loc) |
Return a reference to the image at the offset set when we created the cached_location_t . More... | |
Ref< ImagePixelT >::type | image () |
Return a reference to the image at the current position of the locator. More... | |
Ref< ImagePixelT >::type | image (int x, int y) |
Return a reference to the image offset by (x, y) from the current position of the locator. More... | |
Ref< MaskPixelT >::type | mask (cached_location_t const &cached_loc) |
Return a reference to the mask at the offset set when we created the cached_location_t . More... | |
Ref< MaskPixelT >::type | mask () |
Return a reference to the mask at the current position of the locator. More... | |
Ref< MaskPixelT >::type | mask (int x, int y) |
Return a reference to the mask offset by (x, y) from the current position of the locator. More... | |
Ref< VariancePixelT >::type | variance (cached_location_t const &cached_loc) |
Return a reference to the variance at the offset set when we created the cached_location_t . More... | |
Ref< VariancePixelT >::type | variance () |
Return a reference to the variance at the current position of the locator. More... | |
Ref< VariancePixelT >::type | variance (int x, int y) |
Return a reference to the variance offset by (x, y) from the current position of the locator. More... | |
bool | operator== (MaskedImageLocatorBase const &rhs) |
Return true iff two locators are equal. More... | |
bool | operator!= (MaskedImageLocatorBase const &rhs) |
Return true iff two locators are not equal. More... | |
bool | operator< (MaskedImageLocatorBase const &rhs) |
Return true iff lhs is less than rhs. More... | |
MaskedImageLocatorBase & | operator+= (pair2I const &p) |
Increment the locator's x and y positions by p . More... | |
MaskedImageLocatorBase & | operator+= (detail::difference_type p) |
Increment the locator's x and y positions by p . More... | |
Protected Attributes | |
IMVLocator | _loc |
Private Types | |
typedef boost::tuple < ImageLocator, MaskLocator, VarianceLocator > | IMVLocator |
Friends | |
template<typename , typename , typename > | |
class | const_MaskedImageLocator |
The base class for MaskedImageLocators (const and non-const)
Definition at line 274 of file MaskedImage.h.
typedef boost::tuple<typename ImageLocator::cached_location_t, typename MaskLocator::cached_location_t, typename VarianceLocator::cached_location_t> lsst::afw::image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::MaskedImageLocatorBase< ImageLocator, MaskLocator, VarianceLocator, Ref >::IMVCachedLocation |
Definition at line 366 of file MaskedImage.h.
|
private |
Definition at line 275 of file MaskedImage.h.
typedef boost::mpl::vector<ImagePixelT, MaskPixelT, VariancePixelT> lsst::afw::image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::MaskedImageLocatorBase< ImageLocator, MaskLocator, VarianceLocator, Ref >::PixelTVec |
Definition at line 436 of file MaskedImage.h.
typedef _x_or_y_iterator<apply_x> lsst::afw::image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::MaskedImageLocatorBase< ImageLocator, MaskLocator, VarianceLocator, Ref >::x_iterator |
An x_iterator that provides a view of the xy_locator (i.e. advancing one advances the other)
Definition at line 368 of file MaskedImage.h.
typedef _x_or_y_iterator<apply_y> lsst::afw::image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::MaskedImageLocatorBase< ImageLocator, MaskLocator, VarianceLocator, Ref >::y_iterator |
A y_iterator that provides a view of the xy_locator (i.e. advancing one advances the other)
Definition at line 370 of file MaskedImage.h.
|
inline |
Construct a MaskedImageLocator from image/mask/variance locators.
Definition at line 388 of file MaskedImage.h.
|
inline |
Definition at line 439 of file MaskedImage.h.
|
inline |
Definition at line 444 of file MaskedImage.h.
|
inline |
Definition at line 449 of file MaskedImage.h.
|
inline |
Create a cached_location_t offset by (x, y)
from locator.
Definition at line 428 of file MaskedImage.h.
|
inline |
Return a reference to the image at the offset set when we created the cached_location_t
.
Definition at line 456 of file MaskedImage.h.
|
inline |
Return a reference to the image at the current position of the locator.
Definition at line 460 of file MaskedImage.h.
|
inline |
Return a reference to the image offset by (x, y)
from the current position of the locator.
Definition at line 464 of file MaskedImage.h.
|
inline |
Return a reference to the mask at the offset set when we created the cached_location_t
.
Definition at line 469 of file MaskedImage.h.
|
inline |
Return a reference to the mask at the current position of the locator.
Definition at line 473 of file MaskedImage.h.
|
inline |
Return a reference to the mask offset by (x, y)
from the current position of the locator.
Definition at line 477 of file MaskedImage.h.
|
inline |
Return true iff two locators are not equal.
Definition at line 499 of file MaskedImage.h.
|
inline |
Dereference a locator, returning a Pixel offset by (x, y)
from the locator.
Definition at line 401 of file MaskedImage.h.
|
inline |
Dereference a locator, returning a Pixel.
Definition at line 394 of file MaskedImage.h.
|
inline |
Increment the locator's x
and y
positions by p
.
Definition at line 508 of file MaskedImage.h.
|
inline |
Increment the locator's x
and y
positions by p
.
Definition at line 513 of file MaskedImage.h.
|
inline |
Return true iff lhs is less than rhs.
Definition at line 503 of file MaskedImage.h.
|
inline |
Return true iff two locators are equal.
Definition at line 495 of file MaskedImage.h.
|
inline |
Dereference a locator, returning a Pixel offset by the amount set when we created the cached_location_t
.
Definition at line 408 of file MaskedImage.h.
|
inline |
Return a reference to the variance at the offset set when we created the cached_location_t
.
Definition at line 482 of file MaskedImage.h.
|
inline |
Return a reference to the variance at the current position of the locator.
Definition at line 486 of file MaskedImage.h.
|
inline |
Return a reference to the variance offset by (x, y)
from the current position of the locator.
Definition at line 490 of file MaskedImage.h.
|
inline |
Return an iterator that can be used to move (or dereference) a locator
Definition at line 416 of file MaskedImage.h.
|
inline |
Return an iterator that can be used to move (or dereference) a locator
Definition at line 423 of file MaskedImage.h.
|
friend |
Definition at line 362 of file MaskedImage.h.
|
protected |
Definition at line 521 of file MaskedImage.h.