¡@

Home 

python Programming Glossary: s_bins

Python code for Earth mover's Distance

http://stackoverflow.com/questions/5101004/python-code-for-earth-movers-distance

planes h_plane s_plane #Define numer of bins h_bins 30 s_bins 32 #Define histogram size hist_size h_bins s_bins # hue varies.. 30 s_bins 32 #Define histogram size hist_size h_bins s_bins # hue varies from 0 ~0 deg red to 180 ~360 deg red again h_ranges.. s_ranges #Create histogram hist cv.CreateHist h_bins s_bins cv.CV_HIST_ARRAY ranges 1 #Calc histogram cv.CalcHist cv.GetImage..