From 9074b3e98075903e6aac8cd491e66741305e850a Mon Sep 17 00:00:00 2001 From: Yulv-git Date: Sat, 30 Apr 2022 13:37:15 +0800 Subject: [PATCH] Fix some typos in platforms/, samples/, 3rdparty/. --- platforms/android/android.toolchain.cmake | 4 ++-- samples/cpp/tutorial_code/video/meanshift/camshift.cpp | 2 +- samples/cpp/tutorial_code/video/meanshift/meanshift.cpp | 2 +- samples/java/tutorial_code/video/meanshift/CamshiftDemo.java | 2 +- samples/java/tutorial_code/video/meanshift/MeanshiftDemo.java | 2 +- samples/winrt/ImageManipulations/MainPage.xaml.cpp | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/platforms/android/android.toolchain.cmake b/platforms/android/android.toolchain.cmake index 50b342c..cc9ded5 100644 --- a/platforms/android/android.toolchain.cmake +++ b/platforms/android/android.toolchain.cmake @@ -399,7 +399,7 @@ if( NOT ANDROID_NDK ) __INIT_VARIABLE( ANDROID_STANDALONE_TOOLCHAIN PATH ENV_ANDROID_STANDALONE_TOOLCHAIN ) if( NOT ANDROID_STANDALONE_TOOLCHAIN ) - #try to find Android NDK in one of the the default locations + #try to find Android NDK in one of the default locations set( __ndkSearchPaths ) foreach( __ndkSearchPath ${ANDROID_NDK_SEARCH_PATHS} ) foreach( suffix ${ANDROID_SUPPORTED_NDK_VERSIONS} ) @@ -413,7 +413,7 @@ if( NOT ANDROID_NDK ) message( STATUS "Using default path for Android NDK: ${ANDROID_NDK}" ) message( STATUS " If you prefer to use a different location, please define a cmake or environment variable: ANDROID_NDK" ) else() - #try to find Android standalone toolchain in one of the the default locations + #try to find Android standalone toolchain in one of the default locations __INIT_VARIABLE( ANDROID_STANDALONE_TOOLCHAIN PATH ANDROID_STANDALONE_TOOLCHAIN_SEARCH_PATH ) if( ANDROID_STANDALONE_TOOLCHAIN ) diff --git a/samples/cpp/tutorial_code/video/meanshift/camshift.cpp b/samples/cpp/tutorial_code/video/meanshift/camshift.cpp index 13965e6..4f5d796 100644 --- a/samples/cpp/tutorial_code/video/meanshift/camshift.cpp +++ b/samples/cpp/tutorial_code/video/meanshift/camshift.cpp @@ -58,7 +58,7 @@ int main(int argc, char **argv) calcHist(&hsv_roi, 1, channels, mask, roi_hist, 1, histSize, range); normalize(roi_hist, roi_hist, 0, 255, NORM_MINMAX); - // Setup the termination criteria, either 10 iteration or move by atleast 1 pt + // Setup the termination criteria, either 10 iteration or move by at least 1 pt TermCriteria term_crit(TermCriteria::EPS | TermCriteria::COUNT, 10, 1); while(true){ diff --git a/samples/cpp/tutorial_code/video/meanshift/meanshift.cpp b/samples/cpp/tutorial_code/video/meanshift/meanshift.cpp index 0e16442..e812cb5 100644 --- a/samples/cpp/tutorial_code/video/meanshift/meanshift.cpp +++ b/samples/cpp/tutorial_code/video/meanshift/meanshift.cpp @@ -58,7 +58,7 @@ int main(int argc, char **argv) calcHist(&hsv_roi, 1, channels, mask, roi_hist, 1, histSize, range); normalize(roi_hist, roi_hist, 0, 255, NORM_MINMAX); - // Setup the termination criteria, either 10 iteration or move by atleast 1 pt + // Setup the termination criteria, either 10 iteration or move by at least 1 pt TermCriteria term_crit(TermCriteria::EPS | TermCriteria::COUNT, 10, 1); while(true){ diff --git a/samples/java/tutorial_code/video/meanshift/CamshiftDemo.java b/samples/java/tutorial_code/video/meanshift/CamshiftDemo.java index 6717446..701851a 100644 --- a/samples/java/tutorial_code/video/meanshift/CamshiftDemo.java +++ b/samples/java/tutorial_code/video/meanshift/CamshiftDemo.java @@ -35,7 +35,7 @@ class Camshift { Imgproc.calcHist(Arrays.asList(hsv_roi), channels, mask, roi_hist, histSize, range); Core.normalize(roi_hist, roi_hist, 0, 255, Core.NORM_MINMAX); - // Setup the termination criteria, either 10 iteration or move by atleast 1 pt + // Setup the termination criteria, either 10 iteration or move by at least 1 pt TermCriteria term_crit = new TermCriteria(TermCriteria.EPS | TermCriteria.COUNT, 10, 1); while (true) { diff --git a/samples/java/tutorial_code/video/meanshift/MeanshiftDemo.java b/samples/java/tutorial_code/video/meanshift/MeanshiftDemo.java index 5fbdd0e..f07adb5 100644 --- a/samples/java/tutorial_code/video/meanshift/MeanshiftDemo.java +++ b/samples/java/tutorial_code/video/meanshift/MeanshiftDemo.java @@ -34,7 +34,7 @@ class Meanshift { Imgproc.calcHist(Arrays.asList(hsv_roi), channels, mask, roi_hist, histSize, range); Core.normalize(roi_hist, roi_hist, 0, 255, Core.NORM_MINMAX); - // Setup the termination criteria, either 10 iteration or move by atleast 1 pt + // Setup the termination criteria, either 10 iteration or move by at least 1 pt TermCriteria term_crit = new TermCriteria(TermCriteria.EPS | TermCriteria.COUNT, 10, 1); while (true) { diff --git a/samples/winrt/ImageManipulations/MainPage.xaml.cpp b/samples/winrt/ImageManipulations/MainPage.xaml.cpp index bd897fc..73febc2 100644 --- a/samples/winrt/ImageManipulations/MainPage.xaml.cpp +++ b/samples/winrt/ImageManipulations/MainPage.xaml.cpp @@ -91,7 +91,7 @@ void MainPage::InvalidateSize() // We have different widths to use depending on the view state if (ApplicationView::Value != ApplicationViewState::Snapped) { - // Make us as big as the the left over space, factoring in the ListBox width, the ListBox margins. + // Make us as big as the left over space, factoring in the ListBox width, the ListBox margins. // and the LayoutRoot's margins InputSection->Width = ((availableWidth) - (layoutRootMarginLeft + layoutRootMarginRight + listBoxMarginLeft + listBoxMarginRight)); -- 2.7.4