Ask Your Question

drVit's profile - activity

2015-11-10 12:31:25 -0500 commented question video stitching

If your video streams is well time synchronized (frame to frame), then the simplest (may be not the best) way is to process frames just like static images. Showing your video example could improve answers.

2015-11-10 12:09:46 -0500 commented question How to know if device is compatible with OpenCV using OpenCL

May be bool cv::ocl::haveOpenCL() and cv::ocl::setUseOpenCL(bool) is what you want.

2015-11-09 17:39:11 -0500 commented question Android OpenCL DFT vs. CPP Version is very slow!

be careful with OpenCL Canny, it is buggy at least ~one year

2015-11-06 16:48:28 -0500 commented question video stitching

Since video is not space only but time too you should start from time-synchronization.

2015-11-04 05:38:56 -0500 commented answer Create mask to select the black area

If you will create precise mask as described before you will be able to scan rows (and then columns) for mask background value presence. So the first mask top line without 'black' is your top crop rectangle side etc. Countnonzero will help you to find is it right slice or not.

2015-11-04 05:24:04 -0500 received badge  Enthusiast
2015-11-02 20:33:50 -0500 answered a question ellipse approximation of blob using contours moments : confusing orientation angle

Try to use fitellipse function.

2015-11-02 20:20:52 -0500 answered a question Create mask to select the black area

Since your image contains black pixels there is no simple and safe way to distinguish where are black pixels from background and where -- from you image. You'd better create rectangle mask for every source image and then transform every mask the same way you transform every source images for stitching. Then you will have a very precise and correct mask.

If you want just to crop it use Rect to create submatrix from matrix:

UMat crop = src(Rect(left, up, width, height));
2015-11-02 19:44:21 -0500 answered a question Fitting a point-cloud

try estimaterigidtransform with appropriate fullAffine-flag

2015-04-23 06:15:44 -0500 received badge  Editor (source)
2015-04-23 05:59:40 -0500 received badge  Supporter (source)
2015-04-22 23:26:25 -0500 asked a question How to get keyframes from videofile?

Is there any way in openCV to grab from videofile keyframes only? I googled ( http://code.opencv.org/issues/1419 ) before video.set(CV_CAP_PROP_POS_FRAMES) worked this way: position was "nearest keyframe", but now it is "fixed" and I can not find the way how to process keyframes for perfomance purpose only even in one way:

  • 1st way : read() next keyframe
  • 2nd way: do fast-working grab() for each frame, check it's propertie (which one?) and if it is keyframe then do slow-working retrieve() .

P.S. password reminder does not work, at least today for my old profile -- so I had to create new account