按照详细程度对图像进行排序

时间:2013-05-04 15:14:37

标签: java image-processing

我正在寻找一个允许我根据它们的详细程度对图像进行排序的Java包。我想创建一个服务,扫描图像并过滤掉非有趣的图像。我知道没有绝对的方法可以做到,但我想尽最大努力。

谢谢!

1 个答案:

答案 0 :(得分: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"