Forum     

Go Back   Digit Technology Discussion Forum > Software > Programming
Register FAQ Calendar Mark Forums Read

Programming The destination for developers - C, C++, Java, Python and the lot


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 18-01-2007, 07:52 PM   #1 (permalink)
Alpha Geek
 
Join Date: Feb 2005
Posts: 959
Default opening jpg file in C++


Hi guys,

can any1 show me how to open a jpg file for processing in C++?? I am sick of searching it online!!

/legolas
__________________
A computer lets you make more mistakes faster than any invention in human history - with the possible exceptions of handguns and tequila.
legolas is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 18-01-2007, 08:02 PM   #2 (permalink)
Alpha Geek
 
rahul_becks23's Avatar
 
Join Date: Oct 2004
Posts: 832
Default Re: opening jpg file in C++

well , u can process an image file in photoshop , never heard about c++.......i think c++ opens codes (i.e. plain text) .
rahul_becks23 is offline  
Old 18-01-2007, 08:11 PM   #3 (permalink)
Alpha Geek
 
Join Date: Feb 2005
Posts: 959
Default Re: opening jpg file in C++

I wanted to open the jpg file and process with the information in my code. I wanted to perform the fft of an image. for that i have to open the image and get the data on an array and then i have to start getting the fft. hope u understand now.

/legolas
__________________
A computer lets you make more mistakes faster than any invention in human history - with the possible exceptions of handguns and tequila.
legolas is offline  
Old 18-01-2007, 08:15 PM   #4 (permalink)
Alpha Geek
 
rahul_becks23's Avatar
 
Join Date: Oct 2004
Posts: 832
Default Re: opening jpg file in C++

well, then........do this.....
Run ur compiler........
and drag the image file into the compiler.
rahul_becks23 is offline  
Old 18-01-2007, 08:19 PM   #5 (permalink)
Alpha Geek
 
Join Date: Feb 2005
Posts: 959
Default Re: opening jpg file in C++

I am reporting your reply to the moderators. It seems you dont know what is C++ from the way you answered and you are just replying with bogus replies.

Please reply usefully and only if you know.

thks a lot,
/legolas.
__________________
A computer lets you make more mistakes faster than any invention in human history - with the possible exceptions of handguns and tequila.
legolas is offline  
Old 18-01-2007, 08:19 PM   #6 (permalink)
Still Shining!
 
Lucky_star's Avatar
 
Join Date: Nov 2006
Location: Up 'n' above
Posts: 1,174
Default Re: opening jpg file in C++

Search for this header file in google: jpeglib.h
You can get it easily from the Independent Jpeg Group.
Check for the documentation on what decompression functions are available in the above said file.
__________________
Simplicity is the ultimate Sophistication
HP dv6 6121tx: Core i7 2630 QM | 4GB | AMD 6770M 2GB GDDR5 | 640 GB
Nokia N86 8MP
Lucky_star is offline  
Old 18-01-2007, 08:22 PM   #7 (permalink)
Alpha Geek
 
Join Date: Feb 2005
Posts: 959
Default Re: opening jpg file in C++

hi lucky_star,

I have opened jpeg files before in C. I just dont remember them. And i dont recollect using any special headers for opening the files. Its just the parameters that i am not able to recollect while using the fopen function.

thks,
legolas.
__________________
A computer lets you make more mistakes faster than any invention in human history - with the possible exceptions of handguns and tequila.
legolas is offline  
Old 18-01-2007, 08:25 PM   #8 (permalink)
Still Shining!
 
Lucky_star's Avatar
 
Join Date: Nov 2006
Location: Up 'n' above
Posts: 1,174
Default Re: opening jpg file in C++

Ok, I will check that and will reply to you soon....
__________________
Simplicity is the ultimate Sophistication
HP dv6 6121tx: Core i7 2630 QM | 4GB | AMD 6770M 2GB GDDR5 | 640 GB
Nokia N86 8MP
Lucky_star is offline  
Old 18-01-2007, 10:09 PM   #9 (permalink)
In The Zone
 
Pragadheesh's Avatar
 
Join Date: Jul 2006
Location: Coimbatore
Posts: 403
Post Re: opening jpg file in C++

hope these links 'll help u...

http://cimg.sourceforge.net/referenc..._tutorial.html

http://cimg.sourceforge.net/
Pragadheesh is offline  
Old 27-01-2007, 08:33 PM   #10 (permalink)
Right Off the Assembly Line
 
Join Date: Jan 2007
Posts: 1
Default Re: opening jpg file in C++

CAN ANY ONE TELL ME how to open a file in C. ( file is more than 8.3 format)

I am using win Xp and in C it is opening only files having 8.3 format.

what changes i have to make so that it will take long file names...
bharathraj77 is offline  
Old 27-01-2007, 10:21 PM   #11 (permalink)
In The Zone
 
Join Date: Sep 2006
Posts: 319
Default Re: opening jpg file in C++

Have a look at these sites they might help u:-♥♣♠•○
http://ce.sharif.edu/~ahmadinejad/jpeg/
http://www.cs.sfu.ca/~bbastani/perso...ses/820/Assg2/
http://groups.google.com/group/micro...1bdae40155b205
__________________
Visit now ;)
www.indiandevs.com - for great free designs :)
www.indiandevs.com/technoworld/ for latest technology news and tricks
Siddharth Maheshwari is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


 
Latest Threads
- by Charan
- by Sarath
- by clmlbx

Advertisement




All times are GMT +5.5. The time now is 12:41 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2