-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.cpp
28 lines (22 loc) · 859 Bytes
/
main.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#include <iostream>
#include <filesystem>
#include <string>
#include "binaryio.h" //This is the binary input / output library, for writing and reading binary files with ease
#include "encode.h" //This is the library to encode ppm files
#include "decode.h" //This is the library to decode ppm files
int main()
{
//Sets the path for input file
fs::path inputPath = fs::current_path();
inputPath /= "samples";
inputPath /= "beach.ppm";
//Sets the path for the output file
fs::path outputPath = fs::current_path();
outputPath /= "output_images";
outputPath /= "beach_output.ppm";
//This will encode the image with the message
encodeImage(inputPath, outputPath, "This is a hidden message inside the file! ");
//This will decode the image and show on the screen
decodeImage(outputPath);
return 0;
}