9#include "../_cexports/c_img.h"
10#include "../_cexports/c_utilities.h"
12#include "../global.hpp"
13#include "../point_2d.hpp"
15#include "../data_type.hpp"
16#include "../iarray.hpp"
17#include "../image_plane_contiguous_iterator.hpp"
18#include "../image_plane_linear_iterator.hpp"
19#include "../image_plane_vpat_iterator.hpp"
21#include "decl_wrapped_image.hpp"
59 void *
Handle()
const noexcept override;
109 int Rank() const noexcept
override
161 template <
class Type>
171 template <
class Type>
181 template <
class Type>
191 template <
class Type>
201 template <
class Type>
211 template <
class Type>
224 template <
class Type>
234 template <
class Type>
247 template <
class Type>
257 template <
class Type>
270 template <
class Type>
280 template <
class Type>
293 template <
class Type>
303 template <
class Type>
313 template <
class Type>
323 template <
class Type>
333 template <
class Type>
343 template <
class Type>
356 template <
class Type>
366 template <
class Type>
379 template <
class Type>
389 template <
class Type>
402 template <
class Type>
412 template <
class Type>
425 template <
class Type>
435 template <
class Type>
445 template <
class Type>
455 template <
class Type>
465 template <
class Type>
475 template <
class Type>
488 template <
class Type>
489 VpatConstIterator<Type>
CEndVpat()
const;
498 template <
class Type>
511 template <
class Type>
521 template <
class Type>
534 template <
class Type>
544 template <
class Type>
553 , parentImage_(&image)
559 const Image *parentImage_ =
nullptr;
567 using PlaneT = ImagePlane;
568 using TypeList = DispatchableTypeList<std::uint8_t, std::int8_t, std::uint16_t, std::int16_t, std::uint32_t,
569 std::int32_t, std::uint64_t, std::int64_t, float,
double>;
571 static constexpr bool HasVpat =
true;
573 static int GetWidth(
const ImagePlane &plane);
574 static int GetHeight(
const ImagePlane &plane);
576 static Cvb::DataType GetDataType(
const ImagePlane &plane)
578 return plane.DataType();
581 static constexpr int GetRank(
const ImagePlane &)
586 static Cvb::Vpat GetVpat(
const ImagePlane &plane)
The Common Vision Blox image.
Definition decl_image.hpp:50
Image plane information container.
Definition decl_image_plane.hpp:31
class DataType DataType() const noexcept override
Data type descriptor for this array.
Definition detail_image_plane.hpp:337
std::uint8_t * ContiguousAccess() const
Attempt a contiguous access on the plane's pixels.
Definition detail_image_plane.hpp:56
VpatConstIterator< Type > EndVpat() const
Get iterator access to the plane.
Definition decl_image_plane.hpp:499
VpatConstIterator< Type > BeginVpat() const
Get iterator access to the plane.
Definition decl_image_plane.hpp:476
std::reverse_iterator< LinearConstIterator< Type > > REndLinear() const
Get iterator access to the plane.
Definition decl_image_plane.hpp:413
VpatIterator< Type > EndVpat()
Get iterator access to the plane.
Definition detail_image_plane.hpp:292
LinearConstIterator< Type > BeginLinear() const
Get iterator access to the plane.
Definition decl_image_plane.hpp:344
ContiguousConstIterator< Type > CBeginContiguous() const
Get iterator access to the plane.
Definition detail_image_plane.hpp:211
std::reverse_iterator< LinearIterator< Type > > RBeginLinear()
Get iterator access to the plane.
Definition detail_image_plane.hpp:249
std::reverse_iterator< ContiguousConstIterator< Type > > RBeginContiguous() const
Get iterator access to the plane.
Definition decl_image_plane.hpp:258
std::reverse_iterator< ContiguousIterator< Type > > REndContiguous()
Get iterator access to the plane.
Definition detail_image_plane.hpp:205
VpatConstIterator< Type > CEndVpat() const
Get iterator access to the plane.
Definition detail_image_plane.hpp:318
ContiguousIterator< Type > BeginContiguous()
Get iterator access to the plane.
Definition detail_image_plane.hpp:186
ContiguousIterator< Type > EndContiguous()
Get iterator access to the plane.
Definition detail_image_plane.hpp:192
std::reverse_iterator< VpatConstIterator< Type > > RBeginVpat() const
Get iterator access to the plane.
Definition decl_image_plane.hpp:522
LinearAccessData LinearAccess() const
Attempt a linear access on the plane's pixels.
Definition detail_image_plane.hpp:79
LinearConstIterator< Type > EndLinear() const
Get iterator access to the plane.
Definition decl_image_plane.hpp:367
bool TryLinearAccess(LinearAccessData &linearAccessData) const noexcept
Attempt a linear access on the plane's pixels.
Definition detail_image_plane.hpp:64
int Rank() const noexcept override
Gets the number of dimensions for this array.
Definition decl_image_plane.hpp:109
std::reverse_iterator< VpatConstIterator< Type > > CRBeginVpat() const
Get iterator access to the plane.
Definition detail_image_plane.hpp:325
VpatConstIterator< Type > CBeginVpat() const
Get iterator access to the plane.
Definition detail_image_plane.hpp:312
std::reverse_iterator< LinearConstIterator< Type > > CREndLinear() const
Get iterator access to the plane.
Definition detail_image_plane.hpp:280
LinearConstIterator< Type > CEndLinear() const
Get iterator access to the plane.
Definition detail_image_plane.hpp:267
VpatIterator< Type > BeginVpat()
Get iterator access to the plane.
Definition detail_image_plane.hpp:286
std::reverse_iterator< LinearConstIterator< Type > > CRBeginLinear() const
Get iterator access to the plane.
Definition detail_image_plane.hpp:274
std::reverse_iterator< VpatConstIterator< Type > > CREndVpat() const
Get iterator access to the plane.
Definition detail_image_plane.hpp:331
std::reverse_iterator< LinearConstIterator< Type > > RBeginLinear() const
Get iterator access to the plane.
Definition decl_image_plane.hpp:390
std::reverse_iterator< ContiguousConstIterator< Type > > CRBeginContiguous() const
Get iterator access to the plane.
Definition detail_image_plane.hpp:224
LinearIterator< Type > EndLinear()
Get iterator access to the plane.
Definition detail_image_plane.hpp:242
std::unique_ptr< Image > Map() const
Create a map from a single image plane that shares its memory with the original plane.
Definition detail_image_plane.hpp:100
ContiguousConstIterator< Type > BeginContiguous() const
Get iterator access to the plane.
Definition decl_image_plane.hpp:212
void * Handle() const noexcept override
Classic API image handle.
Definition detail_image_plane.hpp:35
bool TryContiguousAccess(std::uint8_t *&basePtr) const noexcept
Attempt a contiguous access on the plane's pixels.
Definition detail_image_plane.hpp:40
std::reverse_iterator< VpatIterator< Type > > REndVpat()
Get iterator access to the plane.
Definition detail_image_plane.hpp:305
ImagePlane(const class Plane &plane)
Implicitly convert a plane to an image plane.
Definition detail_image_plane.hpp:26
std::reverse_iterator< ContiguousIterator< Type > > RBeginContiguous()
Get iterator access to the plane.
Definition detail_image_plane.hpp:199
std::reverse_iterator< VpatConstIterator< Type > > REndVpat() const
Get iterator access to the plane.
Definition decl_image_plane.hpp:545
double GetPixel(Point2D< int > position) const
Gets the pixel value at the given position.
Definition detail_image_plane.hpp:107
ContiguousConstIterator< Type > CEndContiguous() const
Get iterator access to the plane.
Definition detail_image_plane.hpp:217
ContiguousConstIterator< Type > EndContiguous() const
Get iterator access to the plane.
Definition decl_image_plane.hpp:235
std::reverse_iterator< VpatIterator< Type > > RBeginVpat()
Get iterator access to the plane.
Definition detail_image_plane.hpp:299
int Plane() const noexcept
Plane index in the image, to which this plane refers to.
Definition decl_image_plane.hpp:149
const Image & Parent() const noexcept
Image to which this plane descriptor refers to.
Definition detail_image_plane.hpp:87
LinearIterator< Type > BeginLinear()
Get iterator access to the plane.
Definition detail_image_plane.hpp:236
LinearConstIterator< Type > CBeginLinear() const
Get iterator access to the plane.
Definition detail_image_plane.hpp:261
std::reverse_iterator< LinearIterator< Type > > REndLinear()
Get iterator access to the plane.
Definition detail_image_plane.hpp:255
std::reverse_iterator< ContiguousConstIterator< Type > > REndContiguous() const
Get iterator access to the plane.
Definition decl_image_plane.hpp:281
std::reverse_iterator< ContiguousConstIterator< Type > > CREndContiguous() const
Get iterator access to the plane.
Definition detail_image_plane.hpp:230
Linear access properties.
Definition decl_linear_access.hpp:25
Multi-purpose 2D vector class.
Definition point_2d.hpp:20
Virtual Pixel Access Table.
Definition decl_vpat.hpp:24
Root namespace for the Image Manager interface.
Definition version.hpp:11
Definition global.hpp:1049