5# include "../_cexports/c_foundation.h"
7# include "../global.hpp"
8# include "../image.hpp"
9# include "../exception.hpp"
10# include "../area_2d.hpp"
11# include "../rect.hpp"
13# include "transform_2d.hpp"
42 template <
class RANGE>
45 auto valuesRange = MakeRangeAdapter<double>(values, image.
PlanesCount());
49 const_cast<double *
>(valuesRange.Data())));
73 template <
class RANGE>
74 inline typename TypedRange<void, double, RANGE>::type
InitImage(
Image &image,
const RANGE &values)
74 inline typename TypedRange<void, double, RANGE>::type
InitImage(
Image &image,
const RANGE &values) {
…}
105 aoi.SwapOrientation();
108 return Internal::DoResCallObjectOut<Image>([&](
void *&resimg) {
110 return CVB_CALL_CAPI(
AreaSubImage(image.
Handle(),
reinterpret_cast<const CExports::TArea &
>(aoi),
111 static_cast<CExports::TInterpolationMode
>(interpolation), resimg));
Structure that represents an area of interest in the image.
Definition area_2d.hpp:21
The Common Vision Blox image.
Definition decl_image.hpp:50
int PlanesCount() const noexcept
Get the number of planes for this image.
Definition decl_image.hpp:247
Rect< int > Bounds() const noexcept
Bounding rectangle of the image in pixels.
Definition decl_image.hpp:438
void * Handle() const noexcept
Classic API image handle.
Definition decl_image.hpp:237
Rectangle object.
Definition rect.hpp:24
cvbres_t InitializeImageRect(IMG ImgIn, long left, long top, long right, long bottom, double *ValuesIn)
Namespace for collection of image extension functions from the Foundation package.
Definition image_extensions.hpp:31
std::unique_ptr< Image > SubImage(const Image &image, Area2D aoi, Interpolation interpolation=Interpolation::Linear)
Extract the content of an AOI (area of interest) into a new image.
Definition image_extensions.hpp:100
TypedRange< void, double, RANGE >::type InitImage(Image &image, const RANGE &values)
Initialize the planes of this image to different values.
Definition image_extensions.hpp:74
TypedRange< void, double, RANGE >::type InitAOI(Image &image, Rect< int > aoi, const RANGE &values)
Initialize the planes of AOI (area of interest) in this image to different values.
Definition image_extensions.hpp:43
Namespace for the Foundation package.
Definition decl_metric_aqs12_calibration_piece.hpp:11
Root namespace for the Image Manager interface.
Definition c_bayer_to_rgb.h:17