タイトル | Implementing Connected Component Labeling as a User Defined Operator for SciDB |
本文(外部サイト) | http://hdl.handle.net/2060/20160014542 |
著者(英) | Poliakov, Alex; Yu, Hongfeng; Brown, Paul; Kuo, Kwo-Sen; Clune, Thomas; Oloso, Amidu |
著者所属(英) | NASA Goddard Space Flight Center |
発行日 | 2016-12-05 |
言語 | eng |
内容記述 | We have implemented a flexible User Defined Operator (UDO) for labeling connected components of a binary mask expressed as an array in SciDB, a parallel distributed database management system based on the array data model. This UDO is able to process very large multidimensional arrays by exploiting SciDB's memory management mechanism that efficiently manipulates arrays whose memory requirements far exceed available physical memory. The UDO takes as primary inputs a binary mask array and a binary stencil array that specifies the connectivity of a given cell to its neighbors. The UDO returns an array of the same shape as the input mask array with each foreground cell containing the label of the component it belongs to. By default, dimensions are treated as non-periodic, but the UDO also accepts optional input parameters to specify periodicity in any of the array dimensions. The UDO requires four stages to completely label connected components. In the first stage, labels are computed for each subarray or chunk of the mask array in parallel across SciDB instances using the weighted quick union (WQU) with half-path compression algorithm. In the second stage, labels around chunk boundaries from the first stage are stored in a temporary SciDB array that is then replicated across all SciDB instances. Equivalences are resolved by again applying the WQU algorithm to these boundary labels. In the third stage, relabeling is done for each chunk using the resolved equivalences. In the fourth stage, the resolved labels, which so far are "flattened" coordinates of the original binary mask array, are renamed with sequential integers for legibility. The UDO is demonstrated on a 3-D mask of O(1011) elements, with O(108) foreground cells and O(106) connected components. The operator completes in 19 minutes using 84 SciDB instances. |
NASA分類 | Meteorology and Climatology; Computer Programming and Software |
レポートNO | GSFC-E-DAA-TN34982 |
権利 | Copyright, Distribution as joint owner in the copyright |
|