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"
57 void *
Handle()
const noexcept override;
107 int Rank() const noexcept
override
107 int Rank() const noexcept
override {
…}
159 template <
class Type>
169 template <
class Type>
179 template <
class Type>
189 template <
class Type>
199 template <
class Type>
209 template <
class Type>
222 template <
class Type>
232 template <
class Type>
245 template <
class Type>
255 template <
class Type>
268 template <
class Type>
278 template <
class Type>
291 template <
class Type>
301 template <
class Type>
311 template <
class Type>
321 template <
class Type>
331 template <
class Type>
341 template <
class Type>
354 template <
class Type>
364 template <
class Type>
377 template <
class Type>
387 template <
class Type>
400 template <
class Type>
410 template <
class Type>
423 template <
class Type>
433 template <
class Type>
443 template <
class Type>
453 template <
class Type>
463 template <
class Type>
473 template <
class Type>
486 template <
class Type>
487 VpatConstIterator<Type>
CEndVpat()
const;
496 template <
class Type>
509 template <
class Type>
519 template <
class Type>
532 template <
class Type>
542 template <
class Type>
551 , parentImage_(&image)
557 const Image *parentImage_ =
nullptr;
565 using PlaneT = ImagePlane;
566 using TypeList = DispatchableTypeList<std::uint8_t, std::int8_t, std::uint16_t, std::int16_t, std::uint32_t,
567 std::int32_t, std::uint64_t, std::int64_t, float,
double>;
569 static constexpr bool HasVpat =
true;
571 static int GetWidth(
const ImagePlane &plane);
572 static int GetHeight(
const ImagePlane &plane);
574 static Cvb::DataType GetDataType(
const ImagePlane &plane)
576 return plane.DataType();
579 static constexpr int GetRank(
const ImagePlane &)
584 static Cvb::Vpat GetVpat(
const ImagePlane &plane)
The Common Vision Blox image.
Definition decl_image.hpp:45
Image plane information container.
Definition decl_image_plane.hpp:29
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:497
VpatConstIterator< Type > BeginVpat() const
Get iterator access to the plane.
Definition decl_image_plane.hpp:474
std::reverse_iterator< LinearConstIterator< Type > > REndLinear() const
Get iterator access to the plane.
Definition decl_image_plane.hpp:411
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:342
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:256
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:520
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:365
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:107
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:388
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:210
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:543
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:233
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:147
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:279
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 c_bayer_to_rgb.h:17
Definition global.hpp:1080