2、实现
void Pinch(Mat& img, Mat& dst, int degree)
{
if (degree < 1) degree = 1;
if (degree > 32...(src_img, dst_img, rato);
imshow("Pinch图", dst_img);
}
int main() {
src_img = imread("D:\\WORK...\\5.OpenCV\\LeanOpenCV\\pic_src\\pic18.bmp");
imshow("原图", src_img);
Pinch(src_img, dst_img,...rato);
imshow("Pinch图", dst_img);
namedWindow("Pinch图");
createTrackbar("Pinch倍率", "Pinch...2、实现
void Pinch(Mat& img, Mat& dst, int x, int y, int degree)
{
if (dst.empty())
dst.create