フィルターのクリア

Speeding up median calculation

2 ビュー (過去 30 日間)
t4741
t4741 2019 年 9 月 8 日
コメント済み: t4741 2019 年 9 月 8 日
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 件のコメント
Walter Roberson
Walter Roberson 2019 年 9 月 8 日
staticImage(i,j,:) = round(median(sortedPixels,2));
t4741
t4741 2019 年 9 月 8 日
Thanks!

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by