Ask Your Question

Fynjy8's profile - activity

2017-06-04 12:43:54 -0500 received badge  Enthusiast
2017-06-03 13:42:51 -0500 commented question What method should use for satellite images?

GPS always have error in measurements, so what exactly about optical flow I should to read?

2017-06-03 11:00:49 -0500 asked a question What method should use for satellite images?

My task is: I have two satellite images, which quite similar, but have got from different angles. And I need to find one piece of map at second image, which bigger. What method should I use? Example images:image description image description image description

(at http://answers.opencv.org I can show small size pic only. In really resolution will be better)

So, I want find where 1 image at 2 image (coordinates). What can you recommend?

I tried SIFT from this (http://docs.opencv.org/trunk/d7/dff/t...) tutorial and it didn't work at all.

2017-06-03 07:23:01 -0500 answered a question How to find distance between centers of two green boxes?

If, for example, box1.center = X1,Y1 and box2.center = X2,Y2 , then your answer is:

sqrt((X2-X1)^2 + (Y2-Y1)^2)

2017-06-03 07:15:00 -0500 answered a question perspectiveTransform Error handler

My answer is:

if (obj.size() == 0 || scene.size() == 0) {
                        printf("Didn't find!");
                    }

                    cv::Mat H = findHomography(obj, scene, cv::RANSAC); 

if (H.empty()) {
                        printf("Didn't find!");
                    }
2017-05-27 03:33:54 -0500 commented question perspectiveTransform Error handler

obj_corners.size(): 4

obj_corners: [0, 0; 500, 0; 500, 200; 0, 200]

obj_corners is about template left in img_matches - not about template on scene image. So, if I have template image 500x200 it has this corners

error in cv.perspectiveTransform(_InputArray , _OutputArray* , _InputArray* )* System.Runtime.InteropServices.SEHException

2017-05-26 18:36:57 -0500 received badge  Editor (source)
2017-05-26 18:35:26 -0500 asked a question perspectiveTransform Error handler

I use http://docs.opencv.org/trunk/d7/dff/t... , but i changed SURF to SIFT, but it doesn't matter. Everything works good, but there are one problem: it hasn't error handler when img_object didn't find in img_scene. For example when images are really different - it's error in this:

perspectiveTransform(obj_corners, scene_corners, H);

So i need some error handler like:

if (**something**) { 
printf("Didn't find!"); }


else { ...    
perspectiveTransform(obj_corners, scene_corners, H);
...}

My questin is: What something ?? min_dist > 20 ? Or what condition i need?

P.S. Thank you for your answers, and sorry for my english :D

2017-05-26 18:04:50 -0500 commented answer Visual Studio CLR static and dinamic libs

yes, it works with DLL in the same folder, thank you!

2017-05-26 18:04:08 -0500 received badge  Scholar (source)
2017-05-15 19:03:02 -0500 asked a question Visual Studio CLR static and dinamic libs

I use VS2017 and OpenCV 3.2.0 So, I want to run my OpenCV app on another computer, so I built OpenCV with static libs, changed flag to /MT and it's work on any x64 computers (without OpenCV). But then, I decided create windows forms, and in the latest versions VS it's possible only with CLR, and the problem is: CLR don't work with /MT, only with dinamic libs (/Md).

What I can do with it? Don't use windows forms at all? Or I can add dinamic libs with exe in one folder and it'll work on another comp? (I tried to copy libs, but it didn't help, it want .dll, not .lib, maybe I need to build dll in some way?)

P.S. Sorry for my english, I hope you understand what I want to say)