File tree 1 file changed +54
-0
lines changed
1 file changed +54
-0
lines changed Original file line number Diff line number Diff line change
1
+ ## ImageHandler
2
+ ### 初始化 - new ImageHandler("影像路徑")
3
+ ```` java
4
+ ImageHandler image_handler = new ImageHandler (" 影像路徑" );
5
+ ````
6
+ ### 讀取影像 - loadImage()
7
+ ```` java
8
+ BufferedImage origin_image = image_handler. loadImage();
9
+ ````
10
+ ### 儲存影像 - outputImage(影像檔, 影像名稱)
11
+ ```` java
12
+ String image_path = " 影像路徑" ;
13
+ ImageHandler image_handler = new ImageHandler (image_path);
14
+ image_handler. outputImage(影像檔, " 測試輸出" );
15
+
16
+ ````
17
+ ## Filter
18
+ ### Gray : 灰階化
19
+ ```` java
20
+ Filter . toGray(影像檔);
21
+ ````
22
+ ### toNegative : 負片效果
23
+ ```` java
24
+ Filter . toNegative(影像檔);
25
+ ````
26
+
27
+ ### setGamma : 設定 gamma
28
+ ```` java
29
+ Filter . setGamma(影像檔, gamma 值);
30
+ ````
31
+
32
+ ### saltpepper : 胡椒鹽雜訊
33
+ ```` java
34
+ Filter . saltpepper(影像檔);
35
+ ````
36
+
37
+ ### median_filter : 3 * 3 中值濾波器
38
+ ```` java
39
+ Filter . median_filter(影像檔);
40
+ ````
41
+
42
+ ### mean_filter : 3 * 3 平均濾波器
43
+ ```` java
44
+ Filter . mean_filter(影像檔);
45
+ ````
46
+
47
+ ### sobel_filter : Sobel 取邊緣
48
+ ```` java
49
+ Filter . sobel_filter(影像檔)
50
+ ````
51
+ ### scale_2_binary : 二值化(取平均做門檻值)
52
+ ```` java
53
+ Filter . scale_2_binary(影像檔);
54
+ ````
You can’t perform that action at this time.
0 commit comments