Ask Your Question

mau's profile - activity

2018-09-15 15:28:20 -0600 received badge  Famous Question (source)
2016-06-15 05:32:21 -0600 received badge  Notable Question (source)
2016-04-04 03:58:48 -0600 received badge  Teacher (source)
2016-04-04 02:29:04 -0600 received badge  Self-Learner (source)
2016-04-04 02:22:13 -0600 answered a question Pyramid Laplace Cuda

I answer myself, this works:

int dx = ((1 << levels) - width % (1 << levels)) % (1 << levels);
int dy = ((1 << levels) - height % (1 << levels)) % (1 << levels);

border_top = dy;
border_left = dx;
border_bottom = 0;
border_right = 0;

cv::copyMakeBorder(img, img_with_border1, border_top, border_bottom, border_left, border_right, BORDER_REFLECT);
2016-03-30 10:17:31 -0600 received badge  Editor (source)
2016-03-30 09:24:42 -0600 asked a question Pyramid Laplace Cuda

Hi guys, I'm trying to use laplacianPyramid with cuda, I found this implementation from modules:

    void createLaplacePyrGpu(const Mat &img, int levels, vector<Mat> &pyr)
{
 #ifdef HAVE_OPENCV_GPU

    pyr.resize(levels + 1);

    vector<cuda::GpuMat> gpu_pyr(levels + 1);

    gpu_pyr[0].upload(img);
    for (int i = 0; i < levels; ++i){
        cuda::pyrDown(gpu_pyr[i], gpu_pyr[i + 1]);
    }


    cuda::GpuMat tmp,tmp2;
    for (int i = 0; i < levels; ++i)
    {
        cuda::pyrUp(gpu_pyr[i + 1], tmp);

        cuda::subtract(gpu_pyr[i], tmp, gpu_pyr[i]);

        gpu_pyr[i].download(pyr[i]);
    }

    gpu_pyr[levels].download(pyr[levels]);
#else
    (void)img;
    (void)levels;
    (void)pyr;
#endif
}

With an input image of 960x1080 pixels, at the last iteration of the second for, the function subtract fails, because the two GpuMat are differents.

In the example code, the input image "img", was came from a cv::copyMakeBorder, but I don't get how to build the image with borders for to avoid the error?

Any help?

Thanks for your time.

Mau

2016-02-14 08:21:09 -0600 commented answer VS2015 error during compilation opencv_contrib

Thanks Berak, I'll try as you said.. you are very kind.

2016-02-14 06:15:55 -0600 asked a question VS2015 error during compilation opencv_contrib

Hi, I'm trying to build "opencv_contrib" with "opencv 300" but, I had this error from ALL BUILD compilation: "Cannot open include file: 'opencv2/core/hal/intrin.hpp': No such file or directory opencv_ximgproc C:\opencv_contrib-master\modules\ximgproc\src\fgs_filter.cpp". This error doesn't permit to build the library, and the error is propagated over 21 build. This is my CMake gui:

C:\fakepath\Cmake.jpg

this is VS2015 error:

C:\fakepath\vserror.jpg

and this is Property Manager of the ximgproc project:

C:\fakepath\vspropertyman.jpg

Any help?

Thanks for your time.

Mau

2016-02-04 01:44:12 -0600 received badge  Popular Question (source)
2016-01-06 04:16:53 -0600 received badge  Nice Question (source)
2015-06-10 01:22:35 -0600 received badge  Student (source)
2015-05-18 10:39:20 -0600 commented question [erfilter.cpp] nfa method

And now the question is how do you make to build module text in vs2008 without tesseract? :) What did you tried? Maybe the others modules? Sorry for this question, but as you see I'm newbie for compilation's world.

2015-05-18 09:30:58 -0600 commented question [erfilter.cpp] nfa method

Dear berek, how do you configure your CMake with your "tesseract" in windows? Where did you put the dependencies file, did you add "entry path" in CMake ? Thanks for your time.

2015-05-18 08:41:28 -0600 commented question [erfilter.cpp] nfa method

Yes it is, I saw that the other function epsilon, does links to the right definition.. I'll try to find this mess.. thanks!

2015-05-18 08:20:46 -0600 commented question [erfilter.cpp] nfa method

Thanks for you answer berak,

