Median Filter

Pemrograman Delphi

Median Filter

Postby xmaz555 » 30 Mar 2012, 14:54

Gan salam kenal semua. Ane masih newbie nih. Gan ane mau nanya nih ada yang tau coding buat nyari median ga? Ane sih ngerti median itu apa tapi implementasi di Delphinya ane ga bisa :laugh:
Mohon pencerahannya agan sekalian.
Thanks ya..
xmaz555
Junior Member
 
Posts: 2
Joined: 12 Mar 2012, 16:27

Re: Median Filter

Postby leledumbo » 31 Mar 2012, 13:43

asumsi:
input = array [1..n]

algo:
  1. sort array
    • kalo jumlah elemen ganjil => median = array[n div 2 + 1]
    • kalo jumlah elemen genap => median = (array[n div 2] + array[n div 2 + 1]) div 2
leledumbo
Senior Member
 
Posts: 262
Joined: 24 May 2010, 15:58

Re: Median Filter

Postby xmaz555 » 03 Apr 2012, 15:04

gan leledumbo thanks atas jawabannya. tapi saya ga tau cara sortingnya. hehehe ada usul ga gan? thx
xmaz555
Junior Member
 
Posts: 2
Joined: 12 Mar 2012, 16:27


Who is online

Users browsing this forum: No registered users and 2 guests

cron