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"
24 class SampleListImageDataType
28 explicit SampleListImageDataType(ReleaseObjectGuard &&guardSilDT)
36 static CExports::TSILDATATYPE CreateInternal(
Size2D<int> imageSize,
int imageDimension,
DataType imageDataType,
40 CExports::TSILDATATYPE sildt = CVB_CALL_CAPI(SilCreateDataTypeImage(
42 featureWindowLoc.
X(), featureWindowLoc.
Y(), featureWindowSize.
Width(), featureWindowSize.
Height(),
43 featureWindowOrigin.
X(), featureWindowOrigin.
Y()));
46 Utilities::SystemInfo::ThrowLastError();
65 : SampleListImageDataType(ReleaseObjectGuard(CreateInternal(
66 imageSize, imageDimension, imageDataType, featureWindowLoc, featureWindowSize, featureWindowOrigin)))
68 imageSize_ = imageSize;
69 imageDimension_ = imageDimension;
70 imageDataType_ = imageDataType;
71 featureWindowSize_ = featureWindowSize;
72 featureWindowLocation_ = featureWindowLoc;
73 featureWindowOrigin_ = featureWindowOrigin;
86 : SampleListImageDataType(imageSize, imageDimension, imageDataType, featureWindowOrigin,
Point2D<int>(0, 0),
107 return handle_.Handle();
121 if (!guard.Handle ())
146 return imageDimension_;
156 return imageDataType_;
166 return featureWindowSize_;
176 return featureWindowLocation_;
187 return featureWindowOrigin_;
191 ReleaseObjectGuard handle_;
24 class SampleListImageDataType {
…};
Data type description for an image plane.
Definition data_type.hpp:23
int NativeDescriptor() const noexcept
Native data type descriptor.
Definition data_type.hpp:312
static DataType Int8BppUnsigned() noexcept
Represents 8-bit unsigned integer pixels (bytes).
Definition data_type.hpp:41
Multi-purpose 2D vector class.
Definition point_2d.hpp:20
T X() const noexcept
Gets the x-component of the point.
Definition point_2d.hpp:84
T Y() const noexcept
Gets the y-component of the point.
Definition point_2d.hpp:104
Descriptor for image data to be digested by an image list.
Definition sample_list_image_data_type.hpp:25
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:84
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:62
DataType ImageDataType() const noexcept
Data type of the images to be added to the image list.
Definition sample_list_image_data_type.hpp:154
Size2D< int > FeatureWindowSize() const noexcept
Size of the feature window.
Definition sample_list_image_data_type.hpp:164
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:174
Size2D< int > ImageSize() const noexcept
Size of the images to be added to the image list.
Definition sample_list_image_data_type.hpp:134
int ImageDimension() const noexcept
Dimension of the images to be added to the image list.
Definition sample_list_image_data_type.hpp:144
void * Handle() const noexcept
Classic API SIL handle.
Definition sample_list_image_data_type.hpp:105
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:185
Stores a pair of numbers that represents the width and the height of a subject, typically a rectangle...
Definition size_2d.hpp:20
T Height() const noexcept
Gets the vertical component of the size.
Definition size_2d.hpp:77
T Width() const noexcept
Gets the horizontal component of the size.
Definition size_2d.hpp:57
Namespace for the SampleDatabase package.
Definition decl_classification_sil.hpp:20
std::shared_ptr< SampleListImageDataType > SampleListImageDataTypePtr
Convenience shared pointer for SampleListImageDataType.
Definition sample_list_image_data_type.hpp:201
Root namespace for the Image Manager interface.
Definition c_bayer_to_rgb.h:17