Ask Your Question

Nate Beghuk's profile - activity

2018-11-27 03:59:07 -0600 received badge  Notable Question (source)
2017-06-25 02:50:11 -0600 received badge  Famous Question (source)
2016-06-21 04:58:22 -0600 received badge  Popular Question (source)
2016-01-15 08:58:41 -0600 received badge  Student (source)
2015-07-25 07:09:02 -0600 received badge  Notable Question (source)
2014-12-29 21:06:00 -0600 received badge  Popular Question (source)
2014-10-10 03:42:16 -0600 received badge  Famous Question (source)
2014-06-21 09:56:08 -0600 received badge  Notable Question (source)
2014-05-14 05:20:30 -0600 received badge  Popular Question (source)
2013-12-12 09:26:24 -0600 commented question Error LNK1120: 1 unresolved externals

yes. added all the include to the lib list..

include <opencv2/imgproc/imgproc.hpp>

include <opencv2/highgui/highgui.hpp>

include <opencv2/imgproc/imgproc_c.h>

include <opencv2/imgproc/imgproc.hpp>

include <opencv2/legacy/legacy.hpp>

include <stdio.h>

I changed coding above to this :

include "opencv2/imgproc/imgproc.hpp"

include "opencv2/highgui/highgui.hpp"

include <stdlib.h>

include <stdio.h>

there is no Error LNK1120 anymore.But it turns out to have Error error C3861: 'cvPyrSegmentation': identifier not found ...HeadBanging..error error errorrrr.. Can somebody help me?? T_T

2013-12-12 08:26:26 -0600 commented question Error LNK1120: 1 unresolved externals

Hello itay, yeah I'd already tried a really basic OpenCV few times before. It works fine. I tried all sorts of examples given in the tutorial provided by the OpenCV. It just fine.Working smoothly... Thanks for your comment.. :)

Just I said, I asked my friend to execute this code using his laptop, its work fine.No error at all.But he's using Visual Studio 2010 instead of me using Visual Studio 2012. He's getting no error but I am...wonder why...

2013-12-12 07:53:49 -0600 asked a question Error LNK1120: 1 unresolved externals

Hello expert..I'm getting an error when executing this code using my desktop. But when my friend execute this code by using his laptop, it works fine.Wonder whats wrong with it. I'm using Microsoft Visual Studio 2012. But my friend use Visual Studio 2010.

Here is the error

Error error LNK2019: unresolved external symbol _cvPyrSegmentation referenced in function "void __cdecl START_SEGMENT(int)" (?START_SEGMENT@@YAXH@Z)

Error error LNK1120: 1 unresolved externals

Can any of expert here help me, please? Thank you in advance for your help.

#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc_c.h>
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/legacy/legacy.hpp>
#include <stdio.h>