If I ask the definition, I get this file:

/****************************************************************************
*                                                                           *
* minwindef.h -- Basic Windows Type Definitions for minwin partition        *
*                                                                           *
* Copyright (c) Microsoft Corporation. All rights reserved.                 *
*                                                                           *
****************************************************************************/

and this definition :

#define min(a,b)            (((a) < (b)) ? (a) : (b))
2015-05-18 06:32:31 -0600 commented question [erfilter.cpp] nfa method

Error 2 error C2589: '(': token not valid to the right '::' D:\OpenCV\opencv_contrib\modules\text\src\erfilter.cpp 1406 1 opencv_text

I have just make a little translation from italian.. Compiling with VS 2013 OpenCV 3.0

2015-05-18 05:59:14 -0600 asked a question [erfilter.cpp] nfa method

File: erfilter.cpp; namespace: cv; method: NFA;

I get this syntax error on text module's compilation :

p = std::numeric_limits<double>::min();

seem to lack two variables in min() function. Could they be p and logNT?

Any help? Thanks A lot. Mau

2015-05-15 05:41:18 -0600 commented question about ocr - tesseract documentation on OpenCv 3.0.0

Hi mshabunin, thanks for your suggestion I'll try.

2015-05-14 04:15:35 -0600 commented question about ocr - tesseract documentation on OpenCv 3.0.0

Ok mshabunin, thanks for your answer, now I have Tesseract in my Cmake output, but the two lines -- Tesseract are NO, depends it of the tesseract's path include and lib? Have I to collect together all files "include" and the library, lib and dll? Or which one ? Sorry but I have no experience of build software. Anyway I'll try some combination. Thanks for your patience.

2015-05-12 03:45:01 -0600 commented question about ocr - tesseract documentation on OpenCv 3.0.0

II have provided the path via OPENCV_EXTRA_MODULES_PATH, but In cmake output I do not find -- Tesseract: YES and there isn't text module.. This is a part of my cmake output:

OpenCV modules:
To be built:                 hal core flann imgproc ml photo video imgcodecs shape videoio highgui objdetect superres ts features2d calib3d stitching videostab
Disabled:                    python3 world
Disabled by dependency:      -
Unavailable:                 androidcamera cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudalegacy cudaobjdetect cudaoptflow cudastereo cudawarping cudev java python2 viz
2015-05-11 10:21:20 -0600 commented question about ocr - tesseract documentation on OpenCv 3.0.0

Hi mshabunin, I don't understand which path I have to put in the OPENCV_EXTRA_MODULES_PATH. My Tesseract dir is like this:

 C:\Tesseract-Build\
  -- lib # dependences
  -- include #
  -- tesseract-ocr\vs2013\bin\x64\LIB_Release # which contain tesseract.exe and static libs
2015-05-11 02:37:36 -0600 received badge  Enthusiast
2015-05-08 15:55:41 -0600 commented question about ocr - tesseract documentation on OpenCv 3.0.0

Thanks a lot mshabunin!! I'm going to try this weekend. You are very nice.

2015-05-07 12:16:05 -0600 commented question about ocr - tesseract documentation on OpenCv 3.0.0

Hi mshabunin, thanks a lot, for your link, I managed to build correctly, and now I have lib_debug, lib_realease, DLL_debug and DLL_release, now how I make a text module? Thanks for your kindness. Maurizio

2015-05-06 11:42:33 -0600 commented question about ocr - tesseract documentation on OpenCv 3.0.0

Thanks for your answer mshabunin, I forgot to say that I work on windows, unfortunately, and I use Visual Studio 2013 express. Sorry for my forgetfulness. M

2015-05-06 07:15:31 -0600 asked a question about ocr - tesseract documentation on OpenCv 3.0.0

Hi guys, I'm still learning OpenCv, excuse me for this question. I have read on documentation (cv::text::OCRTesseract Class Reference), "Notice that it is compiled only when tesseract-ocr is correctly installed". And in the demos seems that ocr is integrated with openCv:

#include "opencv2/text.hpp"
using namespace cv::text;

Has someone a useful link for to install tesseract correctly in OpenCv 3? Thanks for yours time. Maurizio

2015-05-06 06:41:28 -0600 received badge  Supporter (source)