|
| static void | WriteAsBMP (const std::string &filePath, const Image &imageToSave) |
| | Writes the specified image to the filesystem as BMP image.
|
| |
| static void | WriteAsPNG (const std::string &filePath, const Image &imageToSave, const PNGParameter ¶meter=PNGParameter()) |
| | Writes the specified image to the filesystem as PNG image.
|
| |
| static void | WriteAsJPG (const std::string &filePath, const Image &imageToSave, const JPEGParameter ¶meter=JPEGParameter()) |
| | Writes the specified image to the filesystem as JPEG image.
|
| |
| static void | WriteAsRAW (const std::string &filePath, const Image &imageToSave) |
| | Writes the specified image to the filesystem as a raw binary image.
|
| |
| static void | Write (const std::string &filePath, const Image &imageToSave) |
| | Writes the specified image to the filesystem. The type is specified by the given file ending in file name.
|
| |
Writes an image to a file.
Supported Formats are currently: JPEG, PNG and BMP and a simple RAW format
| void peak::ipl::ImageWriter::WriteAsBMP |
( |
const std::string & |
filePath, |
|
|
const Image & |
imageToSave |
|
) |
| |
|
inlinestatic |
Writes the specified image to the filesystem as BMP image.
Not all image formats can be written to a BMP file. Currently supported for: Mono8, Mono10, Mono12, RGB8, BGR8, RGBa8, BGRa8 Written as Mono: BayerGR8, BayerRG8, BayerGB8, BayerBG8, BayerGR10, BayerRG10, BayerGB10, BayerBG10, BayerGR12, BayerRG12, BayerGB12, BayerBG12 For all other formats an exception is thrown.
- Parameters
-
| [in] | filePath | The path of the file to store the image to as an UTF-8 encoded string. |
| [in] | imageToSave | The image to save. |
- Exceptions
-
- Since
- 1.0
-
1.2 Will throw ImageFormatNotSupportedException if imageToSave has a packed pixel format
-
1.6 Defined character encoding UTF-8
Writes the specified image to the filesystem as JPEG image.
Not all image formats can be written to a JPEG file. Currently supported for: Mono8, RGB8, BGR8, RGBa8, BGRa8 Written as Mono: BayerGR8, BayerRG8, BayerGB8, BayerBG8 For all other formats an exception is thrown.
- Parameters
-
| [in] | filePath | The path of the file to store the image to as an UTF-8 encoded string. |
| [in] | imageToSave | The image to save. |
| [in] | parameter | The parameter for the JPEG image e.g. compression. |
- Exceptions
-
- Since
- 1.0
-
1.6 Defined character encoding UTF-8
| void peak::ipl::ImageWriter::WriteAsPNG |
( |
const std::string & |
filePath, |
|
|
const Image & |
imageToSave, |
|
|
const PNGParameter & |
parameter = PNGParameter() |
|
) |
| |
|
inlinestatic |
Writes the specified image to the filesystem as PNG image.
Not all image formats can be written to a PNG file. Currently supported for: Mono8, Mono10, Mono12, RGB8, RGB10, RGB12, RGBa8, RGBa10, RGBa12 Written as Mono: BayerGR8, BayerRG8, BayerGB8, BayerBG8, BayerGR10, BayerRG10, BayerGB10, BayerBG10, BayerGR12, BayerRG12, BayerGB12, BayerBG12 Written as RGB: BGR8, BGR10, BGR12, BGRa8, BGRa10, RGBa12 For all other formats an exception is thrown.
- Parameters
-
| [in] | filePath | The path of the file to store the image to as an UTF-8 encoded string. |
| [in] | imageToSave | The image to save. |
| [in] | parameter | The parameter for the PNG image e.g. compression. |
- Exceptions
-
- Since
- 1.0
-
1.6 Defined character encoding UTF-8