Skip to content

codingXiang/ImageProcess

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

ImageHandler

初始化 - new ImageHandler("影像路徑")

ImageHandler image_handler = new ImageHandler("影像路徑");

讀取影像 - loadImage()

BufferedImage origin_image = image_handler.loadImage();

儲存影像 - outputImage(影像檔, 影像名稱)

String image_path = "影像路徑";
ImageHandler image_handler = new ImageHandler(image_path);
image_handler.outputImage(影像檔, "測試輸出");

Filter

Gray : 灰階化

Filter.toGray(影像檔);

toNegative : 負片效果

Filter.toNegative(影像檔);

setGamma : 設定 gamma

Filter.setGamma(影像檔, gamma 值);

saltpepper : 胡椒鹽雜訊

Filter.saltpepper(影像檔);

median_filter : 3 * 3 中值濾波器

Filter.median_filter(影像檔);

mean_filter : 3 * 3 平均濾波器

Filter.mean_filter(影像檔);

sobel_filter : Sobel 取邊緣

Filter.sobel_filter(影像檔)

scale_2_binary : 二值化(取平均做門檻值)

Filter.scale_2_binary(影像檔);

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages