Ask Your Question

1229's profile - activity

2017-05-04 15:01:29 -0600 received badge  Taxonomist
2013-02-07 22:59:58 -0600 asked a question STAR DETECTOR

Hi, how to run STAR DETECTOR from http://pr.willowgarage.com/wiki/Star_Detector which is currently resides in ROS packages?

I try run in Visual Studio 2010 with OpenCV 2.4.2. I have tried run first process in file Star example as below, and failed.I put all the include file into my project folder. Really needs advice how to run the package.

Source:

#include "stdafx.h"
#include <cv.h>
#include <cxcore.h>
#include <highgui.h>
#include "detector.h"

int _tmain(int argc, _TCHAR* argv[])
{   
    IplImage* source = cvLoadImage("C:\\football.jpg", CV_LOAD_IMAGE_GRAYSCALE);
    int W = source->width;
    int H = source->height;

    return 0;
}

Build output:

1>------ Build started: Project: rohana, Configuration: Debug Win32 ------
1>Build started 08/02/2013 12:49:33.
1>InitializeBuildStatus:
1>  Touching "Debug\rohana.unsuccessfulbuild".
1>ClCompile:
1>  All outputs are up-to-date.
1>  rohana.cpp
1>c:\users\zahir\documents\visual studio 2010\projects\rohana\rohana\star_detector\threshold.h(117): warning C4244: 'initializing' : conversion from 'int' to 'float', possible loss of data
1>c:\users\zahir\documents\visual studio 2010\projects\rohana\rohana\star_detector\threshold.h(118): warning C4244: 'initializing' : conversion from 'int' to 'float', possible loss of data
1>c:\users\zahir\documents\visual studio 2010\projects\rohana\rohana\detector.h(37): error C2864: 'StarDetector::DEFAULT_RESPONSE_THRESHOLD' : only static const integral data members can be initialized within a class
1>c:\users\zahir\documents\visual studio 2010\projects\rohana\rohana\detector.h(38): error C2864: 'StarDetector::DEFAULT_LINE_THRESHOLD_PROJECTED' : only static const integral data members can be initialized within a class
1>c:\users\zahir\documents\visual studio 2010\projects\rohana\rohana\detector.h(39): error C2864: 'StarDetector::DEFAULT_LINE_THRESHOLD_BINARIZED' : only static const integral data members can be initialized within a class
1>c:\users\zahir\documents\visual studio 2010\projects\rohana\rohana\detector.h(106): error C2065: 'M_SQRT2' : undeclared identifier
1>c:\users\zahir\documents\visual studio 2010\projects\rohana\rohana\detector.h(106): error C2864: 'StarDetector::SCALE_RATIO' : only static const integral data members can be initialized within a class
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:08.63
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========