- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hai
Could any one please help me as to how we should provide the input image for a particular IPP Image processing fuction. My input image is in .bmp format. I am stuck with how to read this file format and set the Region of Interest. Should I use the normal fopen function and read the file byte by byte or should i go for some other method?The function in the IPP sample - iplHistoEqualize has the folowing input arguments -
IplImage* srcImage,
IplImage* dstImage,
IplLUT** lut
Please help.
Thanks
Rahul
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Rahul,
You may want to look at some of the code samples provided here. (Search for BMP on this web page).
Hope this helps.
-Tony
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Did you referred to IPL migration documentation? This is an article about how to migrate from IPL to IPP.
Regards,
Ying
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes. You can use any set of I/O functions:
- In case of CRT-functions:
fopen, fseek,fread, fclose;
or
_open, _filelength, _read, _close;
- In case of Win32-functions: CreateFile, GetFileSIze,ReadFile, CloseHandle;
...read the file byte by byte or should i go for some other method?..
- Byte-by-Byte reading isslow and ineffective;
- Read thefile completely in a buffer.
In general a better way is as follows:
- open a bmp-file
- getthe length
- allocate a buffer with malloc or new
- read data
- process
- save results
- deallocate the buffer with free or delete
Also, there is an example in IPL documentation onhow iplHistoEqualize must be used.
Best regards,
Sergey
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page