|
farm-ng-core
|
#include <mut_dyn_image_view.h>


Public Member Functions | |
| template<class TPixel > | |
| MutDynImageView (MutImageView< TPixel > const &image) | |
| Create type-erased image view from ImageView. More... | |
| template<class TPixel > | |
| auto | has () const noexcept -> bool |
| Return true is this contains data of type TPixel. More... | |
| auto | rawMutRowPtr (int v) const -> uint8_t * |
| Returns v-th row pointer. More... | |
| auto | rawMutPtr () const -> uint8_t * |
| auto | mutSubview (Eigen::Vector2i uv, sophus::ImageSize size) const -> MutDynImageView |
| Returns subview with shared ownership semantics of whole image. More... | |
| template<class TPixel > | |
| auto | mutImageView () const noexcept -> MutImageView< TPixel > |
| Returns typed image view. More... | |
| void | copyDataFrom (DynImageView< TPredicate > view) const |
| Copies data from view into this. More... | |
Public Member Functions inherited from sophus::DynImageView< AnyImagePredicate > | |
| DynImageView (ImageView< TPixel > const &image) | |
| Create type-erased image view from ImageView. More... | |
| auto | has () const noexcept -> bool |
| auto | rawRowPtr (int v) const -> uint8_t const * |
| Returns v-th row pointer. More... | |
| auto | rawPtr () const -> uint8_t const * |
| auto | layout () const -> ImageLayout const & |
| auto | imageSize () const -> ImageSize const & |
| auto | area () const -> size_t |
| auto | width () const -> int |
| auto | height () const -> int |
| auto | pitchBytes () const -> size_t |
| auto | sizeBytes () const -> size_t |
| auto | isEmpty () const -> bool |
| auto | pixelFormat () const -> PixelFormat |
| auto | numChannels () const -> int |
| auto | subview (Eigen::Vector2i uv, sophus::ImageSize size) const -> DynImageView |
| Returns subview with shared ownership semantics of whole image. More... | |
| auto | imageView () const noexcept -> ImageView< TPixel > |
| Returns typed image. More... | |
| void | setViewToEmpty () |
Protected Member Functions | |
| MutDynImageView (ImageLayout const &layout, PixelFormat const &pixel_format, void const *ptr) | |
| MutDynImageView ()=default | |
Protected Member Functions inherited from sophus::DynImageView< AnyImagePredicate > | |
| DynImageView ()=default | |
| DynImageView (ImageLayout const &layout, PixelFormat const &pixel_format, void const *ptr) | |
Additional Inherited Members | |
Static Public Member Functions inherited from sophus::DynImageView< AnyImagePredicate > | |
| static DynImageView | unsafeWrapAndPromiseProperAlignment (ImageLayout const &layout, PixelFormat const &pixel_format, void const *ptr) |
Protected Attributes inherited from sophus::DynImageView< AnyImagePredicate > | |
| ImageLayout | layout_ |
| PixelFormat | pixel_format_ |
| uint8_t const * | ptr_ |
|
inline |
Create type-erased image view from ImageView.
By design not "explicit".
|
inlineprotected |
|
protecteddefault |
|
inline |
Copies data from view into this.
Preconditions:
No-op if view is empty.
|
inlinenoexcept |
Return true is this contains data of type TPixel.
|
inlinenoexcept |
Returns typed image view.
Precondition: this->has<TPixel>()
|
inline |
Returns subview with shared ownership semantics of whole image.
|
inline |
|
inline |
Returns v-th row pointer.
Precondition: v must be in [0, height).