Ask Your Question

Phteven's profile - activity

2016-11-18 01:39:54 -0600 received badge  Supporter (source)
2016-11-18 01:39:32 -0600 received badge  Scholar (source)
2016-11-18 01:39:17 -0600 received badge  Editor (source)
2016-11-18 01:36:49 -0600 answered a question Probability of two images matching?

HU moments look promising but seem a bit "too much" for my cause.

I am using maximum boundary deviation (MBD, Hausdorff distance) which seems to be used in gesture detection systems and getting excellent results. It was easy and fast to implement and is independet of other steps (threading!) Note: if there are outliers, use the 2. last MBD value instead of the last. or the 3. last or ...

Source: Formula 15 of http://waset.org/publications/13743/t... Trajectory Guided Recognition of Hand Gestures having only Global Motions M.K. Bhuyan, P.K. Bora, and D. Ghosh

2016-11-14 18:56:04 -0600 commented answer Probability of two images matching?

all templates show symmetrical (both axes) figures. the only way they differ from the test images is in line thickness and exact shape. i take a look into the hu moments they look promising. thank you

2016-11-14 18:41:02 -0600 asked a question Probability of two images matching?

Hello everyone.

I have tons of binary images and want to sort them according to their similarities of a template. So i load a template and one of the test images. then i want to compare both of them (they are all of same size) and as result have a value in percentage that the image is matching the template. Once i get this percentage value, i am already able to sort the test images, i just need a way to calculate the similarities. the opencv matching method (http://docs.opencv.org/2.4/doc/tutori...) doesnt seem to do the trick as far as i can see.

anyone suggestions?

2016-09-28 07:23:08 -0600 commented question Mat::clone() issues

Replacing all cv::Mat* to cv::Mat and minor adaptions for the changed type did the trick. Thank you

2016-09-28 06:22:16 -0600 commented question Mat::clone() issues

can you explain a bit further why not to use pointers to cv::Mat?

the real code is kinda big, I will try to extract a minimum example and post it below.

i dont need it at all. I try to gain speed and tried different things. On this "trying" I came across this issue.

yes

2016-09-28 05:17:44 -0600 asked a question Mat::clone() issues

Hello,

I am using a method for thinning an image. The method is beeing executed by a single thread.

void applyThreadedThinning(Mat* input) { Mat output = input->clone(); ..... }

I use MSVC 2015 (32bit) and the plugin Image Watch, which lets me see the content of the image while debugging.

After I set a breakpoint do the line with the clone()... i noticed, that the input image looks fine, but the cloned one is a plain image, filled with values 217 (8bit greyscale).

After jumping to the next line in the debugger, both images are "invalid".

Strange thing is, if I execute the method directly in the main method (not using a thread), it works fine. The threaded(std::thread t1(...)) version aborts during runtime.

Why is the clone method not working as intended? Is it something with scopes?

Thanks