![]() ![]() ![]() Mat descriptors_object, descriptors_scene Įpute(gray_image1, keypoints_object, descriptors_object) Įpute(gray_image2, keypoints_scene, descriptors_scene) Vector keypoints_object, keypoints_scene ĭtect(gray_image1, keypoints_object) ĭtect(gray_image2, keypoints_scene) First step: feature extraction with Orb Rect current_frame_roi(img.cols, img.rows, final_img.cols - img.cols, final_img.rows - img.rows) Ĭurrent_frame = final_img(current_frame_roi) ĬvtColor(current_frame, gray_image1, CV_RGB2GRAY) ĬvtColor(img_loop, gray_image2, CV_RGB2GRAY) i take only a part of the ccomplete final image Mat f_roi(final_img,Rect(img.cols,img.rows,img.cols,img.rows)) Mat final_img(Size(img.cols * 3, img.rows * 3), CV_8UC3) Here's my code, I hope someone could help me to see the light at the end of the tunnel!!! // I create the final image and copy the first frame in the middle of it I'm pretty sure that depends by the ROI I've defined. If you see, from second 0.33 it starts to lose part of the mosaic. Mat roi2(final_img, Rect(0, 0, ls, rImg.rows)) Mat roi1(final_img, Rect(0, 0, ls, vImg.rows)) ![]() Mat final_img(Size(ls, rImg.rows), CV_8UC3) #Panorama stitcher for four images python open cv codeI'm using this code for stitch the images together: warpPerspective(vImg, rImg, H, Size(ls, vImg.rows), INTER_NEAREST)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |