Ask Your Question

Michael Barnes's profile - activity

2012-09-06 04:08:10 -0600 received badge  Scholar (source)
2012-09-06 04:07:57 -0600 commented answer calcHist with GpuMat submatrix

Thankyou very much. I had missed that detail, but I can work around that limitation quite easily now I know what it is. I just need four copies of the matrix.

2012-09-06 03:43:26 -0600 received badge  Student (source)
2012-09-06 03:09:09 -0600 commented question implementation of feature selection using adaboost

The normal method of AdaBoost feature selection is just to make a classifier with AdaBoost, then go back and inspect which features are used by that classifier. Note that this is more complex than it needs to be if you use a dedicated feature selection method.

2012-09-05 17:28:14 -0600 asked a question calcHist with GpuMat submatrix

I get an unspecified launch error in hist.cu, line 187, from the following call.

calcHist(storage.input(xr,yr), storage.hist);

Where storage.input and storage.hist are both GpuMat objects and xr,yr are Range objects.

This crash only occurs if yr.start > 0. I have tried using a Rect, or using GpuMat(storage.input,xr,yr), as well as creating another object set to equal storage.input(xr,yr). In all cases I get the unspecified launch error if the second dimension starts with a value above 0. The first axis can have any values, as can yr.end. The matrix I am testing is 2 dimensional.

I have checked that downloading storage.input(xr,yr) gives an identical result to the original Mat object with the same Ranges.

I think I should have covered everything, but it's been a while since I've used OpenCV for much and this is my first major use of the GPU code. Is this a bug? Is it me?