Skip to content

Commit

Permalink
fixup Custom version of cv::warpAffine for small sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
pthom committed Mar 31, 2024
1 parent 5f356ed commit 5966f42
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/immvision/internal/cv/zoom_pan_transform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,8 @@ namespace ImmVision
translation(0, 2) = tl.x;
translation(1, 2) = tl.y;


cv::warpAffine(resized, dst, translation, dst.size(), cv::INTER_AREA);
// copy resized
cv::warpAffine(resized, dst, translation, dst.size(), cv::INTER_NEAREST, cv::BORDER_TRANSPARENT);
}


Expand Down

0 comments on commit 5966f42

Please sign in to comment.