![]() |
IDS peak IPL v1.16.1
|
Reads an image from a file. More...
#include <peak_ipl/io/peak_ipl_image_reader.hpp>
Public Member Functions | |
| ImageReader ()=delete | |
Static Public Member Functions | |
| static Image | Read (const std::string &filePath) |
| Returns a new created image which is read from the file with the given file path. | |
| static Image | Read (const std::string &filePath, const peak::ipl::PixelFormat &pixelFormat) |
| Returns a new created image which is read from the file with the given file path. | |
Reads an image from a file.
Supported Formats are currently: JPEG, PNG and BMP
|
delete |
|
inlinestatic |
Returns a new created image which is read from the file with the given file path.
The format is specified by the file ending.
| [in] | filePath | The path to the file to read as an UTF-8 encoded string. |
| ImageFormatNotSupportedException | An image format of this file isn't supported |
| IOException | Errors during file access e.g. no permissions on this file |
| InvalidArgumentException | Arguments passed are invalid |
| Exception | An internal error has occurred |
|
inlinestatic |
Returns a new created image which is read from the file with the given file path.
The Pixel format to use is specified manually here. The function tries to interpret the file with the given format. If this isn't possible, an exception is thrown. Explicit conversion of image formats must be done manually.
| [in] | filePath | The path to the file to read as an UTF-8 encoded string. |
| [in] | pixelFormat | The Pixel format the retrieved image should have afterwards. |
| ImageFormatInterpretationException | Can't interpret this file with the given pixel format |
| ImageFormatNotSupportedException | An image format of this file isn't supported |
| IOException | Errors during file access e.g. no permissions on this file |
| InvalidArgumentException | Arguments passed are invalid |
| Exception | An internal error has occurred |