Ask Your Question

pavanbabut's profile - activity

2018-12-13 09:19:02 -0500 received badge  Famous Question (source)
2017-08-30 20:26:01 -0500 received badge  Notable Question (source)
2017-02-15 10:52:47 -0500 received badge  Popular Question (source)
2015-07-09 18:22:21 -0500 received badge  Enthusiast
2015-06-30 17:07:36 -0500 commented question Converting 8bit image into RGB and more

Thanks for your quick reply, I will give this a try in my test program and see how it performs vs GDI+. How about the other graphics drawing stuff, is it easy and efficient to do in OpenCV vs GDI+. I would like to do everything in memory and then draw it on the screen probably utilizing double buffering to reduce flicker.

2015-06-30 13:38:55 -0500 asked a question Converting 8bit image into RGB and more

Hello all,

I am planning to grab real time images from a scientific framegrabber which is 8bit image data.

The workflow goes as follows- 8bit image data --> convert to RGB image based on predefined color pallete --> (draw some square unfilled boxes) --> (draw some lines on it) --> (update color of some pixels based on other criteria) --> Display it on screen

Steps in () are optional based on user flags. Currently in VC++ 6.0, I do all of these using a mix of GDI+ and SetPixel etc, except for second step. This time I am reqriting the whole applciation in VC++ 2010 and I have OpenCV libraries that I compiled and used in other applciations. Wondering whether this could be accomplished more efficiently in OpenCV, if so, any tips/suggestions?


2015-03-02 20:23:52 -0500 asked a question How to use imwrite with no compression to save tiff images?

I would like to set compression parameters to no compression and save as tiff image. I looked over the internet and even recompiled my sources (2.4.9) with the modification suggested on one of the threads on the internet. Can someone show me the syntax as to how to set those parameters? i am using the following syntax

imwrite(straviFileA, frameA, {TIFFTAG_COMPRESSION, COMPRESSION_NONE}), but it throws error

error C2065: 'TIFFTAG_COMPRESSION' : undeclared identifier

error C2065: 'COMPRESSION_NONE' : undeclared identifier


2015-02-02 10:32:19 -0500 commented question New user, need some basic help

Thanks for the replies, but I am more specifically looking to know how to copy the into a user defined buffer or even more to assign a user defined buffer to, I got the rest as to how to capture frames from camera and so on.

2015-02-01 22:46:32 -0500 asked a question New user, need some basic help

I just started using OpenCV for my application which I am upgrading from VC++ 6 to VS2008 64bit. I successfully compiled the libraries in both 32bit and 64bit flavors and then wrote a simple Win32 application to read from a usb video grabber into a OpenCV Mat datatype and display it on OpenCV window. Everything seems working fine.

Now to include it to my program, all I want it to do is to grab frames from a framegrabber (for now). For this I want to do the following apart from doing the necessary stuff (videocapture, read etc)

I would like to assign the 'data' in my Mat to a user defined uchar* and read the frames directly into it for quick access. Is it possible to accomplish this? If so, how? Next, how can read the number of channels, bit depth and frame size?


2015-02-01 12:05:50 -0500 commented question How to build OpenCV libraries without Python interface and JNI

Thanks for your quick reply. Since I am not sure where to put that command you suggested, I just ignored those messages and both my 32bit and 64bit builds went fine and working.

2015-01-30 22:10:57 -0500 asked a question How to build OpenCV libraries without Python interface and JNI

I am trying to build OpenCV libraries with my VS2008 64bit compiler on a Windows 64bit OS. My source files are opencv-2.4.9. But it is throwing the following errors

Could NOT find PythonInterp (missing: PYTHON_EXECUTABLE) (Required is at least version "2.0")


I dont want any of those interfaces anyways. Is there a way I can turn them off so that CMake wont look for it while building the libraries?