eVision C++ API 26.10.0-beta.2.dev
Loading...
Searching...
No Matches
eVision::EGrabberBridge::EGrabberDepthMap16 Class Reference

The EGrabberDepthMap16 class is used to wrap an EGrabber buffer whose pixel type is "Coord3D_C16". It can be used in eVision processing as an EDepthMap16 object. More...

#include <EGrabberBridge.h>

Inheritance diagram for eVision::EGrabberBridge::EGrabberDepthMap16:
Collaboration diagram for eVision::EGrabberBridge::EGrabberDepthMap16:

Public Member Functions

 EGrabberDepthMap16 (const BufferInfo &infos)
 Constructs an EGrabberDepthMap16.
 EGrabberDepthMap16 (FormatConverter &converter, const BufferInfo &infos)
Public Member Functions inherited from eVision::Easy3D::EDepthMap16
 EDepthMap16 ()
 Creates a 16 bits EDepthMap.
 EDepthMap16 (int32_t width, int32_t height)
 Creates a 16 bits EDepthMap.
 EDepthMap16 (const eVision::Easy3D::EDepthMap16 &other)
 Creates a 16 bits EDepthMap.
virtual ~EDepthMap16 () throw ()
eVision::Easy3D::EDepthMap16 & operator= (const eVision::Easy3D::EDepthMap16 &other)
 Assignment operator.
virtual float GetZResolution () const
 Access the Z Resolution (depth units per grey scale value).
virtual void SetZResolution (float resolution)
 Access the Z Resolution (depth units per grey scale value).
eVision::EDepth16 GetUndefinedValue () const
 Returns the Undefined value. That value is used to mark pixels with no valid depth value.
virtual int32_t GetWidth () const
 Access depth map Width.
virtual void SetWidth (int32_t width)
 Access depth map Width.
virtual int32_t GetHeight () const
 Access depth map Height.
virtual void SetHeight (int32_t height)
 Access depth map Height.
virtual bool IsVoid () const
 Tests if the EDepthMap16 object has a size of zero.
virtual int32_t GetRowPitch () const
 Returns the buffer row pitch.
virtual void * GetBufferPtr ()
 Retrieves the pointer of the pixel buffer.
virtual void * GetBufferPtr (int32_t x, int32_t y)
 Retrieves the pointer of the pixel buffer.
virtual const void * GetBufferPtr () const
 Retrieves the pointer of the pixel buffer.
virtual const void * GetBufferPtr (int32_t x, int32_t y) const
 Retrieves the pointer of the pixel buffer.
virtual void * GetCheckedBufferPtr (int32_t x, int32_t y)
 Retrieves the pointer of the pixel buffer.
virtual const void * GetCheckedBufferPtr (int32_t x, int32_t y) const
 Retrieves the pointer of the pixel buffer.
virtual eVision::EImageType GetType () const
 Returns the image type.
eVision::EDepth16 GetPixel (int32_t x, int32_t y) const
 Gets the value of a pixel.
virtual float GetZValue (const int32_t x, const int32_t y) const
 Gets Z value of a pixel.
void SetPixel (eVision::EDepth16 value, int32_t x, int32_t y)
 Sets the value of a pixel.
virtual void SetBufferPtr (int32_t width, int32_t height, void *imagePointer, int32_t bitsPerRow)
 Sets the pointer to an externally allocated buffer.
virtual void SetBufferPtr (int32_t width, int32_t height, void *imagePointer)
 Sets the pointer to an externally allocated buffer.
virtual void UseExternalBuffer (int32_t width, int32_t height, void *buffer, int32_t rowPitch)
 Sets the pointer to an externally allocated buffer.
virtual void SetSize (int32_t width, int32_t height)
 Sets the width and height of a DepthMap.
virtual void SetSize (const eVision::Easy3D::EDepthMap &other)
 Sets the width and height of a DepthMap.
