Ask Your Question

enxdtw's profile - activity

2020-04-11 23:52:05 -0600 received badge  Teacher (source)
2019-10-03 05:52:44 -0600 received badge  Necromancer (source)
2019-09-10 02:30:07 -0600 commented question cvtColor hls to rgb lightening image

I think I know what's going on here. The smoothing operation (or the lightening operation) takes the darker pixels and l

2019-09-10 02:19:43 -0600 edited question cvtColor hls to rgb lightening image

cvtColor hls to rgb lightening image HI, I am trying to lighten an image by converting to HLS and then adjusting the li

2019-09-10 02:18:45 -0600 commented question cvtColor hls to rgb lightening image

Now I'm doing a blur to the Lightness image, I have modified the code accordingly. I also used my own HLS2RGB functions

2019-09-10 02:15:01 -0600 edited question cvtColor hls to rgb lightening image

cvtColor hls to rgb lightening image HI, I am trying to lighten an image by converting to HLS and then adjusting the li

2019-09-09 10:07:48 -0600 edited question cvtColor hls to rgb lightening image

cvtColor hls to rgb lightening image HI, I am trying to lighten an image by converting to HLS and then adjusting the li

2019-09-09 10:03:05 -0600 commented question cvtColor hls to rgb lightening image

Can you see the image link? Maybe the brightness effect is not so visible with +50, with +150 offset the effect is more

2019-09-09 10:01:49 -0600 commented question cvtColor hls to rgb lightening image

Can you see the image link?

2019-09-09 10:01:30 -0600 commented question cvtColor hls to rgb lightening image

Can you see the image?

2019-09-09 10:01:16 -0600 edited question cvtColor hls to rgb lightening image

cvtColor hls to rgb lightening image HI, I am trying to lighten an image by converting to HLS and then adjusting the li

2019-09-09 10:00:55 -0600 edited question cvtColor hls to rgb lightening image

cvtColor hls to rgb lightening image HI, I am trying to lighten an image by converting to HLS and then adjusting the li

2019-09-09 09:15:51 -0600 asked a question cvtColor hls to rgb lightening image

cvtColor hls to rgb lightening image HI, I am trying to lighten an image by converting to HLS and then adjusting the li

2019-09-09 09:15:47 -0600 asked a question cvtColor hls to rgb lightening image

cvtColor hls to rgb lightening image HI, I am trying to lighten an image by converting to HLS and then adjusting the li

2019-08-08 12:40:26 -0600 marked best answer opencv imwrite unable to save images >40MP

Hi,

I have a camera capable of 41.5MP. When I try to save an image from the camera it gets created, only that the image is 0KB in size, there is no error caught. If I save a region from the image then the image is saved correctly (as in the code below). Is there some limit to image size above which the image cannot be saved? (I am using version 4.0.1 opencv on Windows 10 and VC++ 17)

cv::Mat im = grabCVImage();


int s = 1200;
roi.x = s;
roi.y = s;
roi.width = s;
roi.height = s;


try {
    imwrite("C:\\Users\\Watts\\Pictures\\alpha.png", im(roi));
}
catch (std::runtime_error& ex) {
    fprintf(stderr, "Exception converting image to PNG format: %s\n", ex.what());
    return 1;
}
2019-08-08 12:40:25 -0600 received badge  Self-Learner (source)
2019-08-08 11:27:36 -0600 commented question opencv imwrite unable to save images >40MP

The problem was windows MFC's parent document class overwriting the file!

2019-08-08 06:16:53 -0600 commented question opencv imwrite unable to save images >40MP

Yes, strange, I can save a newly created image of the same dimensions OK. And when I call imshow("im", im); it shows

2019-08-08 06:14:21 -0600 commented question opencv imwrite unable to save images >40MP

Yes, strange, I can save a newly created image of the same dimensions OK. And when I call imshow("im", im); it shows

2019-08-08 04:21:17 -0600 commented question opencv imwrite unable to save images >40MP

But 2^30 or 1 Gigapixel is much larger than 41.5MP. It doesn't explain why the image does not save

2019-08-08 02:06:15 -0600 asked a question opencv imwrite unable to save images >40MP

opencv imwrite unable to save images >40MP Hi, I have a camera capable of 41.5MP. When I try to save an image from t

2018-08-22 10:32:11 -0600 received badge  Supporter (source)
2018-08-22 10:32:04 -0600 commented answer cv::sepFilter2D in one dimension?

Sure, I did it myself, but with OpenCV there would be some optimisation, boundary handling, maybe GPU implementation, pl

2018-08-21 04:14:09 -0600 edited answer How Do I Calculates The Angle Of Orientation Of The Image With The Fourier Transform?

The best way is to create a orientated band pass filter and filter the image with it. I made an online app where you can

2018-08-21 04:11:19 -0600 answered a question How Do I Calculates The Angle Of Orientation Of The Image With The Fourier Transform?

The best way is to create a orientated band pass filter and filter the image with it. I made an online app where you can

2018-08-21 03:51:48 -0600 asked a question cv::sepFilter2D in one dimension?

cv::sepFilter2D in one dimension? Hi, Can sepFilter2D also just do a filter in X or Y but not in both. It would be usef

