diff --git a/FaceDetector/seeta/ImageProcess.cpp b/FaceDetector/seeta/ImageProcess.cpp index 585f775..f5d4a7f 100644 --- a/FaceDetector/seeta/ImageProcess.cpp +++ b/FaceDetector/seeta/ImageProcess.cpp @@ -227,7 +227,7 @@ const seeta::Image seeta::crop_resize( const Image &img, const Rect &_rect, cons float lf_x_s = lfx_scl * n_x_d + crop_x; nx[n_x_d] = int( lf_x_s ); if( nx[n_x_d] == src_width - 1 ) - ny[n_x_d] -= 1; + nx[n_x_d] -= 1; wx[n_x_d] = lf_x_s - nx[n_x_d]; } diff --git a/FaceLandmarker/seeta/ImageProcess.cpp b/FaceLandmarker/seeta/ImageProcess.cpp index 585f775..f5d4a7f 100644 --- a/FaceLandmarker/seeta/ImageProcess.cpp +++ b/FaceLandmarker/seeta/ImageProcess.cpp @@ -227,7 +227,7 @@ const seeta::Image seeta::crop_resize( const Image &img, const Rect &_rect, cons float lf_x_s = lfx_scl * n_x_d + crop_x; nx[n_x_d] = int( lf_x_s ); if( nx[n_x_d] == src_width - 1 ) - ny[n_x_d] -= 1; + nx[n_x_d] -= 1; wx[n_x_d] = lf_x_s - nx[n_x_d]; } diff --git a/FaceRecognizer/seeta/ImageProcess.cpp b/FaceRecognizer/seeta/ImageProcess.cpp index 585f775..f5d4a7f 100644 --- a/FaceRecognizer/seeta/ImageProcess.cpp +++ b/FaceRecognizer/seeta/ImageProcess.cpp @@ -227,7 +227,7 @@ const seeta::Image seeta::crop_resize( const Image &img, const Rect &_rect, cons float lf_x_s = lfx_scl * n_x_d + crop_x; nx[n_x_d] = int( lf_x_s ); if( nx[n_x_d] == src_width - 1 ) - ny[n_x_d] -= 1; + nx[n_x_d] -= 1; wx[n_x_d] = lf_x_s - nx[n_x_d]; } diff --git a/QualityAssessor/seeta/ImageProcess.cpp b/QualityAssessor/seeta/ImageProcess.cpp index 585f775..f5d4a7f 100644 --- a/QualityAssessor/seeta/ImageProcess.cpp +++ b/QualityAssessor/seeta/ImageProcess.cpp @@ -227,7 +227,7 @@ const seeta::Image seeta::crop_resize( const Image &img, const Rect &_rect, cons float lf_x_s = lfx_scl * n_x_d + crop_x; nx[n_x_d] = int( lf_x_s ); if( nx[n_x_d] == src_width - 1 ) - ny[n_x_d] -= 1; + nx[n_x_d] -= 1; wx[n_x_d] = lf_x_s - nx[n_x_d]; }