virtual void Draw (eVision::EDrawAdapter *graphicContext, float zoomX, float zoomY, float panX, float panY) const
 Draws a DepthMap in a device context.
virtual void Draw (eVision::EDrawAdapter *graphicContext, float zoomX, float zoomY, float panX) const
 Draws a DepthMap in a device context.
virtual void Draw (eVision::EDrawAdapter *graphicContext, float zoomX, float zoomY) const
 Draws a DepthMap in a device context.
virtual void Draw (eVision::EDrawAdapter *graphicContext, float zoomX) const
 Draws a DepthMap in a device context.
virtual void Draw (eVision::EDrawAdapter *graphicContext) const
 Draws a DepthMap in a device context.
virtual void Draw (eVision::EDrawAdapter *graphicContext, float zoomX, float zoomY, float panX, float panY, eVision::EC24 colorUndefinedPixel) const
 Draws a DepthMap in a device context.
virtual void Draw (eVision::EDrawAdapter *graphicContext, eVision::EC24Vector *c24Vector, float zoomX, float zoomY, float panX, float panY) const
 Draws a DepthMap in a device context.
virtual void Draw (eVision::EDrawAdapter *graphicContext, eVision::EC24Vector *c24Vector, float zoomX, float zoomY, float panX) const
 Draws a DepthMap in a device context.
virtual void Draw (eVision::EDrawAdapter *graphicContext, eVision::EC24Vector *c24Vector, float zoomX, float zoomY) const
 Draws a DepthMap in a device context.
virtual void Draw (eVision::EDrawAdapter *graphicContext, eVision::EC24Vector *c24Vector, float zoomX) const
 Draws a DepthMap in a device context.
virtual void Draw (eVision::EDrawAdapter *graphicContext, eVision::EC24Vector *c24Vector) const
 Draws a DepthMap in a device context.
virtual void Draw (eVision::EDrawAdapter *graphicContext, eVision::EC24Vector *c24Vector, float zoomX, float zoomY, float panX, float panY, eVision::EC24 colorUndefinedPixel) const
 Draws a DepthMap in a device context.
virtual void Draw (eVision::EDrawAdapter *graphicContext, eVision::EBW8Vector *bw8Vector, float zoomX, float zoomY, float panX, float panY) const
 Draws a DepthMap in a device context.
virtual void Draw (eVision::EDrawAdapter *graphicContext, eVision::EBW8Vector *bw8Vector, float zoomX, float zoomY, float panX) const
 Draws a DepthMap in a device context.
virtual void Draw (eVision::EDrawAdapter *graphicContext, eVision::EBW8Vector *bw8Vector, float zoomX, float zoomY) const
 Draws a DepthMap in a device context.
virtual void Draw (eVision::EDrawAdapter *graphicContext, eVision::EBW8Vector *bw8Vector, float zoomX) const
 Draws a DepthMap in a device context.
virtual void Draw (eVision::EDrawAdapter *graphicContext, eVision::EBW8Vector *bw8Vector) const
 Draws a DepthMap in a device context.
virtual void Draw (eVision::EDrawAdapter *graphicContext, eVision::EBW8Vector *bw8Vector, float zoomX, float zoomY, float panX, float panY, eVision::EC24 colorUndefinedPixel) const
 Draws a DepthMap in a device context.
virtual void Draw (HDC graphicContext, float zoomX, float zoomY, float panX, float panY) const
 Draws a DepthMap in a device context.
virtual void Draw (HDC graphicContext, float zoomX, float zoomY, float panX) const
 Draws a DepthMap in a device context.
virtual void Draw (HDC graphicContext, float zoomX, float zoomY) const
 Draws a DepthMap in a device context.
virtual void Draw (HDC graphicContext, float zoomX) const
 Draws a DepthMap in a device context.
virtual void Draw (HDC graphicContext) const
 Draws a DepthMap in a device context.
virtual void Draw (HDC graphicContext, float zoomX, float zoomY, float panX, float panY, eVision::EC24 colorUndefinedPixel) const
 Draws a DepthMap in a device context.
virtual void Draw (HDC graphicContext, eVision::EC24Vector *c24Vector, float zoomX, float zoomY, float panX, float panY) const
 Draws a DepthMap in a device context.
virtual void Draw (HDC graphicContext, eVision::EC24Vector *c24Vector, float zoomX, float zoomY, float panX) const
 Draws a DepthMap in a device context.
virtual void Draw (HDC graphicContext, eVision::EC24Vector *c24Vector, float zoomX, float zoomY) const
 Draws a DepthMap in a device context.
virtual void Draw (HDC graphicContext, eVision::EC24Vector *c24Vector, float zoomX) const
 Draws a DepthMap in a device context.
virtual void Draw (HDC graphicContext, eVision::EC24Vector *c24Vector) const
 Draws a DepthMap in a device context.
virtual void Draw (HDC graphicContext, eVision::EC24Vector *c24Vector, float zoomX, float zoomY, float panX, float panY, eVision::EC24 colorUndefinedPixel) const
 Draws a DepthMap in a device context.
virtual void Draw (HDC graphicContext, eVision::EBW8Vector *bw8Vector, float zoomX, float zoomY, float panX, float panY) const
 Draws a DepthMap in a device context.
virtual void Draw (HDC graphicContext, eVision::EBW8Vector *bw8Vector, float zoomX, float zoomY, float panX) const
 Draws a DepthMap in a device context.
virtual void Draw (HDC graphicContext, eVision::EBW8Vector *bw8Vector, float zoomX, float zoomY) const
 Draws a DepthMap in a device context.
virtual void Draw (HDC graphicContext, eVision::EBW8Vector *bw8Vector, float zoomX) const
 Draws a DepthMap in a device context.
virtual void Draw (HDC graphicContext, eVision::EBW8Vector *bw8Vector) const
 Draws a DepthMap in a device context.
virtual void Draw (HDC graphicContext, eVision::EBW8Vector *bw8Vector, float zoomX, float zoomY, float panX, float panY, eVision::EC24 colorUndefinedPixel) const
 Draws a DepthMap in a device context.
virtual void DrawImage (eVision::EDrawAdapter *graphicContext, float zoomX, float zoomY, float panX, float panY, eVision::EC24 colorUndefinedPixel) const
 Displays the internal image buffer.
virtual void DrawImage (eVision::EDrawAdapter *graphicContext, float zoomX, float zoomY, float panX, float panY) const
 Displays the internal image buffer.
virtual void DrawImage (eVision::EDrawAdapter *graphicContext, float zoomX, float zoomY, float panX) const
 Displays the internal image buffer.
virtual void DrawImage (eVision::EDrawAdapter *graphicContext, float zoomX, float zoomY) const
 Displays the internal image buffer.
virtual void DrawImage (eVision::EDrawAdapter *graphicContext, float zoomX) const
 Displays the internal image buffer.
virtual void DrawImage (eVision::EDrawAdapter *graphicContext) const
 Displays the internal image buffer.
virtual void DrawImage (eVision::EDrawAdapter *graphicContext, eVision::EC24Vector *c24Vector, float zoomX, float zoomY, float panX, float panY, eVision::EC24 colorUndefinedPixel) const
 Displays the internal image buffer.
virtual void DrawImage (eVision::EDrawAdapter *graphicContext, eVision::EC24Vector *c24Vector, float zoomX, float zoomY, float panX, float panY) const
 Displays the internal image buffer.
virtual void DrawImage (eVision::EDrawAdapter *graphicContext, eVision::EC24Vector *c24Vector, float zoomX, float zoomY, float panX) const
 Displays the internal image buffer.
virtual void DrawImage (eVision::EDrawAdapter *graphicContext, eVision::EC24Vector *c24Vector, float zoomX, float zoomY) const
 Displays the internal image buffer.
