-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCS213-2023-S9-20220510-20220533-20220141-A1-FULL.cpp
More file actions
55 lines (53 loc) · 1.14 KB
/
Copy pathCS213-2023-S9-20220510-20220533-20220141-A1-FULL.cpp
File metadata and controls
55 lines (53 loc) · 1.14 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
//FCAI - OOP Programming - 2023 - Assignment 1
//Program Name: main.cpp
//Last Modification Date: 10/5/2023
//Purpose: Using a bitmap library to convert an image into an array in order to apply some filters on it
//version 1.0 grayscale
//Fatma Mahmoud Atta 20220510
//Shahd Mohammed Ahmed 20220533
//Reham Fawzy 20220141
//fatmamaali@gmail.com
//shahdelnassag@gmail.com
//fwrymw@gmail.com
#include <fstream>
#include <bits/stdc++.h>
#include "bmplib.h"
#include "Functions.h"
#include "RGB.h"
using namespace std;
char choice,type;
void gs(){
loadImage();
displayChoices();
cin>>choice;
cin.ignore();
initChoice(choice);
while(choice!='0'){
displayChoices();
cin>>choice;
initChoice(choice);
}
}
void rgb(){
RGBloadImage();
RGBdisplayChoices();
cin>>choice;
cin.ignore();
RGBinitChoice(choice);
while(choice!='0'){
displayChoices();
cin>>choice;
RGBinitChoice(choice);
}
}
int main(){
cout<<"Do you want to process a (G)S or (R)GB image?\n ";
cin>>type;
if(type=='g'||type=='G'){
gs();
}
else{
rgb();
}
return 0;
}