索引和查询图像的颜色集
Indexing and querying color sets of images
摘要:
我们的目标是研究一个图像的连续区域的颜色集的集合作为一个矩阵的$m$行在$n\geq m$列,其中矩阵中的每个元素是一个整数从$[1,σ]$命名为{ \em颜色}。在一个区域中的一组不同的颜色被称为指纹。我们的目标是计算,索引和查询的指纹的所有矩形区域命名为矩形。所有这样的指纹的集合由${\cal F}$表示。一个矩形是{ \em maximum},如果它不包含在具有相同指纹的更大矩形中。最大矩形的所有位置的集合由$\mathcal{L}.$表示。我们首先解释如何使用蒙特卡洛算法(具有多项式小的错误概率)或在确定性$O(nm^2σ\log(\frac{|\mathcal{L}|}{nm^2}+2))$时间内确定所有$|\mathcal{L}|$最大位置及其指纹。然后,我们展示了如何建立一个数据结构,它占用$O(nm\log n+\mathcal{|L|})$空间,这样一个查询,要求所有的最大位置与一个给定的指纹$f$可以回答时间$O(|f|+\log\log n+k)$,其中$k$是最大位置与指纹$f$的数量。如果查询仅询问指纹的存在,则空间使用变为$O(nm\log n+|{\cal F}|)$,而查询时间变为$O(|f|+\log\log n)$。我们最终考虑平方区域(正方形)的特殊情况。
英文摘要:
We aim to study the set of color sets of continuous regions of an image given as a matrix of $m$ rows over $n\geq m$ columns where each element in the matrix is an integer from $[1,σ]$ named a {\em color}. The set of distinct colors in a region is called fingerprint. We aim to compute, index and query the fingerprints of all rectangular regions named rectangles. The set of all such fingerprints is denoted by ${\cal F}$. A rectangle is {\em maximal} if it is not contained in a greater rectangle with the same fingerprint. The set of all locations of maximal rectangles is denoted by $\mathcal{L}.$ We first explain how to determine all the $|\mathcal{L}|$ maximal locations with their fingerprints in expected time $O(nm^2σ)$ using a Monte Carlo algorithm (with polynomially small probability of error) or within deterministic $O(nm^2σ\log(\frac{|\mathcal{L}|}{nm^2}+2))$ time. We then show how to build a data structure which occupies $O(nm\log n+\mathcal{|L|})$ space such that a query which asks for all the maximal locations with a given fingerprint $f$ can be answered in time $O(|f|+\log\log n+k)$, where $k$ is the number of maximal locations with fingerprint $f$. If the query asks only for the presence of the fingerprint, then the space usage becomes $O(nm\log n+|{\cal F}|)$ while the query time becomes $O(|f|+\log\log n)$. We eventually consider the special case of squared regions (squares).
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。