Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement median function for 9 element vectors #132

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Implement median function for 9 element vectors #132

wants to merge 1 commit into from

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