2016-10-18 16:52:45 -0500 | commented question | Problem with alpha-trimmed filter The main idea is to go through the whole image, choosing a square 3x3 or 4x4. After that putting chosen elemnts in an container, and sorting them. Later we are cutting from boh sides (alpha/2)elements and we obtained sorted container downsized for alpha elements. From elements which, are not deleted we calculate arithmetic mean and put this value to the window which we have chosen. |

2016-10-18 15:00:17 -0500 | asked a question | Problem with alpha-trimmed filter I am trying to make an alphatrimmed filter in openCV library. My code is not working properly and the resultant image is not looking as image after filtering. The filter should work in the following way. Can you propose some modifications for my code? 1.Chossing some (array) of pixels in my example it is 9 pixels '3x3' window. 2.Ordering them in increasing way. 3.Cutting our 'array' both sides for alpha-2. 4.calculating arithmetic mean of remaining pixels and inserting them in proper place. Thank you for your help. |

Copyright OpenCV foundation, 2012-2018. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.