简体   繁体   English

如何对Android平台的图像处理库进行单元测试?

[英]How to Unit Test an image processing library for the Android platform?

I am currently working in an image processing library for Android, but I wonder which way would be the best to unit test the library methods. 我目前正在使用Android的图像处理库,但是我想知道哪种方法是单元测试库方法的最佳方法。

I know that the way images are loaded inside and outside of the device may lead to different numbers in the values of the pixels, so comparing matrices directly: previously processed outside android environment, with the ones inside, doesn't seem to be a good nor reliable way to do this. 我知道图像在设备内部和外部的加载方式可能会导致像素值的数字不同,因此直接比较矩阵:以前在android环境外处理过的矩阵与内部环境似乎不太好也没有可靠的方法来做到这一点。

Any hints and suggestions are welcome. 欢迎任何提示和建议。

Thanks in advance. 提前致谢。

Define an error tolerance that you're willing to accept. 定义一个您愿意接受的容错能力。 This may be peak absolute error, or peak relative error, or SNR, or something else. 这可能是峰值绝对误差,或峰值相对误差,或SNR,或其他。 It depends on what your application is doing. 这取决于您的应用程序在做什么。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM