![]() |
Imaging Control 4 C++ Library 1.4.0
|
Contains functions for using data ic4::ImageBuffer objects in MVTec HALCON. More...
Static Public Member Functions | |
| static HalconCpp::HImage | wrap (const ic4::ImageBuffer &buffer, ic4::Error &err=ic4::Error::Default()) |
Wraps the passed image buffer in an HALCON HImage. | |
| static bool | canWrap (const ic4::ImageBuffer &buffer) |
| Checks whether wrap can work on the passed image buffer. | |
| static HalconCpp::HImage | copy (const ic4::ImageBuffer &buffer, ic4::Error &err=ic4::Error::Default()) |
Creates a copy of the image buffer and stores it in a HALCON HImage. | |
| static std::shared_ptr< ic4::ImageBuffer > | copy (const HalconCpp::HImage &src, std::shared_ptr< ic4::BufferPool > pool, ic4::Error &err=ic4::Error::Default()) |
Copies the contents of a HALCON HImage into a new ic4::ImageBuffer. | |
| static std::shared_ptr< ic4::ImageBuffer > | copy (const HalconCpp::HImage &src, ic4::Error &err=ic4::Error::Default()) |
Copies the contents of a HALCON HImage into a new ic4::ImageBuffer. | |
| static bool | copy (const HalconCpp::HImage &src, ic4::ImageBuffer &dest, ic4::Error &err=ic4::Error::Default()) |
Copies the contents of a HALCON HImage into an ic4::ImageBuffer. | |
Contains functions for using data ic4::ImageBuffer objects in MVTec HALCON.
The HALCON interop support functions are declared in ic4interop/interop-HALCON.h.
|
inlinestatic |
Checks whether wrap can work on the passed image buffer.
| [in] | buffer | An image buffer |
true, if the contents of the image buffer can be wrapped in a HALCON HImage, otherwise false.Mono8 and Mono16 image buffers that do not have horizontal padding.
|
inlinestatic |
Copies the contents of a HALCON HImage into a new ic4::ImageBuffer.
| [in] | src | A HALCON HImage |
| [out] | err | Reference to an error handler. See Error Handling for details. |
nullptr is returned.byte, the pixel format for the returned image buffer is ic4::PixelFormat::Mono8.uint2, the pixel format for the returned image buffer is ic4::PixelFormat::Mono16.byte, the pixel format for the returned image buffer is ic4::PixelFormat::BGRa8.uint2, the pixel format for the returned image buffer is ic4::PixelFormat::BGRa16.
|
inlinestatic |
Copies the contents of a HALCON HImage into an ic4::ImageBuffer.
| [in] | src | A HALCON HImage |
| [out] | dest | A destination buffer to receive the image data |
| [out] | err | Reference to an error handler. See Error Handling for details. |
true on success, otherwise false.byte, dest must be ic4::PixelFormat::Mono8 of the same size.uint2, dest must be ic4::PixelFormat::Mono16 of the same size.byte, dest must be ic4::PixelFormat::BGRa8 of the same size.uint2, dest must be ic4::PixelFormat::BGRa16 of the same size.
|
inlinestatic |
Copies the contents of a HALCON HImage into a new ic4::ImageBuffer.
| [in] | src | A HALCON HImage |
| [in] | pool | A buffer pool to query the new image buffer from |
| [out] | err | Reference to an error handler. See Error Handling for details. |
nullptr is returned.byte, the pixel format for the returned image buffer is ic4::PixelFormat::Mono8.uint2, the pixel format for the returned image buffer is ic4::PixelFormat::Mono16.byte, the pixel format for the returned image buffer is ic4::PixelFormat::BGRa8.uint2, the pixel format for the returned image buffer is ic4::PixelFormat::BGRa16.
|
inlinestatic |
Creates a copy of the image buffer and stores it in a HALCON HImage.
| [in] | buffer | An image buffer |
| [out] | err | Reference to an error handler. See Error Handling for details. |
HImage containing a copy of the image data from the passed image buffer.
|
inlinestatic |
Wraps the passed image buffer in an HALCON HImage.
| [in] | buffer | An image buffer |
| [out] | err | Reference to an error handler. See Error Handling for details. |
HImage using the image buffer's memory as pixel storageMono8 and Mono16 image buffers that do not have horizontal padding.