Code base obscuration (for images) 1.0
It implements different obscuration methods on portable images (.pgm and .ppm)
|
Utility class for handling .pgm image files. More...
#include <filesystemPGM.hpp>
Static Public Member Functions | |
static bool | is_pgm (const std::string &extension) |
Check if the file extension is .pgm. | |
static void | getFilePathsOfPGMFilesFromFolder (std::vector< std::string > &imagePaths, std::string folderPath) |
Get the file paths of all .pgm images in a folder. | |
Utility class for handling .pgm image files.
This class provides functions for checking if a file extension is .pgm and for retrieving the file paths of all .pgm images in a folder. It is inspired by Norman Hutte's Functions.h.
|
static |
Get the file paths of all .pgm images in a folder.
imagePaths | Vector to store the file paths of the .pgm images |
folderPath | Path of the folder to search for .pgm images |
This function clears the imagePaths vector and then iterates through all the files in the folder specified by folderPath. If a file is a regular file (not a directory) and its extension is .pgm, the file path is added to the imagePaths vector.
|
static |
Check if the file extension is .pgm.
extension | The file extension to check |