Template Class MaskedImage::MaskedImageLocatorBase¶
Defined in File MaskedImage.h
Nested Relationships¶
This class is a nested type of Template Class MaskedImage.
Class Documentation¶
-
template<typename
ImageLocator
, typenameMaskLocator
, typenameVarianceLocator
, template<typename> classRef
= Reference>
classMaskedImageLocatorBase
The base class for MaskedImageLocators (const and non-const)
Public Types
-
template<>
typedef boost::tuple<typename ImageLocator::cached_location_t, typename MaskLocator::cached_location_t, typename VarianceLocator::cached_location_t>IMVCachedLocation
-
template<>
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)
-
template<>
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)
-
template<>
typedef boost::mpl::vector<ImagePixelT, MaskPixelT, VariancePixelT>PixelTVec
Public Functions
-
template<>
MaskedImageLocatorBase
(ImageLocator const &img, MaskLocator const &msk, VarianceLocator const &var) Construct a MaskedImageLocator from image/mask/variance locators.
-
template<>
Pixeloperator*
() Dereference a locator, returning a Pixel.
-
template<>
Pixeloperator()
(int x, int y) Dereference a locator, returning a Pixel offset by
(x, y)
from the locator.
-
template<>
Pixeloperator[]
(cached_location_t const &cached_loc) Dereference a locator, returning a Pixel offset by the amount set when we created the
cached_location_t
-
template<>
x_iteratorx
() Return an iterator that can be used to move (or dereference) a locator
- Note
this x_locator is xy_locator::x_locator, not MaskedImage::x_locator
-
template<>
y_iteratory
() Return an iterator that can be used to move (or dereference) a locator
- Note
this y_locator is xy_locator::y_locator, not MaskedImage::y_locator
-
template<>
cached_location_tcache_location
(int x, int y) const Create a cached_location_t offset by
(x, y)
from locator.
-
template<typename
N
>
Ref<typename boost::mpl::at<PixelTVec, N>::type>::typeapply_IMV
(cached_location_t const &cached_loc)
-
template<typename
N
>
Ref<typename boost::mpl::at<PixelTVec, N>::type>::typeapply_IMV
()
-
template<typename
N
>
Ref<typename boost::mpl::at<PixelTVec, N>::type>::typeapply_IMV
(int x, int y)
-
template<>
Ref<ImagePixelT>::typeimage
(cached_location_t const &cached_loc) Return a reference to the image at the offset set when we created the
cached_location_t
-
template<>
Ref<ImagePixelT>::typeimage
() Return a reference to the image at the current position of the locator.
-
template<>
Ref<ImagePixelT>::typeimage
(int x, int y) Return a reference to the image offset by
(x, y)
from the current position of the locator.
-
template<>
Ref<MaskPixelT>::typemask
(cached_location_t const &cached_loc) Return a reference to the mask at the offset set when we created the
cached_location_t
-
template<>
Ref<MaskPixelT>::typemask
() Return a reference to the mask at the current position of the locator.
-
template<>
Ref<MaskPixelT>::typemask
(int x, int y) Return a reference to the mask offset by
(x, y)
from the current position of the locator.
-
template<>
Ref<VariancePixelT>::typevariance
(cached_location_t const &cached_loc) Return a reference to the variance at the offset set when we created the
cached_location_t
-
template<>
Ref<VariancePixelT>::typevariance
() Return a reference to the variance at the current position of the locator.
-
template<>
Ref<VariancePixelT>::typevariance
(int x, int y) Return a reference to the variance offset by
(x, y)
from the current position of the locator.
-
template<>
booloperator==
(MaskedImageLocatorBase const &rhs) Return true iff two locators are equal.
-
template<>
booloperator!=
(MaskedImageLocatorBase const &rhs) Return true iff two locators are not equal.
-
template<>
booloperator<
(MaskedImageLocatorBase const &rhs) Return true iff lhs is less than rhs.
-
template<>
MaskedImageLocatorBase &operator+=
(pair2I const &p) Increment the locator’s
x
andy
positions byp
-
template<>
MaskedImageLocatorBase &operator+=
(detail::difference_type p) Increment the locator’s
x
andy
positions byp
-
template<>
IMVLocator const &getLoc
() const
Protected Attributes
-
template<>
IMVLocator_loc
-
class
cached_location_t
A saved relative position, providing efficient access to neighbouring pixels.
Public Functions
-
template<>
template<>cached_location_t
(IMVLocator const &loc, int x, int y) Create a cached_location_t that can be used to access pixels
(x, y)
away fromloc
Public Members
-
template<>
template<>
IMVCachedLocation_imv
Friends
-
friend
lsst::afw::image::MaskedImage::MaskedImageLocatorBase::const_MaskedImageLocator
-
template<>
-
template<>