-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.go
More file actions
76 lines (68 loc) · 1.41 KB
/
main.go
File metadata and controls
76 lines (68 loc) · 1.41 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
package main
const (
input = "./Input/image.png"
output = "./Output/output"
binerA = "./Input/binerA.png"
binerB = "./Input/binerB.png"
)
type bitPlaneSlicing struct {
input string
output string
bitP int
}
type boolean struct {
input1 string
input2 string
output string
}
type Basic struct {
input string
output string
}
type ColorModel struct {
input string
channel1 bool // Red channel, Cyan Channel, Hue Channel, Y' Channel
channel2 bool // Green channel, Magenta Channel, Saturation Channel, Cb Channel, U' Channel
channel3 bool // Blue channel, Yellow Channel, Intensity Channel, Cr Channel, V' Channel
output string
}
type geometry struct {
input string
output string
shifting int
Scale int
}
func main() {
//// bitplane
//confBit := bitPlaneSlicing{
// input: input,
// output: output + "bitplane.png",
// bitP: 5,
//}
//bitPlane(&confBit)
//
//// boolean operation
//confBool := boolean{
// input1: binerA,
// input2: binerB,
// output: output,
//}
//invert(&confBool) // in invert just take 1 input image so input1 is the one that used
//AND(&confBool)
//XOR(&confBool)
//OR(&confBool)
//
//// Color Model Operation
//confColor := ColorModel{
// input: input,
// channel1: true,
// channel2: false,
// channel3: false,
// output: output,
//}
//rgbToHsi(&confColor)
//rgbToYUV(&confColor)
//rgb2Cmyk(&confColor)
//rgbtoYCbCr(&confColor)
closing()
}