-------------------------------------------------------
English
-------------------------------------------------------
Anime4KCPP CLI MSVC win64
-------------------------------------------------------
Please install ffmepg before using:
https://ffmpeg.org
-------------------------------------------------------
Infomation
version:	1.6.0
build: 	VS2019
author:	TianZerL
date: 	2020.5.2
-------------------------------------------------------
Usage:
options:
options:
options:
  -i, --input               File for loading (string [=./pic/p1.png])
  -o, --output              File for outputting (string [=output.png])
  -p, --passes              Passes for processing (int [=2])
  -n, --pushColorCount      Limit the number of color pushes (int [=2])
  -c, --strengthColor       Strength for pushing color,range 0 to 1,higher for thinner (double [=0.3])
  -g, --strengthGradient    Strength for pushing gradient,range 0 to 1,higher for sharper (double [=1])
  -z, --zoomFactor          zoom factor for resizing (double [=2])
  -t, --threads             Threads count for video processing (unsigned int [=8])
  -f, --fastMode            Faster but maybe low quality
  -v, --videoMode           Video process
  -s, --preview             Preview image
  -b, --preProcessing       Enable pre processing
  -a, --postProcessing      Enable post processing
  -r, --preFilters          Enhancement filter, only working when preProcessing is true,there are 5 options by binary:Median blur=0000001, Mean blur=0000010, CAS Sharpening=0000100, Gaussian blur weak=0001000, Gaussian blur=0010000, Bilateral filter=0100000, Bilateral filter faster=1000000, you can freely combine them, eg: Gaussian blur weak + Bilateral filter = 0001000 | 0100000 = 0101000 = 40(D) (unsigned int [=4])
  -e, --postFilters         Enhancement filter, only working when postProcessing is true,there are 5 options by binary:Median blur=0000001, Mean blur=0000010, CAS Sharpening=0000100, Gaussian blur weak=0001000, Gaussian blur=0010000, Bilateral filter=0100000, Bilateral filter faster=1000000, you can freely combine them, eg: Gaussian blur weak + Bilateral filter = 0001000 | 0100000 = 0101000 = 40(D), so you can put 40 to enable Gaussian blur weak and Bilateral filter, which also is what I recommend for image that < 1080P, 48 for image that >= 1080P, and for performance I recommend to use 72 for video that < 1080P, 80 for video that >=1080P (unsigned int [=40])
  -q, --GPUMode             Enable GPU acceleration
  -l, --listGPUs            list GPUs
  -h, --platformID          Specify the platform ID (unsigned int [=0])
  -d, --deviceID            Specify the device ID (unsigned int [=0])
  -?, --help                print this message
-------------------------------------------------------
Filters：
Enable filters can make the result like better, now Anime4kCPP support 5 filters include:

	Median blur [0000001]
	Mean blur [0000010]
	CAS Sharpening [0000100]
	Gaussian blur weak [0001000]
	Gaussian blur [0010000]
	Bilateral filter [0100000]
	Bilateral filter faster [1000000]

You can freely combine them by their binary.

eg: Gaussian blur weak + Bilateral filter = 0001000 | 0100000 = 0101000(B)= 40(D)

you can use -b to enable pre processing filters function, and then use -r to custom your own combination, normally, if you don't specify the -r manually it will be 4. You can use command like this:

Anime4KCPP -i input.png -o output.png -b -r 44

Easily use -a to enable post processing filters function, and then use -e to custom your own combination, normally, if you don't specify the -e manually it will be 40. You can use command like this to enable Gaussian blur and Bilateral filter:

Anime4KCPP -i input.png -o output.png -a -e 48

I recommend use 40(Gaussian blur weak + Bilateral filter) for image that < 1080P, 48(Gaussian blur + Bilateral filter) for image that >= 1080P, and 72(Gaussian blur weak + Bilateral filter faster) for video that < 1080P, 80(Gaussian blur + Bilateral filter faster) for video that >=1080P.

It is not sure which will be better between pre and post processing, it depends on the specific image, you can try different combination for best quality.

