Texture

A texture is an image region made of spatially repeating patterns, such as a pile of radishes or a brick wall. The repetition is statistical. No two bricks match pixel for pixel, yet every patch of the wall is made of the same “stuff”. A texture model describes a region by statistics of local features pooled over the region, instead of by pixel values at fixed positions.

Instance recognition finds one particular object again (“this chair”). Template matching often works for it, and many small templates (feature descriptors such as SIFT) work better. Category recognition finds any member of a class (“a chair”). Templates fail there. The representation must keep what stays the same across the category, which calls for a statistical notion of appearance. Texture analysis decides whether two samples are made of the same stuff. Texture synthesis generates a new sample of the same stuff (8.1. Parametric Texture Synthesis).

The th-order statistics of a texture describe how often pixels in a fixed relative placement take given values. Let be an image with pixel positions , and let be an offset vector. The first-order statistic is the normalized histogram of values, and the second-order statistic is the joint histogram of value pairs at offset :

Here and are pixel values and counts positions. Positions wrap around the region, as for one period of an endlessly repeating texture. For a black-and-white dot texture, is the fraction of white pixels. is the probability that both ends of a randomly dropped needle with shape land on given colors. Third-order statistics use triangles of pixels, and so on. Summing over gives , so equal second-order statistics imply equal first-order statistics.

Julesz described two modes of human vision. Preattentive vision is parallel and instantaneous (about 100–200 ms). It works without scrutiny over a large visual field and takes the same time for any number of elements. Attentive vision is a serial search by focal attention in steps of about 50 ms. The Julesz conjecture states that textures cannot be spontaneously (preattentively) discriminated if they have the same first-order and second-order statistics of texture features (textons) and differ only in their third-order or higher-order statistics.

Order Means the Number of Pixels

The order of a texture statistic is the number of pixels examined together. The variance of pixel values is a second moment (2.5b Second-Order Moments), yet it is a first-order statistic, because the histogram alone fixes it. Two textures with the same histogram have the same mean and variance, whatever their spatial layout.

A Perceptual Conjecture With Exceptions

The conjecture is a model of human perception and has known exceptions. Julesz first stated it for statistics of raw pixel values in random-dot textures. Later experiments found texture pairs with identical second-order statistics that people discriminate at once. Julesz traced these cases to a few local conspicuous features, the textons, and restated the claim in terms of texton statistics, the form given above.

Intuition

A template compares pixels at fixed positions, so it finds the same chair again but not chairs in general. Grass, gravel and bark are harder still, because no two patches of them match pixel by pixel. People still see at a glance that two patches of grass are the same stuff. Texture models try to capture that judgment. They keep how often local patterns occur and discard where they occur.

Julesz asked which statistics the eye computes before attention is involved. Drop a needle of fixed length and direction onto a texture many times, and record the colors under its two ends. The frequencies of the color pairs are the second-order statistics for that needle. A single point gives the first-order statistics, here the fraction of white. The figure shows two dot textures with the same fraction of white, . A short horizontal needle (red) never covers two white pixels in the regular texture , and often does in the clumped texture . A needle four pixels long (blue) shows the reverse. Two dot fields with 5% and 20% white differ in first order, and their boundary pops out. Two fields with 10% white each, one clumped and one evenly spread, differ only in second order, and their boundary also pops out. The conjecture says the boundary should vanish once both orders agree.

\usepackage{tikz}
\begin{document}
\definecolor{hot}{HTML}{D9483B}
\definecolor{cold}{HTML}{2F80ED}
\begin{tikzpicture}[x=0.5cm,y=0.5cm]
% texture R (regular)
\fill[black] (0,0) rectangle (8,8);
\foreach \r/\c in {0/1,0/5,2/3,2/7,4/1,4/5,6/3,6/7}
  \fill[white] (\c,7-\r) rectangle (\c+1,8-\r);
\draw[gray!60,very thin,step=0.5cm] (0,0) grid (8,8);
\node at (4,-0.9) {$R$ (regular), $P_1(\mathrm{white}) = 1/8$};
\draw[hot,ultra thick] (1.5,7.5) -- (2.5,7.5);
\fill[hot] (1.5,7.5) circle (0.18) (2.5,7.5) circle (0.18);
\draw[cold,ultra thick] (1.5,3.5) -- (5.5,3.5);
\fill[cold] (1.5,3.5) circle (0.18) (5.5,3.5) circle (0.18);
% texture K (clumped)
\begin{scope}[xshift=5.5cm]
\fill[black] (0,0) rectangle (8,8);
\foreach \r/\c in {0/1,0/2,2/5,2/6,4/0,4/1,6/4,6/5}
  \fill[white] (\c,7-\r) rectangle (\c+1,8-\r);
