Full width home advertisement

OpenCV

HTML

Post Page Advertisement [Top]

       In this post I am demonstrating how LogPolar transform can used to unwrap 360 degree image to panoramic image.

OpenCV LogPolar transformations
    The LogPolar function have the arguments

 src – Source image
 dst – Destination image.
 center – The transformation center;
 M – Magnitude scale parameter.
 flags – INTER_CUBIC, WARP_FILL_OUTLIERS, WARP_INVERSE_MAP etc..


C++ Code


     Mat src = imread("pan9.jpg", 1);
     Mat logPolarMat;
     logPolar(src,logPolarMat,Point(src.cols/2, src.rows/2),src.cols/8,INTER_CUBIC);

     //rotate 90 degree
     transpose(logPolarMat, logPolarMat);
     flip(logPolarMat, logPolarMat,0);

    imshow("logPolar", logPolarMat);
    imshow("src", src);
    waitKey();


Result

Source


logPolar Transform


Source


logPolar Transform



Here is another post related to unwrap fisheye image Unwrap 360 degree image using OpenCV | Converting fisheye image into panorama image

No comments:

Post a Comment

Bottom Ad [Post Page]

| Designed by Colorlib