Ask Your Question

dogucan159's profile - activity

2017-12-19 12:30:01 -0500 received badge  Notable Question (source)
2017-03-29 08:43:22 -0500 received badge  Popular Question (source)
2014-11-25 11:03:20 -0500 received badge  Famous Question (source)
2014-06-04 01:05:35 -0500 received badge  Notable Question (source)
2014-01-24 07:20:10 -0500 received badge  Popular Question (source)
2013-11-26 06:25:51 -0500 asked a question Error:Assertion failed is my header file in my project.

There are<uchar>(yaxis,xaxis+1) at line 249. When i type this code in my project i got this error:

OpenCV Error: Assertion failed (dims <= 2 && data && (unsigned)i0 < (unsigned)si ze.p[0] && (unsigned)(i1DataType<_Tp>::channels) < (unsigned)(size.p[1]channel s()) && ((((sizeof(size_t)<<28)|0x8442211) >> ((DataType<_Tp>::depth) & ((1 << 3 ) - 1))*4) & 15) == elemSize1()) in unknown function, file c:\opencv\build\inclu de\opencv2\core\mat.hpp, line 537

What's wrong? is also my .cpp file. My previous question is

You can get what i would like to do.

2013-11-19 04:22:02 -0500 asked a question Remove unwanted part on an image.

I would like to remove unwanted part of my image. How could i do this. What kind of algorithm should i use?

2013-10-26 15:59:41 -0500 asked a question push_back problem that is my WallFinder.h file and is my WallFinder.cpp file.

My problem is that I would like to insert a new element to lines vector. However When I wrote lines.push_back(Vec4i((*it2)[0],yaxis,xaxis,yaxis)); after calling writeToFile function. I got error message that Assertion Failed! Expression:_CrtIsValidHeapPointer(pUsrData)

How can i insert to new element to my lines vector or What is my problem?

2013-10-22 08:42:48 -0500 commented answer How to push_back to a vector This is also .cpp file of .h file

2013-10-22 08:41:15 -0500 commented answer How to push_back to a vector
2013-10-22 06:57:14 -0500 commented answer How to push_back to a vector

if(xaxis!=(it2)[0]) { line(skeleton,Point((it2)[0],yaxis),Point(xaxis,yaxis),color); writeToFile((it2)[0],yaxis,xaxis,yaxis,i); lines.push_back(Vec4i((it2)[0],yaxis,xaxis,yaxis)); // LINE OF CODE WHICH FAILS ++i; } //...

2013-10-22 06:23:13 -0500 commented answer How to push_back to a vector

_CrtIsValidHeapPointer(pUsrData) expression in error message

2013-10-21 06:17:25 -0500 commented answer How to push_back to a vector

I have tried your recommend again and again but problem is go on.

2013-10-21 03:18:02 -0500 asked a question How to push_back to a vector

This is my vector.

vector (Vec4i) lines; I have tried this but It is not working.


How can i do this job correctly?

2013-10-12 07:43:19 -0500 asked a question EROSION DILATION PROBLEM

i want to detect only walls. in this image is my input image. Only walls should remain in my image. how can erosion or dilation can do that?

2013-10-11 07:40:59 -0500 commented question How to eliminate shapes

i want to detect only walls. in this image is my input image. Only walls should remain in my image. how can erosion or dilation can do that?

2013-10-11 07:17:51 -0500 asked a question How to eliminate shapes

I would like to detect lines in an image and write them to a file. However HougLinesP function detects some unsignificant things as an line. For example ( case B in Bedroom or thinner lines in image ). I don't want HoughLineP to detect thinner lines and texts. I want to eliminate them. How can i achieve my goal?

2013-09-01 05:40:19 -0500 asked a question About my image processing project...

I have a project about computer vision. My project is that converting 2D floor plan to 3D. To do this, I should detect rooms of the plan then I should detect objects in the room ( for example: dining table, sink, armchair ). What can i learn to do this job? Which topics related to it? How can i make preparation?

2013-08-05 04:41:41 -0500 received badge  Editor (source)
2013-08-05 04:01:52 -0500 asked a question Bad Argument <Unknown array type>

I want to Use the capture and store code below together with the doPyrDown() code to create a program that reads from a camera and stores downsampled color images to disk. Then I want to display the frames as they are processed.

#include <opencv/cv.h>
#include <opencv2/highgui/highgui.hpp>
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 ),
cvPyrDown( in, out );
return( out );
int main( int argc, char** argv ) {
CvCapture* capture = 0;
capture = cvCreateFileCapture( argv[1] );
return -1;
IplImage *bgr_frame=cvQueryFrame(capture);//Init the video read
double fps = cvGetCaptureProperty (
CvSize size = cvSize(
(int)cvGetCaptureProperty( capture, CV_CAP_PROP_FRAME_WIDTH),
(int)cvGetCaptureProperty( capture, CV_CAP_PROP_FRAME_HEIGHT)
CvVideoWriter* writer = cvCreateVideoWriter(
IplImage* logpolar_frame = cvCreateImage(
while( (bgr_frame=cvQueryFrame(capture)) != NULL ) {
cvLogPolar( bgr_frame, logpolar_frame,
cvWriteFrame( writer, logpolar_frame );
cvNamedWindow( "Example2", CV_WINDOW_AUTOSIZE );
capture = cvCreateFileCapture( argv[2] );
IplImage* frame;
while(1) {
frame = cvQueryFrame( capture );
if( !frame ) break;
cvShowImage( "Example2", frame );
char c = cvWaitKey(33);
if( c == 27 ) break;
cvReleaseVideoWriter( &writer );
cvReleaseImage( &logpolar_frame );
cvReleaseCapture( &capture );
cvDestroyWindow( "Example2" );

I got this error in the command line OpenCV Error: Insufficient memory (Failed to allocate 1228820 bytes) in unknown function, file ......\src\opencv\modules\core\src\alloc.cpp, line 52

2013-08-03 10:05:06 -0500 commented answer opencv_core246d.dll is not in your computer

I have solved the problem. Thx so much

2013-08-03 10:04:34 -0500 received badge  Scholar (source)
2013-08-03 05:03:27 -0500 commented answer opencv_core246d.dll is not in your computer

Can you explain step by step. I have tried this but It is not still working.

2013-08-02 10:45:32 -0500 asked a question opencv_core246d.dll is not in your computer

I would like to debug my program but I got opencv_core246d.dll could not found error message. How can i solve this? Note: I have installed OpenCV 2.4.6 again and again.

2013-08-02 07:40:21 -0500 asked a question My error message


My code is:

include <opencv2 core="" core.hpp="">

include <opencv2 highgui="" highgui.hpp="">

include <iostream>

using namespace cv; using namespace std;

int main( int argc, char** argv ) { if( argc != 2) { cout <<" Usage: display_image ImageToLoadAndDisplay" << endl; return -1; }

Mat image;
image = imread(argv[1], IMREAD_COLOR); // Read the file

if(! )                      // Check for invalid input
    cout <<  "Could not open or find the image" << std::endl ;
    return -1;

namedWindow( "Display window", WINDOW_AUTOSIZE ); // Create a window for display.
imshow( "Display window", image );                // Show our image inside it.

waitKey(0); // Wait for a keystroke in the window
return 0;

} I got error message: Error error LNK1104: cannot open file 'opencv_core231d.lib'
What's wrong?

2013-08-02 07:27:02 -0500 asked a question About Installation


I have downloaded and installed OpenCV 2.4.6. I am new about OpenCV. I have followed the instructions in

I could not get where i will paste or write codes. I could not open any code page in my project.