Elastic Alignment of Microscopic Images Using Parallel Processing on CUDA- Supported Graphics Processor Units Michálek, J.*, Čapek, M.* **, Janáček, J.*, Kubínová, L.* * Institute of Physiology, Academy of Sciences of the Czech Republic, v.v.i., Vídeňská 1083, Prague 4 - Krč, 14220 Czech Republic ** Faculty of Biomedical Engineering, Czech Technical University in Prague, nám. Sítná 3105, Kladno 2, 272 01 Czech Republic Elastic registration or alignment is a task of finding the matching of two images, using geometric and elastic transformations, so that objects in images have the same size, position and orientation. We apply elastic registration in the framework of volume reconstruction [1], where an object acquired from parallel physical sections by a confocal laser scanning microscope is composed and mutual positions of the sections including deformations caused by their cutting have to be found. Our aim was to find a parallelizable algorithm that can be implemented on a graphics card using NVidia CUDA programming environment. The correspondence between two images to be registered can be found by minimization of a functional penalizing the dissimilarity of corresponding image elements together with roughness of the correspondence function. Let Pix be the set of image elements (pixels) and Edg the set of edges connecting neighboring pixels. Let u and v be the images of neighboring sections and let ξ=( ξ 1 , ξ 2 ) be a vector image of the correspondence relating element x of the image u and the element x+ ξ x of the image v. As the minimized functional we used , where the first sum is the discrete total variation as a measure of roughness and the second one represents L1 norm as a measure of dissimilarity of images. λ>0 stands for the parameter controlling the trade-off between the smoothness of the correspondence and similarity of corresponding image elements. The functional F is well-suited to be solved by optimization of (max,+)-labeling problems. Nowadays, a very popular optimization of these problems is, for example, the method of graph-cuts [2]. Although graph-cuts is known as one of the most efficient algorithm, for complex tasks with high number of variables to be solved, like elastic registration is, and when registering large images, graph-cuts may become slow. Moreover, graph-cuts is difficult to parallelize. Except for finding the suitable functional for elastic registration, our effort was to find and implement an optimization that can work in a parallel way. One such optimization has been described by Schlesinger and Giginyak [3]. This algorithm represents an equivalent transformation of a (max,+)-labeling problem. Let T be a set of pixels in an image. Elements of the set will be denoted as t or t, tT, tT. Let a subset ℑ⊂T×T of object pairs be given, which defines a neighbourhood relation. Designation tt∈ℑ will mean that the objects t and tare neighbours. It is assumed here and below that the graph of neighbourhood relations is connected. Let K be a set, whose elements will be referred to as labels. For each label k and each object t a number q t (k)R is defined. Similarly, for each pair tt∈ℑ of neighbours and each pair of labels k and ka number g tt’ (k,k’) R is defined. These numbers will be referred to as local qualities. The weights q t (k) and g tt’ (k,k’) are real numbers, none of them being 730 doi:10.1017/S1431927610059180 Microsc. Microanal. 16 (Suppl 2), 2010 © Microscopy Society of America 2010 https://doi.org/10.1017/S1431927610059180 Downloaded from https://www.cambridge.org/core. IP address: 54.161.69.107, on 17 Jun 2020 at 14:41:42, subject to the Cambridge Core terms of use, available at https://www.cambridge.org/core/terms.