virtual void DrawImage (eVision::EDrawAdapter *graphicContext, eVision::EC24Vector *c24Vector, float zoomX) const
 Displays the internal image buffer.
virtual void DrawImage (eVision::EDrawAdapter *graphicContext, eVision::EC24Vector *c24Vector) const
 Displays the internal image buffer.
virtual void DrawImage (eVision::EDrawAdapter *graphicContext, eVision::EBW8Vector *bw8Vector, float zoomX, float zoomY, float panX, float panY, eVision::EC24 colorUndefinedPixel) const
 Displays the internal image buffer.
virtual void DrawImage (eVision::EDrawAdapter *graphicContext, eVision::EBW8Vector *bw8Vector, float zoomX, float zoomY, float panX, float panY) const
 Displays the internal image buffer.
virtual void DrawImage (eVision::EDrawAdapter *graphicContext, eVision::EBW8Vector *bw8Vector, float zoomX, float zoomY, float panX) const
 Displays the internal image buffer.
virtual void DrawImage (eVision::EDrawAdapter *graphicContext, eVision::EBW8Vector *bw8Vector, float zoomX, float zoomY) const
 Displays the internal image buffer.
virtual void DrawImage (eVision::EDrawAdapter *graphicContext, eVision::EBW8Vector *bw8Vector, float zoomX) const
 Displays the internal image buffer.
virtual void DrawImage (eVision::EDrawAdapter *graphicContext, eVision::EBW8Vector *bw8Vector) const
 Displays the internal image buffer.
virtual void DrawImage (HDC graphicContext, float zoomX, float zoomY, float panX, float panY, eVision::EC24 colorUndefinedPixel) const
 Displays the internal image buffer.
virtual void DrawImage (HDC graphicContext, float zoomX, float zoomY, float panX, float panY) const
 Displays the internal image buffer.
virtual void DrawImage (HDC graphicContext, float zoomX, float zoomY, float panX) const
 Displays the internal image buffer.
virtual void DrawImage (HDC graphicContext, float zoomX, float zoomY) const
 Displays the internal image buffer.
virtual void DrawImage (HDC graphicContext, float zoomX) const
 Displays the internal image buffer.
virtual void DrawImage (HDC graphicContext) const
 Displays the internal image buffer.
virtual void DrawImage (HDC graphicContext, eVision::EC24Vector *c24Vector, float zoomX, float zoomY, float panX, float panY, eVision::EC24 colorUndefinedPixel) const
 Displays the internal image buffer.
virtual void DrawImage (HDC graphicContext, eVision::EC24Vector *c24Vector, float zoomX, float zoomY, float panX, float panY) const
 Displays the internal image buffer.
virtual void DrawImage (HDC graphicContext, eVision::EC24Vector *c24Vector, float zoomX, float zoomY, float panX) const
 Displays the internal image buffer.
virtual void DrawImage (HDC graphicContext, eVision::EC24Vector *c24Vector, float zoomX, float zoomY) const
 Displays the internal image buffer.
virtual void DrawImage (HDC graphicContext, eVision::EC24Vector *c24Vector, float zoomX) const
 Displays the internal image buffer.
virtual void DrawImage (HDC graphicContext, eVision::EC24Vector *c24Vector) const
 Displays the internal image buffer.
virtual void DrawImage (HDC graphicContext, eVision::EBW8Vector *bw8Vector, float zoomX, float zoomY, float panX, float panY, eVision::EC24 colorUndefinedPixel) const
 Displays the internal image buffer.
virtual void DrawImage (HDC graphicContext, eVision::EBW8Vector *bw8Vector, float zoomX, float zoomY, float panX, float panY) const
 Displays the internal image buffer.
virtual void DrawImage (HDC graphicContext, eVision::EBW8Vector *bw8Vector, float zoomX, float zoomY, float panX) const
 Displays the internal image buffer.