CAS is an adaptive sharpening technology which is open source by AMD, simple but efficient.
-------------------------------------------------------
Example:
Image processing:
Anime4KCPP -i P1.png -o output.png -p 2 -z 2 -a -b
video processing:
Anime4KCPP -i P1-1.m4v -o output.mp4 -p 1 -z 2 -v -a -e 36
-------------------------------------------------------
中文
-------------------------------------------------------
Anime4KCPP CLI MSVC win64
-------------------------------------------------------
使用之前请先安装ffmpeg
https://ffmpeg.org
-------------------------------------------------------
基本信息
版本:	1.6.0
编译信息: 	VS2019
作者:	TianZerL
日期:	2020.5.2
-------------------------------------------------------
用法:
options:
  -i, --input               待加载文件 (string [=./pic/p1.png])
  -o, --output             输出文件名 (string [=output.png])
  -p, --passes              处理次数 (int [=2])
  -n, --pushColorCount      限制边缘细化执行次数(int [=2])
  -c, --strengthColor       细化边缘，范围0-1，越大的值会越细 (double [=0.3])
  -g, --strengthGradient    锐利度，范围0-1，越大的值会越锐利 (double [=1])
  -z, --zoomFactor          缩放倍数 (double [=2])
  -t, --threads             指定处理视频时所用的线程数 (unsigned int [=8])
  -f, --fastMode            加快处理速度但可能获得低质量图像
  -v, --videoMode           视频处理模式
  -s, --preview             在处理结束后预览结果
  -b, --preProcessing       Enable pre processing
  -a, --postProcessing      启用后处理
  -r, --preFilters         选择预处理滤镜，仅当preProcessing开启时有效，可使用以下滤镜:
		Median blur=000001，Mean blur=000010，Gaussian blur weak=000100, Gaussian blur=001000, Bilateral filter=010000, Bilateral filter faster=100000，
		使用它们对应的二进制值进行自由组合，例如: Gaussian blur weak + Bilateral filter = 000100 | 010000 = 010100 = 20(D)， (unsigned int [=4])
  -e, --postFilters       选择后处理滤镜，仅当postProcessing开启时有效，可使用以下滤镜:
		Median blur=000001，Mean blur=000010，Gaussian blur weak=000100, Gaussian blur=001000, Bilateral filter=010000, Bilateral filter faster=100000，
		使用它们对应的二进制值进行自由组合，例如: Gaussian blur weak + Bilateral filter = 000100 | 010000 = 010100 = 20(D)，
		输入20即可开启Gaussian blur weak 和 Bilateral filter，这也是我推荐用于小于1080P图像的设置，对于大于等于1080P的图像推荐使用24，小于1080P的视频推荐36，
		大于等于1080P的视频推荐40 (unsigned int [=20])
  -q, --GPUMode      开启GPU加速  
  -l, --listGPUs           列出GPU平台与设备
  -h, --platformID     指定平台ID (unsigned int [=0])
  -d, --deviceID         指定设备ID (unsigned int [=0])
  -?, --help                显示帮助信息
-------------------------------------------------------
后处理滤镜：
启用后处理滤镜可以使得处理后的图像看起来更舒服，目前支持以下五种滤镜：

	Median blur [0000001]
	Mean blur [0000010]
	CAS Sharpening [0000100]
	Gaussian blur weak [0001000]
	Gaussian blur [0010000]
	Bilateral filter [0100000]
	Bilateral filter faster [1000000]

使用它们对应的二进制值进行自由组合.

例: Gaussian blur weak + Bilateral filter = 0001000 | 0100000 = 0101000(B)= 40(D)

使用 -b 开启预处理滤镜支持，-r 用于指定滤镜，-r默认为4：

Anime4KCPP -i input.png -o output.png -b -r 44


使用 -a 开启后处理滤镜支持，-e 用于指定滤镜，-e默认为40：

Anime4KCPP -i input.png -o output.png -a -e 48

对于后处理，我推荐使用 40(Gaussian blur weak + Bilateral filter) 处理小于1080P的图像，48(Gaussian blur + Bilateral filter) 处理大于等于1080P的图像，
72(Gaussian blur weak + Bilateral filter faster) 处理小于1080P的视频，80(Gaussian blur + Bilateral filter faster)处理大于等于1080P的视频.

预处理一般启用CAS即可.

CAS 是AMD开源的自适应锐化技术.
-------------------------------------------------------
示例:
图像处理:
Anime4KCPP -i P1.png -o output.png -p 2 -z 2 -a -b
视频处理:
Anime4KCPP -i P1-1.m4v -o output.mp4 -p 1 -z 2 -v -a -e 36
-------------------------------------------------------