简体   繁体   中英

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.

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.

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. It depends on what your application is doing.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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