- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Could someone explain to me the neighborhood used in ippiFilterMedianCross? Based on my testing, it seems to use a neighborhood shaped like a cross, as the name suggests, rather than a square, as the documentation suggests.
For example, I have a attached a test image that has a solid background with a single horizontal line passing through the middle. After applying the filter, the text in the image is clearly modified by the filter so it appears to be doing something.If the filter is using a square neighborhood defined by the mask size, the line should be removed completely. However, it only removes the endpoints of the line. Specifically, it removes one point from each end for a 3x3 mask and 2 points from each end for a 5x5 mask. This is what I would expect from a cross-shaped neighborhood, not a square.
Could someone explain to me the neighborhood used in ippiFilterMedianCross? Based on my testing, it seems to use a neighborhood shaped like a cross, as the name suggests, rather than a square, as the documentation suggests.
For example, I have a attached a test image that has a solid background with a single horizontal line passing through the middle. After applying the filter, the text in the image is clearly modified by the filter so it appears to be doing something.If the filter is using a square neighborhood defined by the mask size, the line should be removed completely. However, it only removes the endpoints of the line. Specifically, it removes one point from each end for a 3x3 mask and 2 points from each end for a 5x5 mask. This is what I would expect from a cross-shaped neighborhood, not a square.
1 Solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Mike,
Your observation is right. The function definitely uses cross-shaped neighborhood for both 3x3 and 5x5 masks as it's name.
The documentationstates - The neighborhood is determined by the square mask of the predefined size - you may read it as that the mask is square-shaped or themask is a square.
Best Regards,
Ying
Your observation is right. The function definitely uses cross-shaped neighborhood for both 3x3 and 5x5 masks as it's name.
The documentationstates - The neighborhood is determined by the square mask of the predefined size - you may read it as that the mask is square-shaped or themask is a square.
Best Regards,
Ying
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Mike,
Your observation is right. The function definitely uses cross-shaped neighborhood for both 3x3 and 5x5 masks as it's name.
The documentationstates - The neighborhood is determined by the square mask of the predefined size - you may read it as that the mask is square-shaped or themask is a square.
Best Regards,
Ying
Your observation is right. The function definitely uses cross-shaped neighborhood for both 3x3 and 5x5 masks as it's name.
The documentationstates - The neighborhood is determined by the square mask of the predefined size - you may read it as that the mask is square-shaped or themask is a square.
Best Regards,
Ying
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you for the clarification.We will use the general ippiFilterMedian function as we require a square neighborhood.

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