Speeding up median calculation
Mostra commenti meno recenti

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 Commenti
Walter Roberson
il 8 Set 2019
staticImage(i,j,:) = round(median(sortedPixels,2));
t4741
il 8 Set 2019
Risposte (0)
Categorie
Scopri di più su Loops and Conditional Statements in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!