AI Watch A1
Multi-person 3D skeleton detection using Intel RealSense and OpenPose with Kafka support.
ImageManager.hpp
Go to the documentation of this file.
1//
2// ImageManager.hpp
3// AI Watch A1
4//
5// Created by Denny Caruso on 30/07/22.
6//
7
8// License: Apache 2.0. See LICENSE file in root directory.
9// Copyright(c) 2022. All Rights Reserved.
10
11#ifndef ImageManager_hpp
12#define ImageManager_hpp
13
14#include <opencv2/core.hpp>
15#include <opencv2/imgcodecs.hpp>
16#include <opencv2/imgproc.hpp>
17#include <opencv2/highgui.hpp>
18#include <string>
19#include <iostream>
20#include <initializer_list>
21#include "constants.hpp"
22
23
24
30private:
36 void saveImage (std::string imageSavePath, const cv::Mat & imageToSave);
37public:
44 void loadImage (std::string imagePath, int loadType, cv::Mat & inputImage);
50 void saveImages (const std::initializer_list <cv::Mat> & images, const std::initializer_list <std::string> & imagePaths);
56 void showImages (const std::initializer_list <cv::Mat> & images, const std::initializer_list <std::string> & windowNames);
61 void releaseImages (const std::initializer_list <cv::Mat> & images);
62};
63
64#endif /* ImageManager_hpp */
65
ImageManager class is a general-purpose class useful for operations on images such as loading,...
void showImages(const std::initializer_list< cv::Mat > &images, const std::initializer_list< std::string > &windowNames)
Shows multiple images.
void releaseImages(const std::initializer_list< cv::Mat > &images)
Releases multiple images.
void saveImage(std::string imageSavePath, const cv::Mat &imageToSave)
Saves a single image.
void saveImages(const std::initializer_list< cv::Mat > &images, const std::initializer_list< std::string > &imagePaths)
Saves multiple images.
void loadImage(std::string imagePath, int loadType, cv::Mat &inputImage)
Loads a single image.