Speeding up median calculation

조회 수: 4 (최근 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 CenterFile Exchange에서 Particle & Nuclear Physics에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by