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


Public Member Functions | |
| MutDynImage ()=default | |
| Empty image. More... | |
| MutDynImage (MutDynImage const &other)=delete | |
| Not copy constructable. More... | |
| auto | operator= (MutDynImage const &) -> MutDynImage &=delete |
| Not copy assignable. More... | |
| MutDynImage (MutDynImage &&other) noexcept=default | |
| Nothrow move constructable. More... | |
| auto | operator= (MutDynImage &&) noexcept -> MutDynImage &=default |
| Nothrow move assignable. More... | |
| template<class TPixel > | |
| MutDynImage (MutImage< TPixel, TAllocator > &&image) | |
| Create type-erased image from MutImage. More... | |
| template<class TPixel > | |
| auto | has () const noexcept -> bool |
| Return true is this contains data of type TPixel. More... | |
| template<class TPixel > | |
| auto | moveOutAs () noexcept -> MutImage< TPixel, TAllocator > |
| Returns typed MutImage. More... | |
Public Member Functions inherited from sophus::MutDynImageView< AnyImagePredicate > | |
| MutDynImageView (MutImageView< TPixel > const &image) | |
| Create type-erased image view from ImageView. More... | |
| 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... | |
| auto | mutImageView () const noexcept -> MutImageView< TPixel > |
| Returns typed image view. More... | |
| void | copyDataFrom (DynImageView< AnyImagePredicate > 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 () |
Static Public Member Functions | |
| static Expected< DynImage< TPredicate, TAllocator > > | tryFromFormat (ImageSize const &size, PixelFormat const &pixel_format) |
| Tries to create image from provided size and format. Returns error if format does not satisfy TPredicate. More... | |
| static Expected< MutDynImage< TPredicate, TAllocator > > | tryFromFormat (ImageLayout const &layout, PixelFormat const &pixel_format) |
| Tries to create image from provided size and format. Returns error if format does not satisfy TPredicate. More... | |
| static MutDynImage< TPredicate, TAllocator > | fromFormat (ImageSize const &size, PixelFormat const &pixel_format) |
| static DynImage< TPredicate, TAllocator > | fromFormat (ImageLayout const &layout, PixelFormat const &pixel_format) |
| template<class TT > | |
| static auto | makeCopyFrom (ImageView< TT > image_view) -> MutDynImage |
| static auto | makeCopyFrom (DynImageView< TPredicate > image_view) -> MutDynImage |
Static Public Member Functions inherited from sophus::DynImageView< AnyImagePredicate > | |
| static DynImageView | unsafeWrapAndPromiseProperAlignment (ImageLayout const &layout, PixelFormat const &pixel_format, void const *ptr) |
Protected Member Functions | |
| MutDynImage (ImageLayout layout, PixelFormat pixel_format, UniqueDataArea< TAllocator > unique) | |
| MutDynImage (ImageSize const &size, PixelFormat const &pixel_format) | |
| MutDynImage (ImageLayout const &layout, PixelFormat const &pixel_format) | |
Protected Member Functions inherited from sophus::MutDynImageView< AnyImagePredicate > | |
| 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) | |
Protected Attributes | |
| UniqueDataArea< TAllocator > | unique_ |
Protected Attributes inherited from sophus::DynImageView< AnyImagePredicate > | |
| ImageLayout | layout_ |
| PixelFormat | pixel_format_ |
| uint8_t const * | ptr_ |
Friends | |
| template<class TPredicate2 , class TAllocator2T > | |
| class | DynImage |
|
default |
Empty image.
|
delete |
Not copy constructable.
|
defaultnoexcept |
Nothrow move constructable.
|
inline |
Create type-erased image from MutImage.
By design not "explicit".
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlinestatic |
|
inlinestatic |
|
inlinenoexcept |
Return true is this contains data of type TPixel.
|
inlinestatic |
|
inlinestatic |
|
inlinenoexcept |
Returns typed MutImage.
Precondition: this->has<TPixel>()
|
defaultnoexcept |
Nothrow move assignable.
|
delete |
Not copy assignable.
|
inlinestatic |
Tries to create image from provided size and format. Returns error if format does not satisfy TPredicate.
|
inlinestatic |
Tries to create image from provided size and format. Returns error if format does not satisfy TPredicate.
|
friend |
|
protected |