virtual void DrawImage (HDC graphicContext, eVision::EBW8Vector *bw8Vector, float zoomX, float zoomY) const
 Displays the internal image buffer.
virtual void DrawImage (HDC graphicContext, eVision::EBW8Vector *bw8Vector, float zoomX) const
 Displays the internal image buffer.
virtual void DrawImage (HDC graphicContext, eVision::EBW8Vector *bw8Vector) const
 Displays the internal image buffer.
virtual void Load (const std::string &path)
 Restores the EDepthMap16 stored in the given eVision file.
virtual void Load (eVision::ESerializer *serializer)
virtual void LoadImage (const std::string &path, bool withMetadata)
 Restores the EDepthMap16 image stored in the given image file.
virtual void LoadImage (const std::string &path)
 Restores the EDepthMap16 image stored in the given image file.
virtual void Save (const std::string &path) const
 Saves the EDepthMap16 object to the given eVision file.
virtual void Save (eVision::ESerializer *serializer) const
virtual void SaveImage (const std::string &path, eVision::EImageFileType type, bool withMetadata) const
 Saves the EDepthMap16 image to the given image file.
virtual void SaveImage (const std::string &path, eVision::EImageFileType type) const
 Saves the EDepthMap16 image to the given image file.
virtual void SaveImage (const std::string &path) const
 Saves the EDepthMap16 image to the given image file.
virtual void SaveJpeg (const std::string &path, int quality) const
 Saves the EDepthMap16 object to the given image file, in JPEG format.
virtual void SaveJpeg (const std::string &path) const
 Saves the EDepthMap16 object to the given image file, in JPEG format.
virtual void SaveJpeg2K (const std::string &path, int quality) const
 Saves the EDepthMap16 object to the given image file, in JPEG 2000 format.
virtual void SaveJpeg2K (const std::string &path) const
 Saves the EDepthMap16 object to the given image file, in JPEG 2000 format.
virtual void LoadMetadata (const std::string &path)
 Loads the metadata from a file in JSON format.
virtual void SaveMetadata (const std::string &path)
 Saves the metadata to a file in JSON format.
virtual void LoadImageAndMetadata (const std::string &pathImage, const std::string &pathMetadata)
 Loads the image and the metadata from a file in JSON format.
virtual void SaveImageAndMetadata (const std::string &pathImage, const std::string &pathMetadata, eVision::EImageFileType type) const
 Saves the image and the metadata to a JSON format file.
virtual void SaveImageAndMetadata (const std::string &pathImage, const std::string &pathMetadata) const
 Saves the image and the metadata to a JSON format file.
virtual void AddMetadata (const std::string &Key, const std::string &value)
 Adds a metadata key (name) and value. Overwrites if exists.
virtual void ModifyMetadata (const std::string &Key, const std::string &value)
 Changes the value of an existing metadata.
virtual std::string GetMetadata (const std::string &Key) const
 Returns string value of the given metadata.
virtual void DeleteMetadata (const std::string &Key)
 Deletes an existing metadata.
virtual void ClearMetadata ()
 Deletes all metadata.
void CopyMetadataTo (eVision::Easy3D::EDepthMap16 &other) const
 Copies all metadata to another EDepthMap16.
eVision::EImageBW16 & AsEImage ()
 Casts the EDepthMap16 to an EImageBW16 to use with the eVision 2D tools.
const eVision::EImageBW16 & AsEImage () const
 Casts the EDepthMap16 to an EImageBW16 to use with the eVision 2D tools.
virtual void Clear ()
 Clears the depth map: replaces all pixels with undefined value.
void FillUndefinedPixelsWithMedian (eVision::Easy3D::EDepthMap16 &outMap, uint32_t halfOfKernelWidth, uint32_t halfOfKernelHeight) const
 Fills undefined pixels, used to fill the "holes" in the depth map using a median rectangular kernel of odd size.
