farm-ng-core
|
A image with write access to pixels and exclusive ownership. There is no copy constr / copy assignment, but move constr / assignment. More...
#include <image_view.h>
Public Member Functions | |
MutImage () | |
Constructs empty image. More... | |
MutImage (ImageLayout layout) | |
Creates new image with given layout. More... | |
MutImage (sophus::ImageSize size) | |
Creates new contiguous image with given size. More... | |
~MutImage () | |
Destructor. More... | |
MutImage (MutImage< TPixel > const &other)=delete | |
Not copy constructable. More... | |
auto | operator= (MutImage const &) -> MutImage &=delete |
Not copy assignable. More... | |
MutImage (MutImage &&img) noexcept | |
Nothrow move constructor. More... | |
auto | operator= (MutImage &&img) noexcept -> MutImage & |
Nothrow move assignment. More... | |
auto | viewMut () const -> MutImageView< TPixel > |
void | swap (MutImage &img) |
Swaps img and this. More... | |
void | reset () |
Clears image. More... | |
Static Public Member Functions | |
static auto | makeCopyFrom (ImageView< TPixel > const &view) -> MutImage |
Creates contiguous copy from view. More... | |
template<class TOtherPixel , class TUnaryOperation > | |
static auto | makeFromTransform (ImageView< TOtherPixel > view, TUnaryOperation const &unary_op) -> MutImage |
Creates new MutImage given view and unary transform function. More... | |
template<class TLhsPixel , class TRhsPixel , class TBinaryOperation > | |
static auto | makeFromTransform (ImageView< TLhsPixel > lhs, ImageView< TRhsPixel > rhs, TBinaryOperation const &binary_op) -> MutImage |
Creates new MutImage given two views and binary transform function. More... | |
Protected Member Functions | |
auto | leakAndReturnDeleter () -> MaybeLeakingUniqueDataAreaDeleter< TAllocator > |
Leaks memory and returns deleter. More... | |
Protected Attributes | |
UniqueDataArea< TAllocator > | unique_ |
MutImage has unique ownership. More... | |
Friends | |
template<class TT , class TAllocator2T > | |
class | Image |
template<class TPredicate , class TAllocator2T > | |
class | MutDynImage |
A image with write access to pixels and exclusive ownership. There is no copy constr / copy assignment, but move constr / assignment.
Content from a MutImage can be moved into an Image.
Type is nullable. In that case this->isEmpty()
is true.
|
inline |
Constructs empty image.
|
inlineexplicit |
Creates new image with given layout.
If layout is not empty, memory allocation will happen.
|
inlineexplicit |
Creates new contiguous image with given size.
If layout is not empty, memory allocation will happen.
|
inline |
Destructor.
|
delete |
Not copy constructable.
|
inlinenoexcept |
Nothrow move constructor.
|
inlineprotected |
Leaks memory and returns deleter.
|
inlinestatic |
Creates contiguous copy from view.
If view is not empty, memory allocation will happen.
|
inlinestatic |
Creates new MutImage given two views and binary transform function.
mut_image(u, v) = binary_op(lhs(u, v), rhs(u, v));
|
inlinestatic |
Creates new MutImage given view and unary transform function.
mut_image(u, v) = unary_op(view(u, v));
|
inlinenoexcept |
Nothrow move assignment.
|
delete |
Not copy assignable.
|
inline |
Clears image.
If image was not empty, memory deallocations will happen.
|
inline |
Swaps img and this.
|
inline |
|
friend |
|
friend |
|
protected |
MutImage has unique ownership.