Template Class Image

Class Documentation

template<typename PixelT = FloatingPoint>
class Image

Public Types

using Ptr = std::shared_ptr<Image<PixelT>>
using ConstPtr = std::shared_ptr<const Image<PixelT>>
using PixelType = PixelT
using Data = Eigen::Matrix<PixelT, Eigen::Dynamic, Eigen::Dynamic>

Public Functions

inline explicit Image(const Index2D &dimensions, PixelT initial_value = data::fill::zero<PixelT>())
inline Image(IndexElement num_rows, IndexElement num_columns, PixelT initial_value = data::fill::zero<PixelT>())
inline explicit Image(Data data, PixelT initial_value = data::fill::zero<PixelT>())
inline bool empty() const
inline size_t size() const
inline void resize(IndexElement num_rows, IndexElement num_columns)
inline void clear()
inline void setToConstant(PixelT value)
inline void resetToInitialValue()
inline IndexElement getNumRows() const
inline IndexElement getNumColumns() const
inline Index2D getDimensions() const
inline Data &getData()
inline const Data &getData() const
inline bool isIndexWithinBounds(const Index2D &index) const
inline PixelT &at(const Index2D &index)
inline const PixelT &at(const Index2D &index) const
template<typename CwiseFunctor, typename R = std::invoke_result_t<CwiseFunctor, PixelT>>
inline Image<R> transform(CwiseFunctor functor) const