16#include <peak_icv_c/algorithms/transformations/peak_icv_xyz_image_transformer.h>
77 friend peak::common::detail::BackendAccessor<XYZImage>;
83 :
Image{
peak::common::PixelFormat::Coord3D_ABC32f, undistortedDepthMap.GetSize() }
85 auto*
const depthMapHandle = peak::common::detail::BackendAccessor<Image>::BackendHandle(undistortedDepthMap);
87 auto*
const xyzImageHandle = peak::common::detail::BackendAccessor<Image>::BackendHandle(*
this);
89 const auto cType = peak::common::detail::BackendAccessor<IntrinsicParameters>::CreateCType(
92 return PEAK_ICV_C_ABI_PREFIX peak_icv_Transform_DepthMap_To_XYZImage(
93 xyzImageHandle, cType,
sizeof(peak_icv_intrinsic_parameters), depthMapHandle);
99 const auto extrinsicParametersC = peak::common::detail::BackendAccessor<ExtrinsicParameters>::CreateCType(extrinsicParameters);
102 auto* outputHandle = peak::common::detail::BackendAccessor<XYZImage>::BackendHandle(outputImage);
104 return PEAK_ICV_C_ABI_PREFIX peak_icv_Image_TransformToWorkspace(
105 this->GetHandle(), extrinsicParametersC,
sizeof(peak_icv_extrinsic_parameters), outputHandle);
This class stores and provides access to the extrinsic parameters, which include the translation,...
For detailed information about the use of ids_peak_icv Image refer to the Image Guide.
peak::common::Size GetSize() const
Provides the size of the image in pixels.
Image(const peak::common::IImageView &imageView)
Constructs an Image from an IImageView Instance.
peak::common::PixelFormat GetPixelFormat() const
Provides the pixel format of the image.
Represents an image that has undergone undistortion.
IntrinsicParameters GetIntrinsicParameters() const
Represents a three-channel image with Cartesian coordinates derived from an undistorted depth map.
XYZImage(const UndistortedImage &undistortedDepthMap)
Constructs a Cartesian coordinate image from the specified undistorted depth map.
XYZImage TransformToWorkspace(const ExtrinsicParameters &extrinsicParameters) const
Transforms the image to workspace coordinates using the specified extrinsic parameters.
void ExecuteAndMapReturnCodes(const CallableType &callableObject)