Ask Your Question

Karthik's profile - activity

2019-12-13 10:49:41 -0600 received badge  Popular Question (source)
2019-11-07 10:40:12 -0600 received badge  Famous Question (source)
2019-05-25 05:03:16 -0600 received badge  Popular Question (source)
2015-12-17 01:46:51 -0600 received badge  Notable Question (source)
2014-09-01 07:53:31 -0600 received badge  Popular Question (source)
2013-04-27 11:11:22 -0600 commented answer How to resize Float Matrix in OpenCV

Yes..It resizes properly.... if I give the interpolation option as INTER_NEAREST or INTER_LINEAR... if i use INTER_CUBIC , there are several negative values in the resized matrix whereas I had all positive values in the original matrix..... Do you know why INTER_CUBIC generates negative float values in resized matrix.... I still used it for an Image(uchar) and got the resized image pretty well

2013-04-27 11:07:02 -0600 received badge  Scholar (source)
2013-04-26 02:00:14 -0600 commented question How to resize Float Matrix in OpenCV

No...aftr processing there will be floating values in Mat.... You manually assign certain pixels with float values such as 21.11,19.33,88.43 and then resize ...and display...do you get same result???

2013-04-25 11:55:58 -0600 commented question How to resize Float Matrix in OpenCV

@Nyenna Did you use Float Mat ??? I think,imshow function supports only CV_8UC1 ..

2013-04-25 11:53:31 -0600 commented question How to resize Float Matrix in OpenCV

@berak All values in res_B are 100.... But after processing B contains several floating point nos... In the resized Mat res_B it is not !!

2013-04-25 07:23:09 -0600 asked a question How to resize Float Matrix in OpenCV

I have a Mat object of type CV_32FC1 of size 300x300 ....

I tried :

B=Mat::ones(rows,cols,CV_32FC1)*100;

...process B...

Mat res_B=Mat::zeros(480,640,CV_32FC1); 

resize(B, res_B, Size(640,480), 0, 0, INTER_CUBIC);

How to resize it to size 640x480 ?? When I used the resize() function in OpenCV it doesnt seem to work...Any suggestions??

2013-04-24 09:37:16 -0600 commented answer Image Registration by Manual marking of corresponding points using OpenCV

Thank you Guanta. I think shape matching is a good idea... I ll try it soon... Any OpenCV links for that?

2013-04-24 09:34:43 -0600 received badge  Supporter (source)
2013-04-18 12:27:06 -0600 asked a question Difference between Fundamental , Essential and Homography matrices

I have two images which are taken from different positions. The 2nd camera is located to the right,up and backward with respect to 1st camera. So I think there is a perpective transformation between the two and not just affine transform since camera are at relatively different depths (am I right ??) I have few corresponding points between the two images. I think of using these corresponding points to determine the transformation of each pixel point from 1st to 2nd image.

I am confused by the functions findFundamentalMat and findHomography.... both return 3x3 matrix, what is the difference between the two ??

Is there any condition required/prerequisite to use them (when to use them)??

Which one to use to transform points from 1st image to 2nd image?? In the 3x3 matrices which the functions return, do they include the rotation and translation between the two image frames??

From wikipedia, came to kmnow that Fundamental matrix is relation between corresponding image points. In an SO answer here, it is said Essential Matrix E is required to get corresponding points... but I do not have the internal Camera matrix to calculate E.....I just have the two images.

How should I proceed to determine the corresponding point? Awaiting for suggestions.. Thank you

2013-04-16 20:56:14 -0600 received badge  Editor (source)
2013-04-16 20:55:07 -0600 asked a question Image Registration by Manual marking of corresponding points using OpenCV
  1. I have a processed binary image of dimension 300x300. This processed image contains few object(person or vehicle).

processed binary image

  1. I also have another RGB image of the same scene of dimensiion 640x480. It is taken from a different position

enter image description here

note : both cameras are not the same

I can detect objects to some extent in the first image using background subtraction. I want to detect corresponding objects in the 2nd image. I went through opencv functions

All these functions require corresponding points(coordinates) in two images

In the 1st binary image, I have only the information that an object is present,it does not have features exactly similar to second image(RGB).

I thought conventional feature matching to determine corresponding control points which could be used to estimate the transformation parameters is not feasible because I think I cannot determine and match features from binary and RGB image(am I right??).

If I am wrong, what features could I take, how should I proceed with Feature matching, find corresponding points, estimate the transformation parameters.

The solution which I tried more of Manual marking to estimate transformation parameters(please correct me if I am wrong)

Note : There is no movement of both cameras.

  • Manually marked rectangles around objects in processed image(binary)
  • Noted down the coordinates of the rectangles
  • Manually marked rectangles around objects in 2nd RGB image
  • Noted down the coordinates of the rectangles
  • Repeated above steps for different samples of 1st binary and 2nd RGB images

Now that I have some 20 corresponding points, I used them in the function as :

findHomography(src_pts, dst_pts, 0) ;

So once I detect an object in 1st image,

  • I drew a bounding box around it,
  • Transform the coordinates of the vertices using the above found transformation,
  • finally draw a box in 2nd RGB image with transformed coordinates as vertices.

    But this doesnt mark the box in 2nd RGB image exactly over the person/object. Instead it is drawn somewhere else. Though I take several sample images of binary and RGB and use several corresponding points to estimate the transformation parameters, it seems that they are not accurate enough..

What are the meaning of CV_RANSAC and CV_LMEDS option, ransacReprojecThreshold and how to use them?

Is my approach good...what should I modify/do to make the registration accurate?

Any alternative approach to be used?

2013-04-16 12:35:25 -0600 received badge  Self-Learner (source)
2013-04-16 12:12:05 -0600 answered a question How to set up OpenCV(which is part of ROS) in Qt creator in Ubuntu12.04

1- Create a symbolic link to /opt/ros/fuerte/lib/pkgconfig/opencv.pc inside the directory /user/local/lib/pkgconfig.

cd /usr/local/lib/pkgconfig

ln -s /opt/ros/fuerte/lib/pkgconfig/opencv.pc opencv.pc

2- Create the appropriate .pro file for your Qt project

TARGET= MyQtProject

TEMPLATE = APP

SOURCES += main.cpp

CONFIG += link_pkgconfig

PKGCONFIG += opencv

2013-04-14 09:02:42 -0600 asked a question How to set up OpenCV(which is part of ROS) in Qt creator in Ubuntu12.04

I have OpenCV2.4.2 installed as part of ROS(Fuerte) in my computer. I want to use an IDE for my projects, I already have installed Qt creator from Ubuntu Software center.

Can somebody help me with how to set up/configure Qt creator with the ROS opencv ?

Thank you

2012-07-23 10:50:12 -0600 received badge  Student (source)
2012-07-22 21:18:27 -0600 asked a question Installation procedure for OpenCV on Windows

Hello everyone,

I am a beginner in OpenCV. I worked in matlab earlier. I have downloaded the opencv library 2.4.2 and I have no idea on how to build library files, etc. I have also downloaded and installed Microsoft Visual C++ 2010 Express. Please guide me with step by step procedure to do all the stuff and begin my project.

I am using Windows 7 64 bit.

Thank you in advance