Ask Your Question

dhanash's profile - activity

2018-11-04 23:06:12 -0600 received badge  Popular Question (source)
2014-01-05 02:52:48 -0600 received badge  Student (source)
2013-09-11 06:15:24 -0600 received badge  Editor (source)
2013-09-11 03:36:56 -0600 asked a question Problem in qt

Hi guys...i got output as empty terminal window while compiling following simple display an image program using qt with opencv in ubuntu.

code

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

int main() 

{

    cv::Mat image= cv::imread("img.jpg");
    cv::namedWindow("My Image");
    cv::imshow("My Image", image);
    cv::waitKey(5000);
    return 1;
}

give me solution?

thankyou

dhanash

2013-07-23 06:01:45 -0600 asked a question gedit command not working

hi guys i am beginner to raspberry pi with debian OS.....When i was install opencv-2.4.3. i got error " sudo: gedit:command not found" while ran this command "sudo gedit /etc/ld.so.conf.d/opencv.conf" on terminal. Then i was try to install "gedit" but it didnt install then it shows errors

"The following packages have unmet dependencies: gedit : Depends: libpeas-1.0-0 (>= 1.1.0) but it is not going to be installed Depends: gir1.2-peas-1.0 but it is not going to be installed E: Unable to correct problems, you have held broken packages."

what is the solution? reply soon

thankyou

regards, dhanash.

2013-07-20 14:38:59 -0600 asked a question Error while installing opencv on debian

hi guys…i have a problem while installing opencv on debian. when i am run this cmd “wget http://downloads.sourceforge.net/project/opencvlibrary/opencv-unix/2.4.3/OpenCV-2.4.3.tar.bz2 ” on terminal then i got error “no such directory found” ….my current dirctory is /home/pi….what is the solution? please help me….reply soon

thankyou

2013-06-09 14:18:00 -0600 commented answer change the Height and Width of the image

code works...but image didnt resize even i was load image which is divisible by two. what can i do now..reply me

2013-06-05 01:03:18 -0600 asked a question change the Height and Width of the image
#include "opencv2/opencv.hpp"
#include "opencv2/objdetect/objdetect.hpp"
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/imgproc/imgproc_c.h"
#include "opencv2/imgproc/imgproc.hpp"

#include <iostream>
#include <stdio.h>

using namespace std;
using namespace cv;

IplImage* doPyrDown(IplImage* in,int filter = IPL_GAUSSIAN_5x5)
{
// Best to make sure input image is divisible by two.
assert( in->width%2 == 0 && in->height%2 == 0 );
IplImage* out = cvCreateImage(cvSize( in->width/2, in->height/2 ),in->depth,in->nChannels);
cvPyrDown( in, out );
return( out );
}

int main( int argc, char* argv[]) 
{
IplImage* img = cvLoadImage( argv[1],1);//load the image and 1 for color image
cvNamedWindow( "Display", CV_WINDOW_AUTOSIZE );//Create and Name the window

doPyrDown(img,0);

cvShowImage( "Display",img);//Display the image
cvWaitKey(0);//wait until user hits a key,if number is +ve then that much milli seconds image will wait to be closed
cvDestroyWindow( "Display" );//Destroy and De-allocate memory
}

hi i got "sample.cpp:15:47: error: ‘IPL_GAUSSIAN_5x5’ was not declared in this scope" while compiling...please help me to get output...