Skip to content

Conversation

@bajlekov
Copy link

Use a minimum number of comparisons for obtaining the median of a 9 element vector instead of the generic p_median_f32 function, as all medians calculated in the p_median3x3 filter are of length 9.

Use a minimum number of comparisons for obtaining the median of a 9 element vector instead of the generic p_median_f32 function.
@mateunho
Copy link
Contributor

How many comparisons are made in p_median_f32 function and in your median9? How much different they are? (assuming 9 element vector of course)

@ebadi
Copy link
Contributor

ebadi commented Jun 12, 2015

Duplicate of #100 (since 5 days ago)

@bajlekov
Copy link
Author

Ah I see, somehow I overlooked that one. Don't mind me then.

Anyway, here's a comparison of the number of operations between the generic algorithm and this one per output pixel for the Lena image. Actually the mean number of comparisons between the two is rather close.
median

@mateunho
Copy link
Contributor

Obsolete since #148 merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants