Browse Source

fix BUG to preservem resize

pull/14722/head
shenwei41 4 years ago
parent
commit
fa60a155b2
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      mindspore/ccsrc/minddata/dataset/kernels/image/lite_cv/image_process.cc

+ 2
- 2
mindspore/ccsrc/minddata/dataset/kernels/image/lite_cv/image_process.cc View File

@@ -1721,7 +1721,7 @@ void UpdateOrientationAfineMat(const LiteMat &src, int *rotationDstWidth, int *r
(*varM)[0][2] = *rotationDstWidth - 1;
(*varM)[1][0] = 0;
(*varM)[1][1] = -1;
(*varM)[1][2] = *rotationDstWidth - 1;
(*varM)[1][2] = *rotationDstHeight - 1;
if (IM_TOOL_EXIF_ORIENTATION_180_DEG_MIRROR == srcOrientation) {
/* with (*varM)irror */
(*varM)[0][0] *= -1;
@@ -1753,7 +1753,7 @@ void UpdateOrientationAfineMat(const LiteMat &src, int *rotationDstWidth, int *r
(*varM)[0][2] = 0;
(*varM)[1][0] = -1;
(*varM)[1][1] = 0;
(*varM)[1][2] = *rotationDstWidth - 1;
(*varM)[1][2] = *rotationDstHeight - 1;
if (IM_TOOL_EXIF_ORIENTATION_270_DEG_MIRROR == srcOrientation) {
/* with Mirror */
(*varM)[0][1] *= -1;


Loading…
Cancel
Save