2017-04-05 04:48:23 -0600 commented question Documentation on the match shapes return result

Seems my OpenCV 3 book had an error for the equation and the source code is fine.

2017-04-04 03:41:27 -0600 commented question Documentation on the match shapes return result

Thanks for the link to the source. It seems to me that source code has some statements that really don't make sense, such as line 155 (the IF is redundant) and 156 (which doesn't sum the moments values), also the IF statement on line 167 is outside the loop so its also strange, I also don't get the logic. Anyway I asked a question on the github issues page.

2017-04-04 02:50:42 -0600 received badge  Enthusiast
2017-04-03 09:46:37 -0600 received badge  Student (source)
2017-04-03 09:36:21 -0600 asked a question Documentation on the match shapes return result

I have been looking through the OpenCV documentation and I cant find any mention of the cv::matchShapes return value. There seem to be three methods cv::CONTOURS_MATCH_I1, cv::CONTOURS_MATCH_I2, cv::CONTOURS_MATCH_I3. They are a sum of distances so I guess a perfect match is 0, however what is the possible value range? maybe its not possible to give this, but cv::CONTOURS_MATCH_I3 seems to scale the moments at least. In either case the documentation should give information on at least the fact that a perfect match has a result of zero.

The thing is, if you want to look for matches better than a certain score, which score can you choose? IMHO the scores should be normalised somehow eg. 0-100 or 0-1.

(It seems that log moments are better for matching purposes)

2017-03-16 07:23:36 -0600 answered a question How to Draw Crosshairs/Marked Axes

You can try the drawMarker function (red cross, 10 width, 1 line width)

cv::drawMarker(myimage, cv::Point(x, y),  cv::Scalar(0, 0, 255), MARKER_CROSS, 10, 1);
2016-11-04 05:42:11 -0600 commented answer installation OpenCV3 on windows using prebuilt binaries

seems the opencv_world prebuilt files are also usable (QT .pro example)

INCLUDEPATH += C:/opencv/build/include LIBS += -LC:/opencv/build/x64/vc14/lib

debug { LIBS += -lopencv_world310d

} release { LIBS += -lopencv_world310 }

add C:\opencv\build\x64\vc14\bin to the system path

2016-11-04 05:17:28 -0600 received badge  Self-Learner (source)
2016-11-04 04:50:21 -0600 answered a question installation OpenCV3 on windows using prebuilt binaries

Seems I had 2 problems with the CMAKE settings, first was that WITH_CUDA was selected (as default!), second was that to compile for 64 bits only change the CMAKE_*_LINKER_FLAGS to /machine:x64 dont mess with the WIN32 settings even though it looks like they are 32 bit, its legacy windows shit, setting them to WIN64 will also cause VS to fail to compile. Then you have to rebuild ALL followed by the INSTALL project, in both debug and release, add the path to where the DLL's are located, link and include the libraries. I also unchecked the WITH_WIN32UI, probably not a good idea since cvshow then doesn't work. Would be nice if doiing a 64 bit opencv build on windows is better documented

2016-11-02 05:24:44 -0600 received badge  Editor (source)
2016-11-02 05:23:16 -0600 commented question installation OpenCV3 on windows using prebuilt binaries

Just want to mention that when I try to build using MSVC++ 15 using the CMAKE generated solution file I get 319 errors! here a 3 examples

Severity Code Description Project File Line Suppression State Error C1083 Cannot open include file: 'pthread.h': No such file or directory opencv_core C:\OpenCV\modules\core\src\rand.cpp 58

Severity Code Description Project File Line Suppression State Error C2146 syntax error: missing ';' before identifier 'sysinfo' opencv_core C:\OpenCV\modules\core\src\parallel.cpp 523

Severity Code Description Project File Line Suppression State Error LNK1104 cannot open file '....\lib\Debug\opencv_core310d.lib' opencv_imgproc C:\opencv-msvc\modules\imgproc\LINK 1

2016-11-02 04:24:14 -0600 asked a question installation OpenCV3 on windows using prebuilt binaries

Hi,

I had trouble compiling on windows for x64 so I thought I would try just using the binaries (using the following guide).

http://docs.opencv.org/3.0-last-rst/d...

I downloaded version 3.1.0 ran the setup then saw that there are directories

C:\OpenCV\sources\include

and

C:\OpenCV\build\x64\vc14\lib

The lib directory only includes one lib file (and the debug version)

opencv_world310.lib

I was expecting to use

-lopencv_shape310 -lopencv_core310 -lopencv_highgui310 -lopencv_imgproc310 -lopencv_imgcodecs310

So either the libraries have changed and there is only one file to link against or the distribution is incomplete or there are no pre-built binaries and you have to build them yourself. Either way the documentation is not correct.

Anyway so I tried to build using CMAKE everything goes ok, but everything is built for WIN32 which is not compatible with my QT version and is anyway not really the latest technology. I changed all the WIN32 flags in CMAKE to be WIN64, better but still compiles certain libraries as X86 (actually on the last attempt I got 319 errors - see comment below). Surely a simple install of the latest opencv version on the most popular OS should not be so difficult and poorly explained.

Thanks for any help

Cheers Dave