Skip to content

Commit

Permalink
Fix Error info
Browse files Browse the repository at this point in the history
Fix description of ccl_type range
  • Loading branch information
dtlnor committed May 2, 2024
1 parent 0037ea6 commit 9348e11
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/CCLAboveFilter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion src/CCLGetStats.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion src/CCLUnderFilter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 9348e11

Please sign in to comment.