16#include <peak_icv_c/algorithms/transformations/peak_icv_xyz_image_transformer.h>
66 friend peak::common::detail::BackendAccessor<XYZImage>;
72 :
Image{
peak::common::PixelFormat::Coord3D_ABC32f, undistortedDepthMap.GetSize() }
74 auto*
const depthMapHandle = peak::common::detail::BackendAccessor<Image>::BackendHandle(undistortedDepthMap);
76 auto*
const xyzImageHandle = peak::common::detail::BackendAccessor<Image>::BackendHandle(*
this);
79 return PEAK_ICV_C_ABI_PREFIX peak_icv_Transform_DepthMap_To_XYZImage(xyzImageHandle,
80 peak::common::detail::BackendAccessor<IntrinsicParameters>::CreateCType(undistortedDepthMap.
GetIntrinsicParameters()),
87 const auto extrinsicParametersC = peak::common::detail::BackendAccessor<ExtrinsicParameters>::CreateCType(extrinsicParameters);
90 auto* outputHandle = peak::common::detail::BackendAccessor<XYZImage>::BackendHandle(outputImage);
92 return PEAK_ICV_C_ABI_PREFIX peak_icv_Image_TransformToWorkspace(this->GetHandle(), extrinsicParametersC, outputHandle);
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.
Image(const peak::common::IImageView &imageView)
Constructs an Image from an IImageView Instance. This can be a buffer or a possibility to convert oth...
peak::common::PixelFormat GetPixelFormat() const
Provides the pixel format of the image.
This class stores and provides access to the extrinsic parameters, which include the translation,...
IntrinsicParameters GetIntrinsicParameters() const
Returns the intrinsic parameters.
Transforms an undistorted depth map with radial coordinates to a three-channel image with cartesian c...
XYZImage(const UndistortedImage &undistortedDepthMap)
Constructs a XYZImage object from a given UndistortedImage.
XYZImage TransformToWorkspace(const ExtrinsicParameters &extrinsicParameters) const
Transforms a XYZ image to the workspace coordinate system using the extrinsic parameters.
void ExecuteAndMapReturnCodes(const CallableType &callableObject)