Intel® Integrated Performance Primitives
Deliberate problems developing high-performance vision, signal, security, and storage applications.
Announcements
The Intel sign-in experience has changed to support enhanced security controls. If you sign in, click here for more information.

Inversion of an Image

Royi
Novice
187 Views

Hello,

I'm using Intel IPP 8.0 

In MKL you have the option to invert a Vector / Matrix.
What would be the fastest way to invert an image (1 ./ A, MATLAB) using Intel IPP?

I could only do it using Ln and Exp which is too slow.

Could you add a native Power and Inversion commands to IPP?

Thank You. 

0 Kudos
3 Replies
Igor_A_Intel
Employee
187 Views

You can use ippsDivCRev function with a loop by rows (16u & 32f are supported only). For 8u the most easiest way is to create an image with the same size then use ippiSet to fill it with all ones and then use ippiDiv - it will several times faster than exp/ln approach.

regards, Igor

SergeyKostrov
Valued Contributor II
187 Views
Take a look at ipps.h header files for a complete set of different IPP functions to do invert and the following operations should be supported: ... // DivC(v,X,Y) : Y = X / v // DivC(v,X) : X = X / v // Div(X,Y) : Y = Y / X // Div(X,Y,Z) : Z = Y / X ...
Royi
Novice
187 Views

@Seregey,

How come none / some of them are written in the official documentation?

Anyhow, none of them is a native "Image Inversion" and demand an image of "Ones" to be pre set.

Reply