C and Cpp

 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me



Go Back   Tutorialized ForumsDesktop ProgrammingC and Cpp

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Tutorialized Forums Sponsor:
  #1  
Old May 23rd, 2009, 12:49 PM
isiomer isiomer is offline
Registered User
Tutorialized Newbie (0 - 499 posts)
 
Join Date: May 2009
Posts: 1 isiomer User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 m 36 sec
Reputation Power: 0
Urgent:please help with opencv

#include “cv.h”
#include “highgui.h”
int main()
{
IplImage *img=NULL;
cvRectangle(img,cvPoint(0,0),cvPoint(25,25),cvScal ar(255,0,0),1);
cvNamedWindow("image",CV_WINDOW_AUTOSIZE);
cvShowImage("image",img);
cvWaitKey(0);
cvDestroyWindow("image");
cvReleaseImage(&img);
return 0;
}

on compiling it gives the error :
rect.c: In function ‘main’:
rect.c:6: error: too few arguments to function ‘cvScalar’
rect.c:6: error: too few arguments to function ‘cvRectangle’
-------------doubts:
->according to opencv documentation cvScalar can have any number of arguments ranging from 1-4
->the same error occurs even if I donot initialise img to NULL
->why does it say too few argumments for cvRectangle even if I write cvScalar(255,0,0,3).............here please explain what the 3 means it is written as A in color (RGBA)
Thanks in advance...............it would be highly appreciated if you can provide some good references (code) to applications using opencv

Reply With Quote
Reply

Viewing: Tutorialized ForumsDesktop ProgrammingC and Cpp > Urgent:please help with opencv


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 

Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.

© 2003-2017 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap