richie11122 | 13 Jun 16:52 2012

HoG+SVM -> HOGDescriptor::setsvmdetector

Hi,
I want to feed the HOGDescriptor (CPU interface) with a trained SVM. The HOG Descriptor offers a method
setSVMDetector(const vector<float>& detector) and I'm asking what has to be in vector<float>& detector?
All I found on the web was
http://opencv-users.1802565.n2.nabble.com/training-a-HOG-descriptor-td6363437.html , but
there is no confirmation about what to do.

I have a trained SVM which can create a xml file and in there are basically stored the
- support vectors
- alpha values
- rho
Of course, everything can also be loaded again, but only the support vectors are accessible from the
interface cvSVM that I use.

I wrote each support vector in a row and got a matrix A of support vectors. Now I've done [alpha1 alpha2
...alphaN] * [A] which gave me one vector. I assumed that rho is the bias which has to be added or
concatenated to this vector and then handed over to setsvmdetector().
But this doesn't work at all.

Please, has anyone an idea or any suggestion?
Please let me know.

------------------------------------

Change settings: http://www.yahoogroups.com/mygroups, select
   Get Emails (get all posts)
   Daily Digest (one summary email per day)
   Read on the web (read posts on the web only)Or Unsubscribe by mailing OpenCV-unsubscribe <at> yahoogroups.com
floyd3237 | 13 Jun 17:21 2012
Picon

CvFuzzyMeanShiftTracker Module

Has anybody gotten the CvFuzzyMeanShiftTracker working ? Is there an example of how to make it work and the
order of the function calls ?

Thanks 

------------------------------------

Change settings: http://www.yahoogroups.com/mygroups, select
   Get Emails (get all posts)
   Daily Digest (one summary email per day)
   Read on the web (read posts on the web only)Or Unsubscribe by mailing OpenCV-unsubscribe <at> yahoogroups.com
paulal7489 | 13 Jun 14:39 2012

URGENT: Problem with matchTemplate

Hi everybody,

I just wrote the following code. Now I need to let the program check, which
templates are in the picture. I have more templates, but just two are always to
find. I tried it with a loop, but it is not working.
Any suggestions?

// fullProgram4.cpp : Definiert den Einstiegspunkt für die Konsolenanwendung.
//
#include "stdafx.h"
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/imgproc/imgproc.hpp"
#include "iostream"
#include "stdio.h"
#include "cv.h"
using namespace cv;
using namespace std;

/// Global variables

/** General variables */
Mat src, edges;
Mat src_gray;
Mat templ, result;
Mat templ1, result1;
Mat templ6, result6;
Mat standard_hough, probabilistic_hough;
int min_threshold = 0;
int max_trackbar = 70;

(Continue reading)

Ahmed Albhy | 14 Jun 05:04 2012
Picon

(unknown)





__._,_.___

Change settings: http://www.yahoogroups.com/mygroups, select
   Get Emails (get all posts)
   Daily Digest (one summary email per day)
   Read on the web (read posts on the web only)Or Unsubscribe by mailing OpenCV-unsubscribe <at> yahoogroups.com




Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___
Ardhendu Behera | 14 Jun 04:40 2012
Picon

(unknown)





__._,_.___

Change settings: http://www.yahoogroups.com/mygroups, select
   Get Emails (get all posts)
   Daily Digest (one summary email per day)
   Read on the web (read posts on the web only)Or Unsubscribe by mailing OpenCV-unsubscribe <at> yahoogroups.com




Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___
Devon Yoo | 14 Jun 01:51 2012

Any1 good at writing efficient code?



Hi guys,

 

I have been trying to reduce processing time of my code and got stuck on one iteration code.

 

Here is what I am doing:

 

Mat src;

Mat dst;

For (x=0;x<width;x++){

    For(y=0;y<height;y++){

        If(src.at(y,x)[0] > 200)

            dst.data[dst.channels()*(dst.cols*y + x) + 0] = 255;

    }

}

[running time: 200ms]

 

To

 

Mat src;

Mat dst;

inRange(src, Scalar(200, 0, 0), Scalar(255,255,255), dst);

[running time: 25ms]

 

 

And here is where I am stuck:

 

Mat src;

Mat dst;

For (x=0;x<width;x++){

    For(y=0;y<height;y++){

        If(src.at(y,x)[2]/( src.at(y,x)[0] + src.at(y,x)[1] + src.at(y,x)[2]) > 0.5)  //simply, r/(r+g+b)>0.5

            dst.data[dst.channels()*(dst.cols*y + x) + 0] = 255;

    }

}

 

To

 

???

 

 

How can I rewrite that code to reduce the running time?

 

 

 



__._,_.___

Change settings: http://www.yahoogroups.com/mygroups, select
   Get Emails (get all posts)
   Daily Digest (one summary email per day)
   Read on the web (read posts on the web only)Or Unsubscribe by mailing OpenCV-unsubscribe <at> yahoogroups.com




Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___
pattern | 13 Jun 16:45 2012
Picon

