From 9348e1126cfe1bdd6fb2d1c343a39fce2a49e9e0 Mon Sep 17 00:00:00 2001 From: dtlnor Date: Thu, 2 May 2024 12:05:09 +0900 Subject: [PATCH] Fix Error info Fix description of ccl_type range --- src/CCLAboveFilter.cpp | 2 +- src/CCLGetStats.cpp | 2 +- src/CCLUnderFilter.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/CCLAboveFilter.cpp b/src/CCLAboveFilter.cpp index 346243c..99b6b2e 100644 --- a/src/CCLAboveFilter.cpp +++ b/src/CCLAboveFilter.cpp @@ -75,7 +75,7 @@ void VS_CC excludeCCLAboveCreate(const VSMap* in, VSMap* out, void* userData, VS d->ccl_type = cv::CCL_DEFAULT; else { if (ccl_type < -1 || ccl_type > 5) { - vsapi->mapSetError(out, "ExcludeCCLAbove: ccl_type must be between -1 and 6."); + vsapi->mapSetError(out, "ExcludeCCLAbove: ccl_type must be between -1 and 5."); vsapi->freeNode(d->node); return; } diff --git a/src/CCLGetStats.cpp b/src/CCLGetStats.cpp index 5acad75..af34540 100644 --- a/src/CCLGetStats.cpp +++ b/src/CCLGetStats.cpp @@ -85,7 +85,7 @@ void VS_CC getCCLStatsCreate(const VSMap* in, VSMap* out, void* userData, VSCore d->ccl_type = cv::CCL_DEFAULT; else { if (ccl_type < -1 || ccl_type > 5) { - vsapi->mapSetError(out, "GetCCLStats: ccl_type must be between -1 and 6."); + vsapi->mapSetError(out, "GetCCLStats: ccl_type must be between -1 and 5."); vsapi->freeNode(d->node); return; } diff --git a/src/CCLUnderFilter.cpp b/src/CCLUnderFilter.cpp index 7cddc31..59a8eab 100644 --- a/src/CCLUnderFilter.cpp +++ b/src/CCLUnderFilter.cpp @@ -75,7 +75,7 @@ void VS_CC excludeCCLUnderCreate(const VSMap* in, VSMap* out, void* userData, VS d->ccl_type = cv::CCL_DEFAULT; else { if (ccl_type < -1 || ccl_type > 5) { - vsapi->mapSetError(out, "ExcludeCCLUnder: ccl_type must be between -1 and 6."); + vsapi->mapSetError(out, "ExcludeCCLUnder: ccl_type must be between -1 and 5."); vsapi->freeNode(d->node); return; }