3#include "../_cexports/c_sample_database.h"
5#include "../global.hpp"
6#include "../size_2d.hpp"
7#include "../point_2d.hpp"
8#include "../data_type.hpp"
17namespace SampleDatabase
28 : handle_(std::move(guardSilDT))
36 CExports::TSILDATATYPE sildt = CVB_CALL_CAPI (SilCreateDataTypeImage(imageSize.
Width(), imageSize.
Height(), imageDimension, imageDataType.
NativeDescriptor(), featureWindowLoc.
X(), featureWindowLoc.
Y(), featureWindowSize.
Width(), featureWindowSize.
Height(), featureWindowOrigin.
X(), featureWindowOrigin.
Y()));
39 Utilities::SystemInfo::ThrowLastError();
56 :
SampleListImageDataType (ReleaseObjectGuard(CreateInternal (imageSize, imageDimension, imageDataType, featureWindowLoc, featureWindowSize, featureWindowOrigin)))
58 imageSize_ = imageSize;
59 imageDimension_ = imageDimension;
60 imageDataType_ = imageDataType;
61 featureWindowSize_ = featureWindowSize;
62 featureWindowLocation_ = featureWindowLoc;
63 featureWindowOrigin_ = featureWindowOrigin;
94 return handle_.Handle();
108 if (!guard.Handle ())
133 return imageDimension_;
143 return imageDataType_;
153 return featureWindowSize_;
163 return featureWindowLocation_;
173 return featureWindowOrigin_;
177 ReleaseObjectGuard handle_;
Data type description for an image plane.
Definition: data_type.hpp:28
int NativeDescriptor() const noexcept
Native data type descriptor.
Definition: data_type.hpp:322
static DataType Int8BppUnsigned() noexcept
Represents 8-bit unsigned integer pixels (bytes).
Definition: data_type.hpp:47
T X() const noexcept
Gets the x-component of the point.
Definition: point_2d.hpp:86
T Y() const noexcept
Gets the y-component of the point.
Definition: point_2d.hpp:106
Descriptor for image data to be digested by an image list.
Definition: sample_list_image_data_type.hpp:24
SampleListImageDataType(Size2D< int > imageSize, int imageDimension, DataType imageDataType, Point2D< int > featureWindowOrigin)
Construct an image list data type descriptor for image lists that digest images.
Definition: sample_list_image_data_type.hpp:74
SampleListImageDataType(Size2D< int > imageSize, int imageDimension, DataType imageDataType, Point2D< int > featureWindowOrigin, Point2D< int > featureWindowLoc, Size2D< int > featureWindowSize)
Construct an image list data type descriptor for image lists that digest images.
Definition: sample_list_image_data_type.hpp:55
DataType ImageDataType() const noexcept
Data type of the images to be added to the image list.
Definition: sample_list_image_data_type.hpp:141
Size2D< int > FeatureWindowSize() const noexcept
Size of the feature window.
Definition: sample_list_image_data_type.hpp:151
Point2D< int > FeatureWindowLocation() const noexcept
Location of the feature window (position of left top corner inside the image).
Definition: sample_list_image_data_type.hpp:161
Size2D< int > ImageSize() const noexcept
Size of the images to be added to the image list.
Definition: sample_list_image_data_type.hpp:121
int ImageDimension() const noexcept
Dimension of the images to be added to the image list.
Definition: sample_list_image_data_type.hpp:131
void * Handle() const noexcept
Classic API SIL handle.
Definition: sample_list_image_data_type.hpp:92
Point2D< int > FeatureWindowOrigin() const noexcept
Location of the feature window origin in pixel coordinates measured from the left top corner of the f...
Definition: sample_list_image_data_type.hpp:171
T Height() const noexcept
Gets the vertical component of the size.
Definition: size_2d.hpp:79
T Width() const noexcept
Gets the horizontal component of the size.
Definition: size_2d.hpp:59
Root namespace for the Image Manager interface.
Definition: c_barcode.h:24