2013-05-04 28 views
-1

我正在尋找一個Java包,允許我通過它們的詳細程度對圖像進行排序。我想創建一個服務來掃描圖像並過濾出不感興趣的圖像。我知道沒有絕對的方法去做,但我想盡最大的努力。按照它們的詳細程度對圖像進行排序

謝謝!

+1

什麼?不,嚴肅地說,這個問題就像問「我怎樣才能通過使用茶壺來美味他們的小吃」。 – 2013-05-04 19:24:03

回答

1

使用opencv這是相當強大的圖書館來玩圖像。

這是一個適用於您的示例算法。

Convert your image from RGB to GrayScale image. 

Sum color of your image pixel by pixel// there was a sum() method that automatically sums. 

Divide the result to numPixel(=height*width)//there may be methods like mean() 

Get the standard deviation of the pixels// if stdDev > thresh then it is "interesting image" 
相關問題