diff --git a/avisynth/README.txt b/avisynth/README.txt index 74c0ae0..ed4739d 100644 --- a/avisynth/README.txt +++ b/avisynth/README.txt @@ -81,7 +81,7 @@ Syntax: sigma - same as TCannyMod. (default = 0.5) - chroma - same as TCannyMod. (default = 1) + chroma - same as TCannyMod. (default = 0) opt - same as TCannyMod. (default = automated) @@ -116,7 +116,7 @@ Note: Thus, if you want to crop the left side of your source clip before this filter, you have to set crop(align=true). - - Probabry, this filter work with Avisynth+'s "MT_NICE_FILTER" mode.(from v1.0.0) + - Probabry, this filter is able to work on Avisynth+'s "MT_NICE_FILTER" mode.(from v1.0.0) - TCannyMod_avx.dll is compiled with /arch:AVX. diff --git a/avisynth/src/tcannymod.cpp b/avisynth/src/tcannymod.cpp index c8c54b4..15d8cb0 100644 --- a/avisynth/src/tcannymod.cpp +++ b/avisynth/src/tcannymod.cpp @@ -401,7 +401,7 @@ create_emask(AVSValue args, void* user_data, ise_t* env) if (sigma < 0.0f) { env->ThrowError("EMask: sigma must be greater than zero."); } - int chroma = args[2].AsInt(1); + int chroma = args[2].AsInt(0); if (chroma < 0 || chroma > 4) { env->ThrowError("EMask: chroma must be set to 0, 1, 2, 3 or 4."); }