\draw[gray!60,very thin,step=0.5cm] (0,0) grid (8,8);
\node at (4,-0.9) {$K$ (clumped), $P_1(\mathrm{white}) = 1/8$};
\draw[hot,ultra thick] (1.5,7.5) -- (2.5,7.5);
\fill[hot] (1.5,7.5) circle (0.18) (2.5,7.5) circle (0.18);
\draw[cold,ultra thick] (0.5,3.5) -- (4.5,3.5);
\fill[cold] (0.5,3.5) circle (0.18) (4.5,3.5) circle (0.18);
\end{scope}
% legend
\draw[hot,ultra thick] (3,-2.4) -- (4,-2.4);
\node[right] at (4.1,-2.4) {needle $\mathbf{d} = (0,1)$};
\draw[cold,ultra thick] (12,-2.4) -- (13,-2.4);
\node[right] at (13.1,-2.4) {needle $\mathbf{d} = (0,4)$};
\end{tikzpicture}
\end{document}

Properties

(Why Templates Fail) A template scores a match pixel by pixel, so a change in shape or surface pattern lowers the score at the true object.

A correlation peak needs the object’s pixels to line up with the template’s pixels. In a hallway photo that contains the same chair as the template, normalized correlation peaks on that chair. In a living-room photo with chairs of other designs, most of the strongest peaks fall on other things, such as a window, picture frames and the coffee table. Many small templates help for one object seen from new viewpoints, because each small patch changes little. They still describe one instance. A category needs a description that all its members share, and texture statistics are a first step toward one.

(Reading Search Times) A detection time that stays flat as elements are added signals preattentive processing, and a time that grows in proportion signals serial scrutiny.

In Julesz’s search experiments, a subject looks for one target element among many background elements. For some targets the detection time does not depend on the number of background elements. For others it grows in proportion to that number, which suggests element-by-element inspection. Very fast recognition also appears with natural photos. On an “animal vs. no animal” task, people make mostly correct eye movements (saccades) within 150 ms (Kirchner & Thorpe, 2006). That time is comparable to the synaptic delays along the visual pathway. The pathway runs from the retina through the LGN, V1, V2 and V4 to IT, a chain of visual areas that ends in the temporal lobe. A single feedforward pass can therefore support recognition, though feedback is not ruled out. Detection and categorization are practically simultaneous (Grill-Spector & Kanwisher, 2005).

(Statistics Are Nested) An th-order statistic fixes every lower-order statistic, so the conjecture is a claim about where preattentive vision stops.

Summing over counts every position once, which returns . In the same way, a third-order statistic for a triangle of pixels fixes the second-order statistics for each side of the triangle. Matching in third order therefore implies matching in second and first order. The reverse fails. The conjecture says preattentive vision uses the first two orders and is insensitive to the third and above. It does not say that every second-order difference is visible.

(Analysis Through Synthesis) Synthesis tests a texture model, because images generated to match its statistics should look like the same stuff.

Analysis compares two given samples. Synthesis creates a new sample whose statistics match a target. If a model’s statistics capture everything that preattentive vision uses, every image that matches them should look like the original texture. A synthesized image that looks different exposes a statistic the model is missing. 8.1. Parametric Texture Synthesis applies this test to histogram-based and CNN-based models.

(From Textons to Filters) Julesz defined textons for line drawings, so real photographs need a computational definition of the texton.

Julesz’s textons were local conspicuous features such as elongated blobs, line ends and line crossings. In a field of L-shaped elements, a patch of crosses pops out at once. In his account, only the first-order statistics of textons (how often each one occurs) matter preattentively. Photographs contain no clean line segments, so the open question is what the statistical unit of texture is in real images. Later work answers it with oriented filters modeled on the visual cortex (9.2. Filter Banks), histograms of their outputs (9.3. Texture Histograms), and clusters of filter outputs, which are also called textons (9.4. Bag of Visual Words). A histogram of texton counts is a first-order texton statistic, which matches Julesz’s account.

Examples

(Easy) Serial Search Time

A display holds elements, one of which is the target. Assume that attentive search inspects one element per 50 ms step, in random order, and stops at the target.

(Medium) Same Density, Different Arrangement

The two dot textures in the figure repeat endlessly, so offsets wrap around the edges. Rows and columns are numbered from 0, starting at the top left. Texture has white pixels at . Texture has white pixels at . All other pixels are black.

See Also