void FillUndefinedPixelsWithMedian (eVision::Easy3D::EDepthMap16 &outMap, uint32_t halfOfKernelWidth) const
 Fills undefined pixels, used to fill the "holes" in the depth map using a median rectangular kernel of odd size.
void FillUndefinedPixelsWithMedian (eVision::Easy3D::EDepthMap16 &outMap) const
 Fills undefined pixels, used to fill the "holes" in the depth map using a median rectangular kernel of odd size.
void FillUndefinedPixels (eVision::Easy3D::EDepthMap16 &outMap, eVision::Easy3D::EFillUndefinedPixelsDirection direction, eVision::Easy3D::EFillUndefinedPixelsMethod method) const
 Fills undefined pixels, used to fill the "holes" in the depth map.
void FillUndefinedPixels (eVision::Easy3D::EDepthMap16 &outMap, eVision::Easy3D::EFillUndefinedPixelsDirection direction) const
 Fills undefined pixels, used to fill the "holes" in the depth map.
void FillUndefinedPixels (eVision::Easy3D::EDepthMap16 &outMap) const
 Fills undefined pixels, used to fill the "holes" in the depth map.
virtual eVision::Easy3D::EAxisSystemType GetAxisSystemType () const
 Manage the axis coordinate system.
virtual void SetAxisSystemType (eVision::Easy3D::EAxisSystemType baseType)
 Manage the axis coordinate system.
virtual void ConvertCoordinatesPixelToMap (int xBuffer, int yBuffer, float &x3D, float &y3D) const
 Converts Pixel coordinates to 3D Map coordinates.
virtual eVision::EPoint ConvertCoordinatesPixelToMap (eVision::EIntPoint pixelCoordinates) const
 Converts Pixel coordinates to 3D Map coordinates.
virtual bool ConvertCoordinatesMapToPixel (float x3D, float y3D, int &xBuffer, int &yBuffer) const
 Converts 3D Map coordinates to Pixel coordinates.
virtual bool ConvertCoordinatesMapToPixel (const eVision::EPoint &mapCoordinates, eVision::EIntPoint &pixelCoordinates) const
 Converts 3D Map coordinates to Pixel coordinates.
 EDepthMap16 (CppWrapperInternal::InternalConstructor)
Public Member Functions inherited from eVision::Easy3D::EDepthMap
virtual ~EDepthMap () throw ()
 EDepthMap (CppWrapperInternal::InternalConstructor)

Additional Inherited Members

Static Public Member Functions inherited from eVision::Easy3D::EDepthMap
static std::unique_ptr< eVision::Easy3D::EDepthMap > Create (const std::string &path)
 Factory method to allocate and read a DepthMap from a file. Depending on the serialized EDepthMap type, it returns the corresponding EDepthMap8, EDepthMap16 or EDepthMap32f object. The allocated EDepthMap must be released after use.
Public Attributes inherited from eVision::Easy3D::EDepthMap
CppWrapperInternal::WrappedClass wrappedClass_

Detailed Description

The EGrabberDepthMap16 class is used to wrap an EGrabber buffer whose pixel type is "Coord3D_C16". It can be used in eVision processing as an EDepthMap16 object.

Constructor & Destructor Documentation

◆ EGrabberDepthMap16() [1/2]

eVision::EGrabberBridge::EGrabberDepthMap16::EGrabberDepthMap16 ( const BufferInfo & infos)

Constructs an EGrabberDepthMap16.

Parameters
infosInformation pertaining to an EGrabber buffer
converterEGrabber format converter

The FormatConverter class allows automatic pixel format conversions. If no format converter is provided, the pixel format of the buffer must be "Coord3D_C16"

◆ EGrabberDepthMap16() [2/2]

eVision::EGrabberBridge::EGrabberDepthMap16::EGrabberDepthMap16 ( FormatConverter & converter,
const BufferInfo & infos )