Hello,
I want to give shape like cyndrical image to my UIImage. I am using objective c and opencv library.
With stitcher class we are able to provide shape for the images with below code,
cv::Mat stitch (vector<Mat>& images)
{
imgs = images;
Mat pano;
Stitcher stitcher = Stitcher::createDefault(try_use_gpu);
Stitcher.setWarper( new cv::CylindricalWarper);
Stitcher::Status status = stitcher.stitch(imgs, pano);
if (status != Stitcher::OK)
{
cout << "Can't stitch images, error code = " << int(status) << endl;
//return 0;
}
return pano;
}
sticher works with more than one image. It's not work with one image.
opencv provide cylindrical method link, But how we can use this method for warping Image? If any one provide some source or code or give some idea, How i can use this, It's help me a lot.
Thank in advance.