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

Wiener Filter

daniel_larsson
Beginner
459 Views
Hi all,

I am using Wiener Filter's IPP function. The code is something like this:

IppStep=ImageWidth; IppiSize ROISize={ImageWidth, ImageHeight}; IppiSize MaskSize={3, 3};

XAnchor=MaskWidth>>1;
YAnchor=MaskHeight>>1;
IppiPoint Anchor={XAnchor, YAnchor};

NoiseValue[0]=0.9;
NoiseValue[1]=0.9;

Channels=1;

IppSt=ippiFilterWienerGetBufferSize(ROISize, MaskSize, Channels, &BufferSize);

pBuffer=(Ipp8u*)ippMalloc(BufferSize);

IppSt=ippiFilterWiener_8u_C1R(imgsrcIPP.data, IppStep, imgdestIPP.data, IppStep, ROISize, MaskSize, Anchor, NoiseValue, pBuffer);

ippFree(pBuffer);


The code works fine with images with small dimensions (50x50 pixels or less) but with larger images it crashes. I have read manual of IPP many times, but couldn't fix the problem. Can anybody help ?

Regards,

D.
0 Kudos
1 Reply
Vladimir_Dudnik
Employee
459 Views

Hello,

could you first take a look on topics where Wiener filter was discussed. Probably that question was already answered.

Wiener filter

ippiFilterWiener_8u_C1R

How do I use the FilterWiener function?

Regards,
Vladimir

0 Kudos
Reply