Effacer les filtres
Effacer les filtres

Speeding up median calculation

2 vues (au cours des 30 derniers jours)
t4741
t4741 le 8 Sep 2019
Commenté : t4741 le 8 Sep 2019
median.PNG
The above line of code calculates the median value of a 1xnx3 array and saves it as a particular point in an image. I was wondering if anyone knows a quicker way to do this, as currently the median function takes up around 7 seconds of the total run time.
  2 commentaires
Walter Roberson
Walter Roberson le 8 Sep 2019
staticImage(i,j,:) = round(median(sortedPixels,2));
t4741
t4741 le 8 Sep 2019
Thanks!

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Logical dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by