Wiener Filter

Wiener Filter

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.

2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

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

Login to leave a comment.