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

How to filter image with arbitrary mask ?

foreststone
Beginner
521 Views
How to filter image with arbitrary mask ?

After investigating Filter , Filter32f ,FilterBox and Fixed
Filter functions , I have none filter with mask . For example,my mask is a rectangle or arbitrary shape ? The key
problem to realize such filter is to decide whether the pixel
is in the mask region ,and then do neighbour processing .
If no function in IPP library , are there any code samples with SSE/SSE2/SSE3 ?
0 Kudos
3 Replies
Vladimir_Dudnik
Employee
521 Views

There is no filter with mask realization in IPPI.Youcan use copy with mask (substitute masked bytes with zeroes) and then apply filter.

Vladimir

0 Kudos
foreststone
Beginner
521 Views
But the problem is that I neednt filteron the border , so it is critical to decide whether doing filter . Copying with mask cant meet it, because it does filtering any where including border andarea masked .
0 Kudos
Vladimir_Dudnik
Employee
521 Views

I dont fully understand what doyou want. Ifyou dont need to filter bordersyou can use ippiConv(Full or Valid) or ippiCrossCorr(same with inverse kernel). There are a lot of opportunities to do filtering in different ways. We dont have operations with mask in ippIP. If this answer isnt enough,could you pleaseattach a simple code example: what doyou really want to do.

Regards,
Vladimir

0 Kudos
Reply