360toPerspective/cpp/include/Slicer360ToPerspective.hpp

25 lines
963 B
C++
Raw Normal View History

2023-04-30 14:42:10 +02:00
#ifndef H_Slicer360ToPerspective
#define H_Slicer360ToPerspective
#include <Camera.hpp>
2023-05-01 00:31:24 +02:00
#include <Image.hpp>
2023-04-30 14:42:10 +02:00
/// @brief This class encapsulates the algorithms to convert a 360-degree image to a perspective image.
class Slicer360ToPerspective {
public:
Slicer360ToPerspective();
2023-05-01 00:31:24 +02:00
/// @brief Computes the coverage of the 360-degree image by the cameras added to the slicer.
/// @param width Width of the generated 360-degree image containing the results of the analysis.
/// @param raw If true, the output is the number of cameras that see the pixel of the 360 image (8-bit monochrome image). If false, the output is a colored RGB image.
/// @return The coverage of the 360-degree image.
Image ComputeCoverage(int width, bool raw = false);
std::vector<Camera> cameras;//!< A vector of cameras that are used to convert the 360-degree image to perspective images.
2023-04-30 14:42:10 +02:00
private:
2023-05-01 00:31:24 +02:00
2023-04-30 14:42:10 +02:00
};
#endif