| 1 |
\documentclass{sciposter} |
| 2 |
|
| 3 |
|
| 4 |
\usepackage{epsfig} |
| 5 |
\usepackage{amsmath} |
| 6 |
\usepackage{amssymb} |
| 7 |
\usepackage{multicol} |
| 8 |
%\usepackage{fancybullets} |
| 9 |
|
| 10 |
\newtheorem{Def}{Definition} |
| 11 |
|
| 12 |
%\definecolor{BoxCol}{rgb}{0.9,0.9,0.9} |
| 13 |
% uncomment for grey background to \section boxes |
| 14 |
% for use with default option boxedsections |
| 15 |
|
| 16 |
%\definecolor{BoxCol}{rgb}{0.9,0.9,1} |
| 17 |
% uncomment for light blue background to \section boxes |
| 18 |
% for use with default option boxedsections |
| 19 |
|
| 20 |
%\definecolor{SectionCol}{rgb}{0,0,0.5} |
| 21 |
% uncomment for dark blue \section text |
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
\title{Generalized Pattern Spectra Sensitive to Spatial Information} |
| 29 |
|
| 30 |
% Note: only give author names, not institute |
| 31 |
\author{Michael H. F. Wilkinson} |
| 32 |
|
| 33 |
% insert correct institute name |
| 34 |
\institute{Institute for Mathematics and Computing Science,\\ |
| 35 |
University of Groningen\\} |
| 36 |
|
| 37 |
\email{[email protected]} % shows author email address below institute |
| 38 |
|
| 39 |
%\date is unused by the current \maketitle |
| 40 |
|
| 41 |
|
| 42 |
% The following commands can be used to alter the default logo settings |
| 43 |
%\leftlogo[0.9]{logoWenI}{ % defines logo to left of title (with scale factor) |
| 44 |
%\rightlogo[0.52]{RuGlogo} % same but on right |
| 45 |
|
| 46 |
% NOTE: This will require presence of files logoWenI.eps and RuGlogo.eps, |
| 47 |
% or other supported format in the current directory |
| 48 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 49 |
%%% Begin of Document |
| 50 |
|
| 51 |
|
| 52 |
|
| 53 |
\begin{document} |
| 54 |
%define conference poster is presented at (appears as footer) |
| 55 |
|
| 56 |
\conference{{\bf ICPR 2002}, 16th International Conference on Pattern |
| 57 |
Recognition, 11-15 August 2002, Qu\'ebec City, Canada} |
| 58 |
|
| 59 |
%\LEFTSIDEfootlogo |
| 60 |
% Uncomment to put footer logo on left side, and |
| 61 |
% conference name on right side of footer |
| 62 |
|
| 63 |
% Some examples of caption control (remove % to check result) |
| 64 |
|
| 65 |
%\renewcommand{\algorithmname}{Algoritme} % for Dutch |
| 66 |
|
| 67 |
%\renewcommand{\mastercapstartstyle}[1]{\textit{\textbf{#1}}} |
| 68 |
%\renewcommand{\algcapstartstyle}[1]{\textsc{\textbf{#1}}} |
| 69 |
%\renewcommand{\algcapbodystyle}{\bfseries} |
| 70 |
%\renewcommand{\thealgorithm}{\Roman{algorithm}} |
| 71 |
|
| 72 |
\maketitle |
| 73 |
|
| 74 |
%%% Begin of Multicols-Enviroment |
| 75 |
\begin{multicols}{3} |
| 76 |
|
| 77 |
%%% Abstract |
| 78 |
\begin{abstract} |
| 79 |
Morphological pattern spectra computed from granulometries are frequently used |
| 80 |
to classify the size classes of details in textures and images. An extension |
| 81 |
of this technique, which retains information on the spatial |
| 82 |
distribution of the details in each size class is developed. Algorithms for |
| 83 |
computation of these spatial pattern spectra for a large number of |
| 84 |
granulometries on binary images are presented. |
| 85 |
\end{abstract} |
| 86 |
|
| 87 |
%%% Introduction |
| 88 |
\section{Introduction} |
| 89 |
|
| 90 |
\PARstart{G}{ranulometries} are ordered sets of morphological openings or closings, each of |
| 91 |
which removes image details below a certain size. These can be used for texture |
| 92 |
analysis |
| 93 |
through the use of \emph{pattern spectra}, which show how the number of |
| 94 |
foreground pixels in the image changes as a function of the size parameter |
| 95 |
\cite{maragos89:_patter}. |
| 96 |
A drawback of the classical definition of pattern spectra is that spatial |
| 97 |
information is not included in a pattern spectrum as shown below. |
| 98 |
In this paper, \emph{spatial pattern spectra} are developed which retain information on the distribution of these details at different scales. |
| 99 |
|
| 100 |
|
| 101 |
\newcommand{\imsize}{0.45\columnwidth} |
| 102 |
\begin{figure} |
| 103 |
\begin{center} |
| 104 |
\begin{tabular}{c c} |
| 105 |
{\resizebox{\imsize}{!}{\includegraphics{blocks1}}} & |
| 106 |
{\resizebox{\imsize}{!}{\includegraphics{blocks2}}}\\ |
| 107 |
(a) & (b) \\ |
| 108 |
{\resizebox{\imsize}{!}{\includegraphics{blocks3}}} & |
| 109 |
{\resizebox{\imsize}{!}{\includegraphics{blocks1a}}}\\ |
| 110 |
(c) & (d) \\ |
| 111 |
\end{tabular} |
| 112 |
\end{center} |
| 113 |
\caption{ Parts (a) through (c) show three images consisting of squares of |
| 114 |
different sizes; |
| 115 |
(d) shows the pattern spectra, denoting the number of foreground pixels |
| 116 |
removed by openings by reconstruction by $\lambda \times \lambda$ squares. No |
| 117 |
granulometry is capable of separating the patterns, because the only |
| 118 |
differences between the images lie in the distributions of the |
| 119 |
connected components. }\label{fig:blocks} |
| 120 |
\end{figure} |
| 121 |
|
| 122 |
|
| 123 |
|
| 124 |
|
| 125 |
\section{Theory} |
| 126 |
|
| 127 |
Let binary images $X$ and $Y$ be defined as a subset of the image domain |
| 128 |
${\mathbf M}\subset {\mathbb Z}^n$ or ${\mathbb R}^n$ (usually $n=2$). |
| 129 |
\begin{Def} |
| 130 |
A binary |
| 131 |
granulometry is a set of operators $\{\alpha_r\}$ with $r$ from some ordered |
| 132 |
set $\Lambda$ (usually $\Lambda \subset {\mathbb R}$ or ${\mathbb Z}$), with |
| 133 |
the following three properties |
| 134 |
\begin{align} |
| 135 |
\alpha_r(X) & \subset X \label{eq:antiext} \\ |
| 136 |
X \subset Y & \Rightarrow \alpha_r(X) \subset \alpha_r(Y) |
| 137 |
\label{eq:increasing} \\ |
| 138 |
\alpha_r(\alpha_s(X)) & = \alpha_{\max(r,s)}(X) \label{eq:idempot}, |
| 139 |
\end{align} |
| 140 |
for all $r,s \in \Lambda$. |
| 141 |
\end{Def} |
| 142 |
|
| 143 |
\begin{Def} |
| 144 |
The pattern spectrum $s_{\alpha}(X)$ obtained by applying |
| 145 |
granulometry $\{\alpha_r\}$ to a binary image $X$ is defined as |
| 146 |
\begin{equation} |
| 147 |
(s_{\alpha}(X))(u) = |
| 148 |
- \frac{\partial A(\alpha_r(X))}{\partial r}\bigg{\vert}_{r=u} |
| 149 |
\end{equation} |
| 150 |
in which $A(X)$ is a function denoting the Lebesgue measure in |
| 151 |
${\mathbb R}^n$. |
| 152 |
\end{Def} |
| 153 |
In the case of discrete images, and with $r \in \Lambda \subset {\mathbb Z}$, |
| 154 |
this differentiation reduces to |
| 155 |
\begin{align} |
| 156 |
(s_{\alpha}(X))(r) & = \#(\alpha_{r}(X) \setminus \alpha_{r^+}(X)) \\ |
| 157 |
& = \#(\alpha_{r}(X)) - \#(\alpha_{r^+}(X)), |
| 158 |
\end{align} |
| 159 |
with $r^+ = \min\{ r' \in \Lambda \vert r' > r \}$, and $\#(X)$ the |
| 160 |
numnber of elements of $X$. |
| 161 |
|
| 162 |
The opening transform \cite{Nacken:thesis} $\Omega_X$ of a binary image $X$ |
| 163 |
for a granulometry ${\alpha_r}$ is |
| 164 |
\begin{equation} |
| 165 |
\Omega_X(x) = \max\{ r \in \Lambda \vert x \in \alpha_r(X) \} |
| 166 |
\end{equation} |
| 167 |
|
| 168 |
The pattern spectrum of a binary image $X$ using granulometry |
| 169 |
$\{\alpha_r\}$ is the histogram of $\Omega_X$ obtained with the same |
| 170 |
size distribution \cite{Nacken:thesis}, disregarding the bin for grey level 0. |
| 171 |
|
| 172 |
|
| 173 |
\begin{figure} |
| 174 |
\begin{center} |
| 175 |
{\resizebox{\imsize}{!}{\includegraphics{blocks3}}} |
| 176 |
{\resizebox{\imsize}{!}{\includegraphics{blocks3rec}}} |
| 177 |
\end{center} |
| 178 |
\caption{ \label{fig:opentransf} Opening transform with $\{\alpha_r\}$ as in |
| 179 |
Fig. \ref{fig:blocks}: (left) original image; (right) opening transform |
| 180 |
(contrast stretched for clarity). |
| 181 |
} |
| 182 |
\end{figure} |
| 183 |
|
| 184 |
|
| 185 |
\section{Spatial pattern spectra} |
| 186 |
Pattern spectra only retain the amount of detail present at scale $r$. |
| 187 |
This can be amended by computing some parameterization of the spatial |
| 188 |
distribution in an image $\alpha_r(X) \setminus \alpha_{r+}(X)$ as a function of $r$. |
| 189 |
|
| 190 |
\begin{Def} |
| 191 |
Let ${M}(X)$ be some parameterization of the spatial distribution of detail |
| 192 |
in the image $X$. The spatial pattern spectrum ${S}_{{M},\alpha}$ is |
| 193 |
then defined as |
| 194 |
\begin{equation} |
| 195 |
({S}_{{M},\alpha}(X))(r) = {M}(\alpha_r(X) \setminus \alpha_{r+}(X)). |
| 196 |
\end{equation} |
| 197 |
\end{Def} |
| 198 |
|
| 199 |
An obvious parameterization of the spatial distribution is through |
| 200 |
the use of moments. Focusing on the case of 2-D binary images, the |
| 201 |
moment $m_{ij}$ of order $ij$ of an image $X$ is given by |
| 202 |
\begin{equation} |
| 203 |
m_{ij}(X) = \sum_{(x,y) \in \mathbf X} x^i y^j. |
| 204 |
\end{equation} |
| 205 |
The spatial moment spectrum $S_{m_{ij},\alpha}$ of order $ij$ is |
| 206 |
\begin{equation} |
| 207 |
(S_{m_{ij},\alpha}(X))(r) = m_{i,j}(\alpha_r(X) \setminus \alpha_{r^+}(X)). |
| 208 |
\end{equation} |
| 209 |
For $i=0$ and $j=0$ we obtain the standard pattern spectrum. |
| 210 |
For each $r$, $(S_{m_{ij},\alpha}(X))(r)$ is just the moment of an image, |
| 211 |
therefore, derived parameters such as coordinates of the centre of mass, |
| 212 |
(co-)variances, skewness and kurtosis of the distribution of details at each |
| 213 |
scale can be computed easily. We can then define pattern mean |
| 214 |
spectra, pattern (co-)variance spectra, pattern kurtosis spectra, etc. The |
| 215 |
pattern mean-$x$ and variance-$x$ spectra |
| 216 |
($S_{\bar x,\alpha}$ and $S_{\sigma(x),\alpha}$) are defined as: |
| 217 |
\begin{align} |
| 218 |
S_{\bar x,\alpha} & = \frac{S_{m_{10},\alpha}} {S_{m_{00},\alpha}} \\ |
| 219 |
\intertext{and} |
| 220 |
S_{\sigma(x),\alpha} & = \sqrt{\frac{S_{m_{20},\alpha}} |
| 221 |
{S_{m_{00},\alpha}} |
| 222 |
- S_{\bar x, \alpha}}. |
| 223 |
\end{align} |
| 224 |
These two are shown in Figures \ref{fig:tauspect} and \ref{fig:binspect}. Note that |
| 225 |
these definitions hold only where $(S_{m_{00},\alpha}(f))(r) \neq 0$. For all |
| 226 |
other values of $r$ they will be defined as zero. Further post-processing can |
| 227 |
be done to compute central moments and moment invariant from pattern moment |
| 228 |
spectra \cite{Flusser:Suk:93,Hu:62}. |
| 229 |
|
| 230 |
\section{An Algorithm} |
| 231 |
|
| 232 |
Nacken \cite{Nacken:thesis} derived an algorithm for computation |
| 233 |
of pattern spectra for granulometries based on openings by discs of increasing |
| 234 |
radius for various metrics, using the opening transform. After the |
| 235 |
opening transform has been computed, it is straightforward to compute the |
| 236 |
pattern spectrum: |
| 237 |
\begin{itemize} |
| 238 |
\item Set all elements of array {\tt S} to zero |
| 239 |
\item For all $x \in X$ increment {\tt S}[$\Omega_X(x)$] by one. |
| 240 |
\end{itemize} |
| 241 |
|
| 242 |
To compute the pattern \emph{moment} spectrum, the only thing that needs to be |
| 243 |
changed is the way {\tt S}[$\Omega_X(x)$] is incremented. As shown in Algorithm |
| 244 |
\ref{alg:spect}. |
| 245 |
|
| 246 |
\begin{algorithm} |
| 247 |
\begin{itemize} |
| 248 |
\item Set all elements of array {\tt S} to zero |
| 249 |
\item For all $(x,y) \in X$ increment {\tt S}[$\Omega_X(x,y)$] by |
| 250 |
$x^iy^j$. |
| 251 |
\end{itemize} |
| 252 |
\caption{ Algorithm for computation of pattern moment |
| 253 |
spectrum of order $ij$. \label{alg:spect}} |
| 254 |
\end{algorithm} |
| 255 |
|
| 256 |
This algorithm can |
| 257 |
readily be adapted to other granulometries, simply by computing the |
| 258 |
appropriate opening transform. |
| 259 |
|
| 260 |
\begin{figure} |
| 261 |
\begin{center} |
| 262 |
\begin{tabular}{c c} |
| 263 |
{\resizebox{\imsize}{!}{\includegraphics{blocks3op}}} & |
| 264 |
{\resizebox{\imsize}{!}{\includegraphics{blocksopen3a}}}\\ |
| 265 |
(a) & (b)\\ |
| 266 |
{\resizebox{\imsize}{!}{\includegraphics{blocksopen3vx}}}& |
| 267 |
{\resizebox{\imsize}{!}{\includegraphics{blocksopen3vy}}}\\ |
| 268 |
(c) & (d) \\ |
| 269 |
\end{tabular} |
| 270 |
\end{center} |
| 271 |
\caption{ \label{fig:tauspect} |
| 272 |
The opening transform using city-block metric: (a) opening transform of |
| 273 |
Fig. 1(c); (b) pattern spectrum; (c) pattern variance-$x$; |
| 274 |
(d) variance-$y$ spectra.} |
| 275 |
\end{figure} |
| 276 |
|
| 277 |
|
| 278 |
|
| 279 |
|
| 280 |
|
| 281 |
|
| 282 |
\renewcommand{\imsize}{0.3\columnwidth} |
| 283 |
\begin{figure} |
| 284 |
\begin{center} |
| 285 |
{\resizebox{\imsize}{!}{\includegraphics{blocks1mx}}} |
| 286 |
{\resizebox{\imsize}{!}{\includegraphics{blocks2mx}}} |
| 287 |
{\resizebox{\imsize}{!}{\includegraphics{blocks3mx}}}\\ |
| 288 |
{\resizebox{\imsize}{!}{\includegraphics{blocks1vx}}} |
| 289 |
{\resizebox{\imsize}{!}{\includegraphics{blocks1vx}}} |
| 290 |
{\resizebox{\imsize}{!}{\includegraphics{blocks3vx}}} |
| 291 |
\end{center} |
| 292 |
\caption{ \label{fig:binspect} Pattern mean-$x$ (top) and variance-$x$ |
| 293 |
(bottom) spectra: the three collumns show spectra for Fig. 1(a), (b) and (c) |
| 294 |
from left to right respectively. Unlike the standard pattern spectra, |
| 295 |
these spatial pattern spectra can distinguish the three images.} |
| 296 |
\end{figure} |
| 297 |
|
| 298 |
\section{Discussion} |
| 299 |
Spatial pattern spectra form a useful supplement to ordinary pattern |
| 300 |
spectra, because of their ability to retain spatial information. |
| 301 |
Pattern moment spectra, in particular, are easily computed concurrently with |
| 302 |
computation of the standard pattern spectrum. Post-processing of these pattern |
| 303 |
moment spectra can be done to yield a number of easily interpreted spectra, |
| 304 |
such as pattern mean, variance, skew, and kurtosis spectra, which have reduced |
| 305 |
covariance compared to the ``raw'' pattern moment spectra. Invariance to |
| 306 |
rotation, translation or scale change can also be achieved by post-processing |
| 307 |
\cite{Flusser:Suk:93,Hu:62}. |
| 308 |
|
| 309 |
In the future grey scale versions of these spatial pattern spectra will be |
| 310 |
developed. I expect that the efficient grey level algorithms for area and |
| 311 |
attribute pattern spectra |
| 312 |
\cite{Meijster:Wilkinson:PAMI} |
| 313 |
can be adapted to spatial pattern spectra as well. |
| 314 |
|
| 315 |
%%% References |
| 316 |
|
| 317 |
%% Note: use of BibTeX als works!! |
| 318 |
|
| 319 |
\bibliographystyle{plain} |
| 320 |
\begin{thebibliography}{1} |
| 321 |
|
| 322 |
\bibitem{Flusser:Suk:93} |
| 323 |
J.~Flusser and T.~Suk. |
| 324 |
\newblock Pattern recognition by affine moment invariants. |
| 325 |
\newblock {\em Pattern Recognition}, 26:167--174, 1993. |
| 326 |
|
| 327 |
\bibitem{Hu:62} |
| 328 |
M.~K. Hu. |
| 329 |
\newblock Visual pattern recognition by moment invariants. |
| 330 |
\newblock {\em IRE Transactions on Information Theory}, IT-8:179--187, 1962. |
| 331 |
|
| 332 |
\bibitem{maragos89:_patter} |
| 333 |
P.~Maragos. |
| 334 |
\newblock Pattern spectrum and multiscale shape representation. |
| 335 |
\newblock {\em IEEE Trans. Patt. Anal. Mach. Intell.}, 11:701--715, 1989. |
| 336 |
|
| 337 |
\bibitem{Meijster:Wilkinson:PAMI} |
| 338 |
A.~Meijster and M.~H.~F. Wilkinson. |
| 339 |
\newblock A comparison of algorithms for connected set openings and closings. |
| 340 |
\newblock {\em IEEE Trans. Patt. Anal. Mach. Intell.}, 24(4):484--494, 2002. |
| 341 |
|
| 342 |
\bibitem{Nacken:thesis} |
| 343 |
P.~F.~M. Nacken. |
| 344 |
\newblock {\em Image Analysis Methods Based on Hierarchies of Graphs and |
| 345 |
Multi-Scale Mathematical Morphology}. |
| 346 |
\newblock PhD thesis, University of Amsterdam, Amsterdam, The Netherlands, |
| 347 |
1994. |
| 348 |
|
| 349 |
\end{thebibliography} |
| 350 |
|
| 351 |
\end{multicols} |
| 352 |
|
| 353 |
\end{document} |
| 354 |
|