View Single Post
  #4   Spotlight this post!  
Unread 30-10-2007, 19:16
JamesBrown JamesBrown is offline
Back after 4 years off
FRC #5279
Team Role: Engineer
 
Join Date: Nov 2004
Rookie Year: 2005
Location: Lynchburg VA
Posts: 1,277
JamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond repute
Re: How to read images with argc & argv?

just curious, why do you want to use argc and argv?

I have fairly limited experience with argc and argv ( I have only used it with text files) but cant you set argc equal to the number of files you want to read in and then just enter all the file names on the command line when you run the program. You should be able to refer to the files as argv[i] where i is the posistion it was read in from ex. 1 would be first, 2 would be second etc.

You could then write a for loop, put all the code you want to execute on the picture inside of the loop and then just increment i to do the same for the next picture.

I may have not understood what you asked or my logic may be flawed for some other reason but I think this would work.
__________________
I'm Back


5279 (2015-Present)
3594 (2011)
3280 (2010)
1665 (2009)
1350 (2008-2009)
1493 (2007-2008)
1568 (2005-2007)