HOW I got 30 fps increase and NO SLOWDOWN!

Hi there,

I have some *.MTS videos (with W x H = 1440 x 1080, fps=50) and I want to convert them to AVI videos with 640 x 480,
fps=30. When I have done this, the output videos were slowed down. I think the problem is due to reducing
fps. 

My question is how can I change fps without changing video speed?

thanks in advance

------------------------------------

Change settings: http://www.yahoogroups.com/mygroups, select
   Get Emails (get all posts)
   Daily Digest (one summary email per day)
   Read on the web (read posts on the web only)Or Unsubscribe by mailing OpenCV-unsubscribe <at> yahoogroups.com
Hemant Singh | 13 Jun 08:09 2012
Picon

Edge detection



Hello,

I am using Hough Transform for circle detection. HT uses Canny for edge detection. The problem I am facing is Canny detects some noise as edges, so like some false edges appear and then they disappear in next frame. Through some tweaking and changing the source I have improved alot but still there are issues which leads to false detection of circles. My aim is to find radius and number of circles and objects are nearly circular not exact.

I have tried noise removal filters. 

You can help me out with:

1. Suggesting how to improve Canny
or
2. Any other approach I should be using.
or 
3. You past experience with HT and Canny.
Thanks.
Cheers,
-Hemant Kumar Singh


__._,_.___

Change settings: http://www.yahoogroups.com/mygroups, select
   Get Emails (get all posts)
   Daily Digest (one summary email per day)
   Read on the web (read posts on the web only)Or Unsubscribe by mailing OpenCV-unsubscribe <at> yahoogroups.com




Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___
timo.rieck | 12 Jun 14:25 2012
Picon

Traincascade: Maximum sample size?!

Is there a specified maximum size for the training samples? I would like to use sample sizes 140x100 or
140x60, respectively, but the application crashes. I have to use 76x54 or 92x40 instead. Is there any
volitional restriction in size or is it due to hardware/software limitations (Total amount of RAM should
not be the problem, it's 16GB)? 

Thanks.

------------------------------------

Change settings: http://www.yahoogroups.com/mygroups, select
   Get Emails (get all posts)
   Daily Digest (one summary email per day)
   Read on the web (read posts on the web only)Or Unsubscribe by mailing OpenCV-unsubscribe <at> yahoogroups.com
Death Jester | 13 Jun 13:48 2012
Picon

Matrix class member size/step


Hello everybody,
I have a question about the Matrix class of the OpenCV library.
Nothing about usage, but an implementation detail.
What are the data types of the 'Mat'-class' member variables 'size'
and 'step'?
 I have looked into the documentation page
(http://opencv.willowgarage.com/documentation/cpp/basic_structures.html)
and can't even find a member called 'size' (only a function 'Size
Mat::size()'). But the constructor (in file 'mat.hpp' line 67),
assigns the address of 'rows' to the 'size' variable. So where does
the matrix class get this member from? And what is the class of this
member. Because I have seen in the code that it is accessed with the
'[]'-operator and also has a member 'p'.
The same is for the 'step' member I have seen that it is defined as
'size_t step'. But in the file 'mat.hpp', line 429, a member of this
'step' variable is accessed, and in my knowledge size_t is only a
typedef for 'unsigned int'.
I hope someone can help me.

Thank you.

Cheers,
Jester
Nabiha | 13 Jun 12:35 2012
Picon

calibrate a camera and correct the distorsion

hi,  i'm new in programming with opencv and C++, I read a lot of documents on the subject of calibration, but
can someone help me to determinate the coordinates of objectpoints  and imagepoints in the function:

[[ Double cvCalibrateCamera (const CvMat * objectPoints, const CvMat * imagePoints, const CvMat *
pointCounts, ImageSize CvSize, CvMat * cameraMatrix, CvMat * distCoeffs, CvMat * rvecs = NULL, CvMat *
tvecs = NULL, int flags = 0); ]]
wich are the steps to follow, wich unit of measure(pixel or millimeter...)?
in other hand, in my program i have two errors in: 
undistort(myimage, undistoredimage, F, K, F);
where, undistoredimage is the distored image to correct IplImage* undistoredimage=
cvCreateImage(cvGetSize(myimage),8,3);(the error is "a refrence of type cv::mat cannot be intialize
with a value of type Ip§Image") F is the intrinsic matrix and k is the distortion_coeffs i declared it like
this : Vector< double> K(3,0.01);(the error is "no suitable user-defined conversion from
cv::vector<double> to const cv::mat exists")
please i need really your help, and thanks. 

------------------------------------

Change settings: http://www.yahoogroups.com/mygroups, select
   Get Emails (get all posts)
   Daily Digest (one summary email per day)
   Read on the web (read posts on the web only)Or Unsubscribe by mailing OpenCV-unsubscribe <at> yahoogroups.com

Gmane