FlowEngine 7.517
Photogrammetry Software Development Kit
Loading...
Searching...
No Matches
ImageIO.h
Go to the documentation of this file.
1/*
2 *
3 * C@@o ____ _____ __ _
4 * oC8@@@@@@@o |___ \| __ \ / _| |
5 * o@@@@@@@@@@@@O __) | | | | |_| | _____ __
6 * O@O 8@@@@@@@@@O |__ <| | | | _| |/ _ \ \ /\ / /
7 * o@@@@@@@O OOOOOCo ___) | |__| | | | | (_) \ V V /
8 * C@@@@@@@@@@@@Oo |____/|_____/|_| |_|\___/ \_/\_/
9 * o8@@@@@@@@@@@@@@@@8OOCCCC
10 * oO@@@@@@@@@@@@@@@@@@@o 3Dflow s.r.l. - www.3dflow.net
11 * oO8@@@@@@@@@@@@o Copyright 2022
12 * oO88@@@@@@@@8OCo All Rights Reserved
13 * O@@@@@@@@@@@@@@@@@@@@@@@@@8OCCoooooooCCo
14 * @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@O
15 * @@@Oo oO8@@@@@@@@@@@@@@@@8
16 *
17 */
18
19#ifndef FLOWENGINEIMAGE_H
20#define FLOWENGINEIMAGE_H
21
22#pragma once
23
24#include "CommonDef.h"
25
26namespace FlowEngine
27{
29 enum class ImagingEngine
30 {
35
36 #if defined( WIN32 )
43 WindowsImagingComponent,
44 #endif
45
49 };
50
58 class ImageIO final
59 {
60 public:
61
63 static FLE_DLL
65
68 static FLE_DLL
69 void setImagingEngine( ImagingEngine imagingEngine );
70
71 public:
72
85 static FLE_DLL
86 Result save( const Image &image, ConstStringBuffer filePath, Size bitDepth = 0 );
87
99 static FLE_DLL
100 Result getDimensions( ConstStringBuffer filePath, int &outWidth, int &outHeight );
101
116 static FLE_DLL
117 Result load( Image &image, ConstStringBuffer filePath );
118
119 public:
120
122 static FLE_DLL Index getImageFormatCount();
123
126 static FLE_DLL Size getImageFormatNameSize( Index index );
127
138 static FLE_DLL Result getImageFormatName( Index index, StringBuffer outFormatName );
139
149 static FLE_DLL Result getImageFormatCapabilities( ConstStringBuffer formatName, bool &outCanRead, bool &outCanWrite );
150
153 static FLE_DLL Size getImageFormatDescriptionSize( ConstStringBuffer formatName );
154
165 static FLE_DLL Result getImageFormatDescription( ConstStringBuffer formatName, StringBuffer outFormatDescription );
166 };
167}
168
169#endif
Utility methods related to image files.
Definition: ImageIO.h:59
static FLE_DLL Result load(Image &image, ConstStringBuffer filePath)
Definition: ImageIO.cpp:183
static FLE_DLL Result getDimensions(ConstStringBuffer filePath, int &outWidth, int &outHeight)
Definition: ImageIO.cpp:164
static FLE_DLL ImagingEngine getImagingEngine()
Definition: ImageIO.cpp:88
static FLE_DLL Size getImageFormatNameSize(Index index)
Definition: ImageIO.cpp:228
static FLE_DLL Result getImageFormatDescription(ConstStringBuffer formatName, StringBuffer outFormatDescription)
Definition: ImageIO.cpp:330
static FLE_DLL Result getImageFormatCapabilities(ConstStringBuffer formatName, bool &outCanRead, bool &outCanWrite)
Definition: ImageIO.cpp:269
static FLE_DLL Size getImageFormatDescriptionSize(ConstStringBuffer formatName)
Definition: ImageIO.cpp:301
static FLE_DLL Index getImageFormatCount()
Definition: ImageIO.cpp:214
static FLE_DLL void setImagingEngine(ImagingEngine imagingEngine)
Definition: ImageIO.cpp:106
static FLE_DLL Result save(const Image &image, ConstStringBuffer filePath, Size bitDepth=0)
Definition: ImageIO.cpp:126
static FLE_DLL Result getImageFormatName(Index index, StringBuffer outFormatName)
Definition: ImageIO.cpp:245
Definition: BoundingBoxInterface.cpp:26
std::ptrdiff_t Index
Index type.
Definition: CommonDef.h:100
ImagingEngine
The imaging engine used to read images from mass storage.
Definition: ImageIO.h:30
std::size_t Size
Size type.
Definition: CommonDef.h:103
Result
Enumerates possible results generated by FlowEngine.
Definition: CommonDef.h:45
Specialization for a Buffer of characters.
Definition: CommonDef.h:255
Specialization for a const buffer characters.
Definition: CommonDef.h:296
a Quaternion Holds information about a raw image Data is not owned
Definition: CommonDef.h:479