image-stitching

stitching microscope images of a microchip

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-30 07:11:59
So, I'm trying to stitch images taken by a microscope of a microchip, but it's very hard to have all the features aligned. I already have a 50% overlap between two adjacent images, but even with that, it's not always a good fit. I'm using SURF with OpenCV to extract the keypoints and find the homographic matrix. But still, it's far from being an acceptable result. My objective is to be able to stitch perfectly 2x2 images, so this way, I can repeat that process recursively until I have the final image. Do you have any suggestion ? A nice algorithm to approach this problem. Or maybe a way to

OpenCV Stitcher Class with Overlapping Stationary Cameras

会有一股神秘感。 提交于 2019-11-30 06:42:04
I'm trying to use the OpenCV stitcher class to stitch multiple frames from a stereo setup, in which neither camera moves. I'm getting poor stitching results when running across multiple frames. I've tried a few different ways, which I'll try to explain here. Using stitcher.stitch( ) Given a stereo pair of views, I ran the following code for some frames ( VideoFile is a custom wrapper for the OpenCV VideoCapture object): VideoFile f1( ... ); VideoFile f2( ... ); cv::Mat output_frame; cv::Stitcher stitcher = cv::Stitcher::createDefault(true); for( int i = 0; i < num_frames; i++ ) { currentFrames

Multiple camera image stitching

余生长醉 提交于 2019-11-30 05:25:32
I've been running a project of stitching images from multiple cameras, but I think I've got a bottleneck...I have some questions about this issue. I wanna try to mount them on a vehicle in the future and that means the relative positions and orientations of cameras are FIXED. Also, as I'm using multiple cameras and try to stitch images from them using HOMOGRAPHY, I'll put cameras as close as possible so that the errors(due to the fact that the foci of the cameras are not at the same position and it's impossible as cameras occupy certain space.) can be reduced. Here's a short experiment video

stitching microscope images of a microchip

自古美人都是妖i 提交于 2019-11-29 08:48:22
问题 So, I'm trying to stitch images taken by a microscope of a microchip, but it's very hard to have all the features aligned. I already have a 50% overlap between two adjacent images, but even with that, it's not always a good fit. I'm using SURF with OpenCV to extract the keypoints and find the homographic matrix. But still, it's far from being an acceptable result. My objective is to be able to stitch perfectly 2x2 images, so this way, I can repeat that process recursively until I have the

OpenCV Stitcher Class with Overlapping Stationary Cameras

橙三吉。 提交于 2019-11-29 06:20:44
问题 I'm trying to use the OpenCV stitcher class to stitch multiple frames from a stereo setup, in which neither camera moves. I'm getting poor stitching results when running across multiple frames. I've tried a few different ways, which I'll try to explain here. Using stitcher.stitch( ) Given a stereo pair of views, I ran the following code for some frames ( VideoFile is a custom wrapper for the OpenCV VideoCapture object): VideoFile f1( ... ); VideoFile f2( ... ); cv::Mat output_frame; cv:

Multiple camera image stitching

北城余情 提交于 2019-11-29 03:43:45
问题 I've been running a project of stitching images from multiple cameras, but I think I've got a bottleneck...I have some questions about this issue. I wanna try to mount them on a vehicle in the future and that means the relative positions and orientations of cameras are FIXED. Also, as I'm using multiple cameras and try to stitch images from them using HOMOGRAPHY, I'll put cameras as close as possible so that the errors(due to the fact that the foci of the cameras are not at the same position

OpenCV - Image Stitching

99封情书 提交于 2019-11-29 02:17:14
I am using following code to stitch to input images. For an unknown reason the output result is crap! It seems that the homography matrix is wrong (or is affected wrongly) because the transformed image is like an "exploited star"! I have commented the part that I guess is the source of the problem but I cannot realize it. Any help or point is appriciated! Have a nice day, Ali void Stitch2Image(IplImage *mImage1, IplImage *mImage2) { // Convert input images to gray IplImage* gray1 = cvCreateImage(cvSize(mImage1->width, mImage1->height), 8, 1); cvCvtColor(mImage1, gray1, CV_BGR2GRAY); IplImage*

How to remove black part from the image?

你说的曾经没有我的故事 提交于 2019-11-28 19:42:33
I have stitched two images together using OpenCV functions and C++. Now I am facing a problem that the final image contains a large black part. The final image should be a rectangle containing the effective part. My image is the following: How can I remove the black section? mevatron 's answer is one way where amount of black region is minimised while retaining full image. Another option is removing complete black region where you also loose some part of image, but result will be a neat looking rectangular image. Below is the Python code. Here, you find three main corners of the image as below

How to merge two images in opencv?

末鹿安然 提交于 2019-11-28 17:55:56
I have calculated homography ,taken out perspective transform .I am able two display two images in one window but unable to merge them.Here are my example images-> The code I am using thiscode -> cv::warpPerspective(image2,warpresult2,homography,cv::Size(2*image2.cols,image2.rows)); Mat imgResult(image1.rows,2*image1.cols,image1.type()); Mat roiImgResult_Left = imgResult(Rect(0,0,image1.cols,image1.rows)); Mat roiImgResult_Right = imgResult(Rect(image1.cols,0,image2.cols,image2.rows)); Mat roiImg1 = image1(Rect(0,0,image1.cols,image1.rows)); Mat roiImg2 = warpresult2(Rect(0,0,image2.cols

Stitch multiple images using OpenCV (Python)

落花浮王杯 提交于 2019-11-28 16:32:24
问题 Hi have seen a lot of tutorials how to do simple image stitching using two photos and that is no problem. But what to do when I want to make a panorama from 4-6 images or more? I have code that takes in list of image files(the images are in order from the first image in the sequence to the last). Then for each image I compute the SIFT feature descriptors . But then I am stuck, for two images I would set up a matcher using FLANN kd-tree and find matches between the images and calculate the