Intel® Integrated Performance Primitives
Deliberate problems developing high-performance vision, signal, security, and storage applications.

loading an image

Deleted_U_Intel
Employee
407 Views
hello,

i'm an new user of ipp libraries under vc++ 6.0.
I would like to load a bmp image from a directory, in ordr to use it in my code, how can i do ?
0 Kudos
7 Replies
Intel_C_Intel
Employee
407 Views

Hi bobdenar,

The libraries do not contain functions to work with files, but you can look at the examples, where you can find code to load/store bmp files. Take a look, for example, onj2kit sample, file dibfile.cpp.

Regards,
Vladimir

0 Kudos
therunner
Beginner
407 Views
Hi Bobdenar and Vladimir, I am running into the following problem similar to Bobdenar's. I am writing an image processing application which is supposed to load any sequence of common image files (jpg, targa, tiff, etc...) not only bmp files and apply some specific processing. Excuse my question if it is too much of a newbie one (but I am... ) I found the ippi library to be very complete in terms of functionalities and downloaded it about 2 months ago. Now that I am back on this project, I couldn't find an entry point which will show me how to start with step 1 : "How do I load an image file whatever its type is ?" Could someone *share* sample code or direct me to samples where I can find help on this topic ? I'm banging my head on my desk for 3 days now... so please help. This is all I need to get started. Thanks. PS : i'm using c++/vc6 on windows.
0 Kudos
Vladimir_Dudnik
Employee
407 Views
Hi,
IPP is low-level library, so it does not work with any file formats directly. Instead of that we have a number of samples which demostrates how to build codecs based on IPP functions to work with audio, video or images. For example, you can download JPEG samples, which contains JPEG codec. It will allow you to access to JPG files. But we do not have any samples to work with TARGA or TIFF files. So in this case you need some third-party solution.
Regards,
Vladimir
0 Kudos
mont_blanc
Beginner
407 Views
for thirth party solution, I use wxWidgets for create a interface, and loading the image at any type. May be it can help you.
0 Kudos
Vladimir_Dudnik
Employee
407 Views

You also might be interested in adopting IPP JPEG and JPEG2000 codecs, for their high performance and utilization of dual/quad core features of modern processors

Regards,
Vladimir

0 Kudos
fh_i_
Beginner
407 Views

check this sample codes on loading bitmap files , it is simple and powerful.  besides you can also have other image formats loaded after a small change in the open source.

0 Kudos
SergeyKostrov
Valued Contributor II
407 Views
A message to fh i.: The thread was Not used for almost 7 years. It was updated internally and simply poped up ( it happens from time to time ).
0 Kudos
Reply