Ask Your Question

yum's profile - activity

2020-10-17 03:02:14 -0600 received badge  Famous Question (source)
2020-02-28 14:45:21 -0600 received badge  Famous Question (source)
2017-11-11 15:27:36 -0600 received badge  Student (source)
2017-04-03 04:55:06 -0600 received badge  Notable Question (source)
2017-02-07 13:04:37 -0600 received badge  Notable Question (source)
2016-03-18 15:17:31 -0600 received badge  Popular Question (source)
2015-10-23 11:03:47 -0600 received badge  Popular Question (source)
2014-03-02 10:36:37 -0600 received badge  Supporter (source)
2014-02-01 21:52:20 -0600 received badge  Editor (source)
2014-02-01 21:50:21 -0600 asked a question adding a row to a Mat matrix

Hi!I am using opencv and c++. I am trying to add a row of 1's in the last row of a matrix. When I display the matrix of the Mat object in command line,it displays everything like this http://i.imgur.com/JFb49of.jpg,where (55,118) is the first coordinate obtained,(24,56) is the second coordinate and (52,26) is the 3rd coordinate. What I need is a matrix which is displayed column wise where (55,118),(24,56) and (52,26) are displayed column wise with their last rows having a 1. My problem is I cannot get the formatting right. Can anyone help please?Thanks

2013-12-29 01:47:05 -0600 asked a question detecting imperfect circles(marker points) on face

hii!!i am using C++ and opencv2. I need to detect imperfect circles on a face..these circles are marker points and they are of red color. Can somebody suggest methods to do that please?I want to use blob detection but I cant understand how to do blob detection. Thanks

2013-11-10 01:24:45 -0600 asked a question Change resolution of extracted frame in Opencv

I have an H.264 video stream and I need to extract frames from it. However when I extract the frames,the quality is really poor since I need to perform color segmentation!I want to know how can i extract the frame and convert it to B G R so as to have a better quality picture. Here is the code :

#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <iostream>

using namespace cv;
using namespace std;

int main(){
    VideoCapture capture("1.dv4");
    if(!capture.isOpened())
        return 1;

    double rate=capture.get(CV_CAP_PROP_FPS);

    bool stop(false);

    Mat frame;
    namedWindow("Extracted Frame",CV_WINDOW_NORMAL);

    cout <<"Rate is="<<rate;

    int delay=1000/rate;

    while(!stop){
        if(!capture.read(frame))
            break;

            imshow("Extracted Frame",frame);
            imwrite("C:/Users/DELL/Documents/Visual Studio 2010/Projects/VideoFrameCapture/VideoFrameCapture/frame.jpg",frame);

        if(waitKey(delay)>=0)
            stop=true;
    }
    capture.release();
    waitKey(0);
    return 1;
}
2013-11-01 11:06:33 -0600 asked a question Black part when stitching 2 images and cannot stitch 3rd image

I need to create a panoramic image using open CV and C++..I am able to stitch the 2 images,that is, the left and middle. But after stitching the left and the middle there's a black part to it. I am thinking that is why i cant stitch the third image. I read somewhere that i should use perspective Transform. Can anybody help please?

Thanks

2013-09-19 09:06:45 -0600 commented answer finding centroid of a mask

hi there!!this code is perfect!!but i cant understand this line if( val >= 50)..val means intensity..why does it need to be 50? thanks

2013-09-19 00:59:54 -0600 commented answer remove image borders

thanks!!this seems like a really good solution!!but could you give more details about the code..like explain what the different functions are doing etc,please?

i copied and pasted the code with a different image of course but it does not work :S

2013-09-15 05:30:03 -0600 asked a question remove image borders

I have 3 images aligned one after the other in a single window.I want to remove the borders(or edges dont know the exact word sorry) in between the 3 images so that there is only one border which surrounds the 3 images. Can anyone help please? I am using openCV and C++. Is there a simple method to do that?I was going through harris corners etc and the codes seem to be pretty tough to understand

thanks

2013-09-15 02:27:14 -0600 commented answer adjacent images in single window

hi there again!!so i was able to align those images one after the other..now I want to remove the borders in between them,kind of making the borders transparent..will the borders go away if i use harrisCorners? i was doing a tutorial on harrisCorners but cant really understand the codes..is there a simpler way to remove the borders? thanks

2013-09-10 14:38:14 -0600 commented answer adjacent images in single window

yess thanks A LOT!!!really appreciate your help :)

2013-09-10 09:13:45 -0600 commented answer adjacent images in single window

sorryy..maybe i wasnt clear enough :/ cv::Mat is a data structure used to hold images and other matrix data. For example cv::Mat ima(240,320,CV_8U,cv::Scalar(100)); "ima" is the name given to the image, CV_8U is the type of the image,that is, whether it is colored or black and white, 240 and 320 i dont know whether they are coordinates etc

Now in general : Mat "imageName"(int rows,int cols,type,etcccc)

I need to know exactly what the data inside the brackets mean in general, like for Rect(int x, int y, int width, int height)

thanks for the additional details

2013-09-10 08:42:07 -0600 commented answer adjacent images in single window

cv::Mat output(s1.height, s1.width + s2.width + s3.width, CV_MAT_TYPE) and cv::Mat help2(output, cv::Rect(s1.width, 0, s2.width, s2.height);..what are those parameters in general?what does s1.height,s1.width + s2.width + s3.width, CV_MAT_TYPE mean in general?hope iim being clear

2013-09-10 08:29:00 -0600 commented answer adjacent images in single window

for Mat output and Mat help1,help2,help3..can you tell me exactly what are the parameters exactly because they seem to be different for Mat output and Mat help1/2/3..

2013-09-10 08:12:58 -0600 commented answer adjacent images in single window

omyyygodddd it workssss!!!!!! hehe thanks again :))

2013-09-10 07:45:01 -0600 received badge  Scholar (source)
2013-09-10 06:41:07 -0600 commented answer adjacent images in single window

thanks :)

will try this and see if it works :)

2013-09-10 05:59:47 -0600 asked a question adjacent images in single window

Hi!I am using C++ and opencv..I need to display 3 images adjacent to each other in a single window. Can someone help please

Thanks

2013-08-27 14:13:37 -0600 commented answer cannot extract openCV

i downloaded 7-Zip and tried extracting openCV from it but no luck

2013-08-27 14:04:57 -0600 commented answer cannot extract openCV

Hi! what is 7-zip?

2013-08-27 13:42:05 -0600 commented question cannot extract openCV

i created a folder called test in C:\ then i tried extracting it..same error

2013-08-27 12:51:03 -0600 commented question cannot extract openCV

Thanks for your reply! do i place the setup of openCV 2.4.2 in C:\? yes i tried double clicking but same error occurs. I also have admin rights :S

2013-08-27 11:10:02 -0600 asked a question cannot extract openCV

hi!i have downloaded several versions of openCV(2.4.2,2.4.3,2.4.6) but I am not able to extract any one of them(it give the error 0 cannot open path "c:\users\desktop\opencv.exe" as archive). I have installed visual studio 2012 on my PC and I am using Windows 7 64-bit

Can anyone help please?

Thanks