Author’s Accepted Manuscript

IJ-OpenCV: Combining ImageJ and OpenCV for Processing Images in Biomedicine

César Dom, Jónathan Heras, Vico Pascual

www.elsevier.com/locate/cbm

PII: S0010-4825(17)30082-3 DOI: http://dx.doi.org/10.1016/j.compbiomed.2017.03.027 Reference: CBM2632 To appear in: Computers in Biology and Medicine Received date: 29 November 2016 Revised date: 28 March 2017 Accepted date: 28 March 2017 Cite this article as: César Dom, Jónathan Heras and Vico Pascual, IJ-OpenCV: Combining ImageJ and OpenCV for Processing Images in Biomedicine, Computers in Biology and Medicine, http://dx.doi.org/10.1016/j.compbiomed.2017.03.027 This is a PDF file of an unedited manuscript that has been accepted for publication. As a service to our customers we are providing this early version of the manuscript. The manuscript will undergo copyediting, typesetting, and review of the resulting galley proof before it is published in its final citable form. Please note that during the production process errors may be discovered which could affect the content, and all legal disclaimers that apply to the journal pertain. IJ-OpenCV: Combining ImageJ and OpenCV for Processing Images in Biomedicine

C´esarDom´ıngueza, J´onathanHerasa,∗, Vico Pascuala

aDepartment of Mathematics and Computer Science, University of La Rioja, Logro˜no, Spain. E-mail: {cesar.dominguez, jonathan.heras, vico.pascual}@unirioja.es

Abstract Background and Objective. The effective processing of biomedical im- ages usually requires the interoperability of diverse software tools that have different aims but are complementary. The goal of this work is to develop a bridge to connect two of those tools: ImageJ, a program for image analysis in life sciences, and OpenCV, a and . Methods. Based on a thorough analysis of ImageJ and OpenCV, we de- tected the features of these systems that could be enhanced, and developed a library to combine both tools, taking advantage of the strengths of each system. The library was implemented on top of the SciJava converter frame- work. We also provide a methodology to use this library. Results. We have developed the publicly available library IJ-OpenCV that can be employed to create applications combining features from both ImageJ and OpenCV. From the perspective of ImageJ developers, they can use IJ- OpenCV to easily create plugins that use any functionality provided by the OpenCV library and explore different alternatives. From the perspective of OpenCV developers, this library provides a link to the ImageJ graphical user interface and all its features to handle regions of interest. Conclusions. The IJ-OpenCV library bridges the gap between ImageJ and OpenCV, allowing the connection and the cooperation of these two systems. Keywords: ImageJ, OpenCV, Interoperability, Image Processing, Computer Vision, Machine Learning, Biomedicine.

∗Corresponding author

Preprint submitted to Computers in Biology and Medicine March 31, 2017