Life to me is....
a random variable where the element of uncertainty is 0.99
LIBS += -L"C:\OpenCV2.1/lib"
LIBS += -lcv210 -lcxcore210 -lhighgui210 -lcvaux210 -lcxts210 -lml210 -lopencv_ffmpeg210
#
# Project created by QtCreator 2010-09-21T15:20:29
#
#-------------------------------------------------
QT += core
QT -= gui
INCLUDEPATH +="C:\OpenCV2.1\include/opencv"
LIBS += -L"C:\OpenCV2.1/lib"
LIBS += -lcv210 -lcxcore210 -lhighgui210 -lcvaux210 -lcxts210 -lml210 -lopencv_ffmpeg210
TARGET = opencvTest
CONFIG += console
CONFIG -= app_bundle
TEMPLATE = app
SOURCES += main.cpp
heres a sample program as well to help u with it ##dont forget to include QDir,QDebug as well to ur existing app ## along with its existing defaults i.e. QCoreApplication if its a console app ## etc....etc.... #include "cv.h" #include "cxcore.h" #include "highgui.h" #include "stdio.h" int main(int argc, char *argv[]) { QCoreApplication a(argc, argv); IplImage* test=cvLoadImage("test.jpg",1); cvNamedWindow("test",CV_WINDOW_AUTOSIZE); cvShowImage("test",test); float i=32.45; char* temp="amar"; qDebug() << QDir::currentPath() << i <<temp; return a.exec(); }
public string constructASearchQuery(searchOperator[] theSearchOperators)
{
StringBuilder searchQuery = new StringBuilder(@"select somecolumn from" + "theTable");
if (theSearchOperators != null) { bool firstCriterion = true; int index = 0; foreach (searchOperator theSearchCriterion in theSearchOperators) { if (theSearchCriterion != null && !(string.IsNullOrEmpty(theSearchCriterion.Id)) && !(string.IsNullOrEmpty(theSearchCriterion.Value)) && !(string.IsNullOrEmpty(theSearchCriterion.OperatorExpression))) { if (firstCriterion) { searchQuery.Append(" where " + theSearchCriterion.Id + theSearchCriterion.OperatorExpression + "'" + theSearchCriterion.Value + "'"); firstCriterion = false; } else { searchQuery.Append(" and " + theSearchCriterion.Id + theSearchCriterion.OperatorExpression + "'" + theSearchCriterion.Value + "'"); } index++; } } //if (index > 0) //query constructed }
return searchQuery.ToString();}