Quantcast
Channel: Intel® Integrated Performance Primitives
Viewing all articles
Browse latest Browse all 1294

Manipulate srcStep to do Median Filtering along diagonals?

$
0
0

Image Median of a large neighborhood can be approximated well (and much faster) by computing the median of medians using line medians.
In that context I wish to compute the median along diagonals (i.e. neither rows nor columns), but IPP does not seem to support this?
Would it be possible to accomplish this by computing a median with a column mask(1x3 or 1x5) on an image where the srcStep is artificially increased or decreased by an amount corresponding to the storage required for one pixel?

In the interior of the image I'd end up median filtering along diagonals as intended, but I'm no quite sure what will happen along image boundaries and if/how to use ROI in connection with this. Also row count times srcStep will in general NOT correspond to the amount of memory occupied by the image. Will that pose a problem and can it be avoided by using a sufficiently large boundary below the ROI?

I wish to approximate the median of an Ø15 octagonal neighborhood by first applying a 7x7 (square) median followed by two successive 5-pixel medians along diagonals in opposite directions.


Viewing all articles
Browse latest Browse all 1294

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>