static void help(void)
{
  printf("\nThis program present the function of pyramid segmentation which is       
         cvcvPyrSegmentation()\n""we can controlled the value of threshold by creating the   
         taskbar\n""Usage :\n");            
}

 IplImage*  image[2] = { 0, 0 }, *image0 = 0, *image1 = 0;
 CvSize size;

 int  w0, h0,i;
 int  threshold1, threshold2;
 int  l,level = 4;
 int sthreshold1, sthreshold2;
 int  l_comp;
 int block_size = 1000;
 float  parameter;
 double threshold;
 double rezult, min_rezult;
 int filter = CV_GAUSSIAN_5x5;
 CvConnectedComp *cur_comp, min_comp;
 CvSeq *comp;
 CvMemStorage *storage;

 CvPoint pt1, pt2;

 static void START_SEGMENT(int a)
{
  (void) a;
  cvPyrSegmentation(image0, image1, storage, &comp, level, threshold1+1, threshold2+1);

  cvShowImage("Segmentation", image1);
}


int main( int argc, char** argv )
{
 char* filename;

 help();

 filename = argc == 2 ? argv[1] : (char*)"C:/Users/acer/Documents/Visual Studio 
 2012/Projects/me2.jpg";

 if( (image[0] = cvLoadImage( filename, 1)) == 0 )
{
    help();
    printf("Cannot load fileimage - %s\n", filename);
    return -1;
}


cvNamedWindow("Source", 0);
cvShowImage("Source", image[0]);

cvNamedWindow("Segmentation", 0);

storage = cvCreateMemStorage ( block_size );

image[0]->width &= -(1<<level);
image[0]->height &= -(1<<level);

image0 = cvCloneImage( image[0] );
image1 = cvCloneImage( image[0] );
// segmentation of the color image
l = 1;
threshold1 =255;
threshold2 =30;

START_SEGMENT(1);

sthreshold1 = cvCreateTrackbar("Threshold1", "Segmentation", &threshold1, 255, START_SEGMENT);
sthreshold2 = cvCreateTrackbar("Threshold2", "Segmentation",  &threshold2, 255, START_SEGMENT);

cvShowImage("Segmentation", image1);
cvWaitKey(0);

cvDestroyWindow("Segmentation");
cvDestroyWindow("Source");

cvReleaseMemStorage(&storage );

cvReleaseImage(&image[0]);
cvReleaseImage(&image0);
cvReleaseImage(&image1);

return 0;

}

#ifdef _EiC
main(1,"pyramid_segmentation.c");
#endif
2013-12-07 23:14:51 -0600 asked a question How to open android camera from desktop?

Hello expert !

Since my desktop doesn't have a web cam, I connect my android using usb cable. Then I want to ask how do I open the android camera from desktop?? Is it possible??

I execute the Region of Interest(ROI) coding, but for sure nothing will happen since my desktop doesnt have a webcam..What if I want to use my android front camera as webcam?? After the execution, my android front camera will open and then capture the region of interest(ROI). ..Is it possible?? Here is the code

#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <string.h>
#include<opencv2\opencv.hpp>
#include <opencv2\highgui\highgui.hpp>


int main(int argc, char *argv[])
{
 CvCapture *capture = 0;
 IplImage *frame = 0;
 int key = 0;
 /* initialize camera */
 capture = cvCaptureFromCAM( 0 );
 /* always check */
 if ( !capture ) {
 printf("Cannot open initialize webcam!\n" );
 exit(0);
 }

 /* create a window for the video */
 cvNamedWindow( "result", CV_WINDOW_AUTOSIZE );
 while( key != 'q' ) {
 /* get a frame */
 frame = cvQueryFrame( capture );

 /* always check */
 if( !frame ) break;

 /* sets the Region of Interest*/
 cvSetImageROI(frame, cvRect(150, 50, 150, 250));
 /* create destination image */ 
 IplImage *img2 = cvCreateImage(cvGetSize(frame),
 frame->depth,
 frame->nChannels);

 /*
 * do the main processing with subimage here.
 * in this example, we simply invert the subimage
 */
 cvNot(frame,frame);
 /* copy subimage */
 cvCopy(frame, img2, NULL);
 /* always reset the Region of Interest */
 cvResetImageROI(frame);

 /* display current frame */
 cvShowImage( "result", frame );
 /* exit if user press 'q' */
 key = cvWaitKey( 1 );
 }

 /* free memory */
 cvDestroyWindow( "result" );
 cvReleaseCapture( &capture );
 return 0;
 }
2013-12-07 22:34:21 -0600 commented answer How to set region of interest ROI??

hey bro. berak !! thanks a lot for the advice.. I will try it. Never give up ! hell yeahh

2013-12-07 11:41:05 -0600 commented answer How to set region of interest ROI??

Thank you so much -berak- :) sorry my bad. I already edit it..thanks for the reminder.

may ask you, what if my interest of region(ROI) exactly only on that wounded area, so what is the coding..how to do that?? Is it possible to point out my desired ROI point by point?? not in a rectangular shape..did you understand my question?

Thank you bro :)

2013-12-07 11:30:33 -0600 received badge  Editor (source)
2013-12-07 10:44:16 -0600 asked a question How to set region of interest ROI??

Hello expert ! I'm a newbie.. Can anyone of you help me how to set region of interest(ROI) of an opening image?? I'm still learning opencv by myself from internet wthout any guidance from my lecturer..so stress trying to learn something new without any help..But Im not give up !!!

Actually I want to set a ROI on a wounded skin. Let say I open an image, then I want to set ROI in that image.. My ROI is in wounded area. Here is what Im trying. But there is no ROI..it just open the image.Can anyone of you help me please??


#include <opencv\cv.h>
#include <opencv\highgui.h>

using namespace cv;

int main(int argc, char** argv)
{
  int key = 0;
  IplImage* img = cvLoadImage( "C:\\Users\\acer\\Documents\\Visual Studio        
  2012\\Projects\\o1.jpg" ); 
  cvNamedWindow( "Example1", CV_WINDOW_NORMAL );
  cvShowImage("Example1", img);
  cvWaitKey(0);
  cvReleaseImage( &img );
  cvDestroyWindow( "Example1" );

  /* sets the Region of Interest*/
  cvSetImageROI(img, cvRect(150, 50, 150, 250));

  return 0;
  }

here example of the wounded image that i want to set ROI
image description

2013-11-24 21:28:50 -0600 commented question Error C1083: Cannot open include file: 'highgui.h': No such file or directory

tq bro Berak..I just deleted the ~~~ #include "highgui.h" ~~~ from the coding and the error gone.

include "opencv2/imgproc/imgproc.hpp"

include "opencv2/highgui/highgui.hpp"

include "highgui.h" <-------- I delete this line and then execute the coding and its working

include <stdlib.h>

include <stdio.h>

using namespace cv;

/// Global variables Mat src, erosion_dst, dilation_dst;

int erosion_elem = 0; int erosion_size = 0; int dilation_elem = 0; int dilation_size = 0; int const max_elem = 2; int const max_kernel_size = 21;

/* Function Headers */ void Erosion( int, void ); void Dilation( int, void* ); . . .

2013-11-24 09:35:05 -0600 asked a question Error C1083: Cannot open include file: 'highgui.h': No such file or directory

Getting error after executing "dilating and eroding example of coding" provided in the tutorial 2.4.7 using Microsoft Visual Studio 2012..I'm a newbie.Could anyone of you help me??I'm just trying to execute the coding provided in the tutorial as I want to see what is the output.But there is an error..