Ask Your Question
3

Image Data Conversion between Intel IPP and OpenCV

asked 2012-09-01 04:41:09 -0600

Royi gravatar image

Hello, I'm using Intel IPP in my project. Yet Intel IPP lacks an image display function. I'd like to use OpenCV to display images.

Is there a built in or an easy way to convert image data from Intel IPP form into OpenCV form? Does anyone have a sample code?

Thank You.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
3

answered 2012-09-02 05:38:21 -0600

Michael Burdinov gravatar image

It is easy to convert any kind of image to OpenCV format as long as you have pointer to buffer where the image is stored. For example:

Mat imageWrap(Size(width,height), CV_8UC3, buffer, step);

CV_8UC3 - defines that the image should be of unsigned chars (8U) and 3-channel (C3).

step - is step/stride/pitch (or whatever you name it) between subsequent rows in buffer.

This operation does not perform any coping operations, so any changes that will be applied to imageWrap are actaully applied to original buffer.

edit flag offensive delete link more

Comments

Any specifics related to Intel MKL? Thanks.

Royi gravatar imageRoyi ( 2012-09-02 11:08:25 -0600 )edit

Nothing specific for Intel MKL as far as I know

Michael Burdinov gravatar imageMichael Burdinov ( 2012-09-03 00:41:29 -0600 )edit

Question Tools

Stats

Asked: 2012-09-01 04:41:09 -0600

Seen: 1,056 times

Last updated: Sep 02 '12