- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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 ?
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 ?
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
There is no filter with mask realization in IPPI.Youcan use copy with mask (substitute masked bytes with zeroes) and then apply filter.
Vladimir
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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 .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page