ifw-odp 5.1.1
 
Loading...
Searching...
No Matches
imageProperties.hpp
Go to the documentation of this file.
1
7
8#ifndef ODP_IMAGE_PROPERTIES_HPP
9#define ODP_IMAGE_PROPERTIES_HPP
10
11
12#ifndef __cplusplus
13#error This is a C++ include file and cannot be used from plain C
14#endif
15
16// System header files
17#include <iostream>
18
19// CPL header files
20#include "cpl_propertylist.h"
21
22// Local header files
24#include "cpl_io.h"
25
26namespace ifw::odp {
27
39 {
40 public:
41
49
50
58 virtual ~ImageProperties();
59
60
61
68 inline constexpr bool IsPropertyList() const;
69
70
77 inline cpl_propertylist *GetCplPropertyList() const;
78
79 int GetPixelDepth() const;
80 int GetWidth() const;
81 int GetHeight() const;
82 int GetNumAxes() const;
83 int GetPlanes() const;
84 bool IsCube() const;
85
92 void SetCplPropertyList(cpl_propertylist *propertyList);
93
94
95
106 virtual void Load(const std::string filename,
107 const cpl_size extension=0);
108
109
110
111
121 virtual void Unload();
122
123 // Routines to get the pixel value at given position
124
125
126
127 protected:
128 cpl_propertylist* m_cpl_property_list;
129
130
131 };
132
133}
134
135#include "imageProperties.ipp"
136
137#endif
138
139
140
141
142
143
144
145
This class handle the errors produced by the calling of image processing routines.
Definition error.hpp:34
int GetNumAxes() const
Definition imageProperties.cpp:97
virtual void Unload()
Release CPL image list.
Definition imageProperties.cpp:35
bool IsCube() const
Definition imageProperties.cpp:125
int GetWidth() const
Definition imageProperties.cpp:71
virtual ~ImageProperties()
Class destructor.
Definition imageProperties.cpp:29
void SetCplPropertyList(cpl_propertylist *propertyList)
Set CPL image list.
virtual void Load(const std::string filename, const cpl_size extension=0)
Load CPL image from a FITS file.
Definition imageProperties.cpp:44
int GetPlanes() const
Definition imageProperties.cpp:111
cpl_propertylist * m_cpl_property_list
Definition imageProperties.hpp:128
constexpr bool IsPropertyList() const
Check is CPL image list is valid.
ImageProperties()
Class constructor.
Definition imageProperties.cpp:22
int GetPixelDepth() const
Definition imageProperties.cpp:58
int GetHeight() const
Definition imageProperties.cpp:84
cpl_propertylist * GetCplPropertyList() const
Get CPL image list.
Array class source file.
Definition array.cpp:14