기본 정보
- 저자
- DOI
- 10.5201/ipol.2016.177
- 저널
- Image Processing On Line
- 발행년도
- 2016
- 발행기관
- Image Processing On Line
- 피인용수
- 0
- 라이선스
- cc-by-nc-sa
- 논문 유형
- –
- 언어
- –
- 원문 페이지
- https://doi.org/10.5201/ipol.2016.177
- 토픽
- Color Science and Applications
- OpenAlex ID
- W2556532432
평가 내용
- 관련도
- 사업분야
- 필름·전자재료 · (13) 프리즘 필름
- 부 분야
- –
- R&D 측면
- –
- 확신도
- –
- 근거 용어
- –
- 판단 근거
- 임베딩 유사도 기반 평가로 '필름·전자재료 > 프리즘 필름' 분야에 선정된 논문입니다.
- R&D 활용 포인트
- –
- 평가 입력
- –
초록
본문 99,435자
본문 펼치기
섹션 본문 117문단 · 50,637자
(제목 없음)
1This paper presents a method to be used in psychophysical experiments to compare directly visual perception to an a contrario algorithm, on a straight patterns detection task.The method is composed of two parts.The first part consists in building a stimulus, namely an array of oriented elements, in which an alignment is present with variable salience.The second part focuses on a detection algorithm, based on the a contrario theory, which is designed to predict which alignment will be considered as the most salient in a given stimulus.
Introduction
2Since the emergence of the field of Computer Vision [18] about fifty years ago there have been many attempts at formalizing vision theories and especially the one formulated by the Gestalt school of psychology.Its members, Wertheimer, Köhler, Koffka, Kanizsa among others [28,11,5,19,10], developed from the twenties to the eighties an original modus operandi, leading to the conclusion that the first steps of visual perception are based on a reduced set of geometrical grouping laws [26,27].These laws, also called Gestalts, describe the configurations in which most human observers can't help interpreting different elements as one shape or group.Figure 1 illustrates the laws of proximity, symmetry and good continuation.
3Desolneux et al. [4] designed the a contrario theory as one of the attempts to provide mathematical foundations to these laws.Several properties of the a contrario framework argue in favor of its suitability for visual perception modeling.
4First, it applies Attneave's principle, stating that we do not perceive any structure in white noise [1].Computer vision algorithms based on the a contrario theory, like for example the Line Segment Detector [7,8], typically avoid detections in noise.This idea is also consistent with the Figure 1: Illustration of some of the grouping laws defined by the Gestalt school of psychology.The left hand image, adapted from [21], shows how proximity and symmetry forces us to group dots and lines two by two.The right hand drawing is a figure from [9], which we interpret as three smooth lines because of the good continuation grouping law.The central image, adapted from [10], illustrates relationships between grouping laws when several of them occur simultaneously.In this case, in spite of the two symmetrical shapes, we can't help seeing two asymmetrical shapes with more regular contours.more general non-accidentalness principle, introduced by Witkin, Tenenbaum and Lowe [14,29,30], and of great importance in the study of perception.This principle states that spatial relations are perceptually relevant when their accidental occurrence is unlikely.Therefore, in accordance with Attneave's statement, these meaningful spatial relations should not appear by chance in a random image of noise.
5Another strength of the a contrario theory is that it allows the design of parameterless detection algorithms.These make as few assumptions as needed to adapt automatically to a large variety of inputs.Similarly, our visual system is able to perform equally well in very different conditions, without the need to re-learn, each time, priors on the world.
6To link the Gestaltist qualitative description of perceptual grouping laws to a mathematical model, a quantitative gap must be bridged.Human perceptual behavior has been the subject of quantitative experimentation since the times of Fechner, the founder of Psychophysics.This relatively new science investigates the relationship between the stimulus intensity and the perceived sensation [24].Concerning visual perception, psychophysical studies have added quantitative measurements to the qualitative observations made by the Gestaltists.Among them, one finds experiments investigating the so called contour2 integration phenomenon [6].In particular, the role of the Gestaltic good continuation grouping law (Figure 1), which can be rephrased in Palmer's words: "All else being equal, elements that can be seen as smooth continuations of each other tend to be grouped together" [22, p. 259].
7In this paper, we build on a method introduced in the early 90s [6,12] and still used in the study of good continuation [13,20,15,16,25,23].It consists in embedding discrete contours in a cluttered background of oriented elements, called Gabor patches, and measuring the ability of human observers to perceive such contours, as a function of their characteristics.Here, we focus on a particular case of good continuation, namely alignments of Gabor patches, like the left hand image in Figure 2.
8A result that is common to the previously mentioned experiments, and illustrated in Figure 2, is that the visual system is good at detecting smooth paths formed by elements that are roughly oriented like the local tangent of the contour.These studies also reported decreasing detection performance when contours were deviating from this ideal configuration.An important step towards the understanding of the mechanisms underlying these observations is the definition of a model that could explain and predict these results obtained experimentally.This paper describes a methodology adapted to address that issue.In the first part, we present an algorithm to generate stimuli suited to test the perception of alignments in different conditions.This generation algorithm complies with several requirements.As in Figure 2, in a generated stimulus an alignment should be perceptible only thanks to the orientations of the elements composing it.It should be almost impossible to see without the orientation information, like in the central image of Figure 2, or when the orientations of the aligned elements are unconstrained, like in the right hand image.Furthermore, the algorithm should allow a great variety of stimuli.In particular, we want to test the effect observed in Figure 2 with different quantities of elements per image, several numbers of aligned elements, and in intermediate orientation conditions, that is, ranging from totally constrained orientations for the aligned elements (left hand image) to completely random orientations (right hand image).
9In the second part, we describe a detection algorithm based on the a contrario theory, designed to detect alignments in the latter stimuli.More precisely, this algorithm relies on the non-accidentalness principle to predict whether a candidate alignment is perceptually meaningful.When the target alignment is detectable for human observers, the algorithm should detect it as well.Otherwise, it should prefer another structure in the background.
Generation Algorithm
10The algorithm first sets the coordinates of the elements in the image, and then assigns them their orientations.Whereas this last step is straightforward (see Section 2.5), the first one is more technical and is detailed in Sections 2.1-2.4.The idea is to place randomly, in a square image, a number N of elements, n of which are aligned, and so that the image is filled homogeneously, without clusters and large empty regions.In short, we do so by first placing n elements on a line and regularly spaced by a distance d a , and then filling the background with N − n random elements respecting a minimal distance d b from each other and from the aligned elements.
Distances between Points
11We first need to set the minimal distance between two elements, which we will also take as the minimal distance from an element to an edge of the image.Recall that we want N elements to fit into the image and fill it homogeneously, avoiding clusters and large empty regions.These requirements are somehow the converse to those of the well known problem consisting in filling a domain with as many spheres as possible, given their radius r.Indeed, in our case we know the number of discs to fit into the square image, and we want to set their radius in order to get the most homogeneous layout.This amounts to placing N discs with equal radius r in a square, without overlap but in a compact way, so that the distance between the centers of two neighboring discs, is about 2r.The most compact configuration fulfilling these requirements consists in a hexagonal lattice.As we see in Figure 3, in such an arrangement the density is 1 2 √ 3r 2 disc per surface unit.Therefore, the maximal possible radius r hex (N, S) for N discs to fit in a domain of area S verifies
12The distance d hex (N, S) between two adjacent disc centers is twice this radius.In our case we want to fill a square image of size I × I, with the additional constraint that a disc center be also d hex pixels away from the image's edge.Thus the domain is a square with side I − 4r hex = I − 2d hex .Replacing S by (I − 2d hex (N, I)) 2 in Equation ( 1), we get the following equation for d hex
13.
14(
152r
16Figure 3: Illustration of the density of a hexagonal arrangement of discs with radius r.The area of a red equilateral triangle is √ 3r 2 , and a triangle contains half a disc (each green portion represents one sixth of a disc, and a triangle contains three of these portions, that is 3 × 1 6 = 1 2 disc).Thus, there is 1 2 √ 3r 2 disc per unit area.
17In order to achieve a random layout for the elements' coordinates (and not a regular lattice) in our stimuli we need a smaller value for the minimal distance d b between background points.This is equivalent to throw discs with smaller radius so that they can fit more loosely in the same square.Therefore, we set
18with λ < 2. For our stimuli, we choose λ = 1.5 and I = 500 pixels.Regarding the distance d a separating regularly the aligned points, we simply take
19Indeed, whereas d b is a minimal distance between random points, which is never achieved in practice in the stimulus generation, d a is the exact spacing between aligned elements; thus it is necessary to choose d a > d b , otherwise the aligned points would always be closer from each other than the background elements, and would therefore be easily detected by an observer from the points coordinates only.
Placing the Alignment
20In this section we describe how we build an alignment of n points, regularly spaced by a distance d a , in a square image I of size I × I pixels, deprived of d b pixels wide horizontal and vertical margins (Figure 4a).First, assume we have already chosen the center of the alignment c = (x c , y c ) (that is to say the center of the segment defined by the two extremity points in the alignment), and its orientation θ a ∈ [0, π).Then, noting − → v a = (cos(θ a ), sin(θ a )) a unitary directing vector of this segment, the target alignment is the set points s 1 , s 2 , . . ., s n defined by
21The center c and the orientation θ a must be chosen so that the n aligned points belong to the allowed image domain, that is, in the image but not in the margins.To ensure this, it is sufficient to test if the two extremity points s 1 and s n fall in the image.This criterion is formalized by Equation (6).
22Thus, in our algorithm, for a given number n of aligned elements, we first choose randomly the orientation θ a , and then choose randomly the center c from the rectangle defined by Equation ( 6), if the latter is not empty.
23The algorithm also ensures that this rectangle is not empty by limiting the aligned elements to a maximum number n max .This quantity is defined by Equation (7) as the maximum number 3 It may seem more intuitive to simply relax the minimal distance by setting
24with λ < 1 instead of the result of Equation (3) with λ < 2, but recall that we want the minimal distance between elements to be also the minimal distance from an element to the edge of the image.When relaxing the minimal distance between elements, we also relax the size of the square.Therefore the relaxation needs to be applied to the first line of Equation (2), and not directly to its solution d hex .This is what is done in Equation (3).For large values of N ,
25and
26give approximately the same of elements than can fit in the allowed image domain, arranged into a central and horizontal (or, equivalently, vertical) alignment with d a pixels as regular spacing.This constraint guarantees that an alignment composed of no more than n max elements, can always fit in the center of the image, whatever its orientation θ a .
Placing the Background Elements
27Recall that we want to fill the background of I with N − n random elements respecting a minimal distance d b from each other and from the aligned elements.The principle of the algorithm consists in iteratively performing two main steps.The first step is to define a "forbidden region" as the union of discs with radius r b and centered at the already placed points.The second step is to choose a new point randomly and uniformly from the complement of the forbidden region.In practice, the forbidden region is defined as a discrete dilation of the set of already placed points, with an approximation of a disc of radius r b as structural element.To set the problem in a discrete frame, we use a binary image I of size I × I pixels, in which all points will have integer coordinates.Image I will have a different size from I, as will be explained in the next paragraph.The placement of the background elements is performed in this new image I , and then the coordinates of these new points are mapped to I with the desired resolution.
28Mapping between I and I .The size I of I is deduced from the choice of the resolution to which the coordinates of the final points will be set.For example, to achieve a 0.5 pixels resolution, we set I = 2I.More generally, for a resolution of r pixels,
29where • denotes the upper integer part.Similarly, we define in Equation (9) the mapping between the coordinates (x, y) of a point in I and its coordinates (x , y ) in I .Computing (x , y ) from (x, y) is done deterministically, as described by Equation ( 9).
30This mapping from I to I is used only to transform the coordinates of the aligned points prior to set the background points.After defining the coordinates of the background points in I , we apply an inverse mapping to get their coordinates in I, as described by Equation ( 10).This inverse mapping ensures the desired resolution but avoids to set the coordinates on the vertices of a lattice, by adding some random noise to the position of the points.Indeed, in Equation ( 10), u x and u y are sampled independently from the uniform distribution on [0, 1].Setting the coordinates in I .As we said, I is a binary image that we use to define the coordinates of the background points.The coordinates of every new background point in I are chosen randomly and uniformly from the authorized region A, defined as the pixels of I that are set to the Boolean value "true".
31Therefore, I is initialized by setting most of its pixels to "true".The only pixels set to false are those which are close enough to the edges, that is
32where
33is the minimum distance allowed between two points and between a point and the image's edge, in I .
34We will denote S the set of already existing points.Naturally, S is initialized with the aligned points defined in section 2.2 and whose coordinates are transformed according to Equation (9).Then, the definition of a new point given the existing points in S, is realized following two steps.• Step 1: update A. We compute δ B (S), the morphological dilation of S by the structural element B, which is a discrete disc of radius d b (its members comprise all pixels whose centers are no greater than d b away from the origin).Then we update I by setting to false all pixels in δ B (S)
35This update of I automatically updates the set A of authorized points, according to its definition in Equation ( 11).
36• Step 2: update S. The new point is chosen randomly according to a uniform distribution over the set A of authorized points.This new point is then added to S.
37These two steps are repeated until S reaches N points or A = ∅.Therefore, the total number of points in the stimulus might be lower than N .Finally, the coordinates of the background points, that is, the points of S except the alignment, are transformed following Equation (10) to fit in I.For the alignment in I, we keep the original coordinates, as defined in Section 2.2.
Checking for Density Cues
38Following [3,17], we check for density cues by comparing the area of the aligned points' Voronoi cells (also called target cells) to those of the background points (also called background cells); see Figure 6.If the areas of the target cells are significantly different from those of the background cells, then we suspect that a density cue may exist in the stimulus.
39The set of Voronoi cells.We first compute the Voronoi diagram for the set of points.Then we discard the cells with vertices falling outside the image domain.We will call valid cells the cells which, on the contrary, have all their vertices included in the image domain.Note that among the discarded cells there might be target ones.If strictly more than 20% of the target cells are discarded, which might happen if the alignment is close to an edge, we consider that the remaining target cells are not sufficient to compute reliable statistics.In that case, the stimulus is regarded as suspicious, and might be rejected.
40The statistical comparison between target and background cells.If at least 80% of the target cells are kept, then we compare statistically the areas of the valid target cells to those of the valid background cells.We assume that the areas of target and background cells are independent samples of two normal distributions with equal variances, and the tested hypothesis is that these two distributions have equal means.The alternative hypothesis is that one of the two means is greater than the other.
41The performed test is a t-test.We note A = {a 1 , . . ., a m } and B = {b 1 , . . ., b q } respectively the sets of valid Voronoi cells areas for the alignment and the background.Their sample means are respectively noted ā and b.The Matlab method ttest2 computes the sample standard deviations s a and s b , from which it deduces a unique pooled sample standard deviation s (Equation ( 14)).
42Then the value of interest, denoted t, is computed according to Equation (15), and is supposed to follow a Student t-distribution with m + q − 2 degrees of freedom, if the tested hypothesis is correct.
43If the tested hypothesis holds, t is likely to be close to 0. On the contrary, the greater the absolute value of t, the less likely samples A and B come from distributions with the same means.Noting T m+q−2 a random variable following a Student t-distribution with m + q − 2 degrees of freedom, the associated p-value is therefore
44The smaller p, the more confidently the tested hypothesis can be rejected.The user can decide the significance threshold p min under which the p-value should lead to reject the null hypothesis.A common practice is to set p min = 0.05, but this is only a suggestion.We prefer not to impose a rejection criterion to the user.Indeed, we are aware that the exposed strategy may not be always optimal and could be adapted.Furthermore, we believe it is useful for research purposes to observe the relationship between the statistical p-value and the rendered stimulus.Finally, returning the produced stimulus along with the p-value is the simplest way to guarantee the algorithm ends with an output.Note that it is also possible to assume that the areas of target and background cells are independent samples of two normal distributions with possibly different variances.In that case, if the tested hypothesis of equal means is correct, the computed value t has an approximate Student's t distribution with a number of degrees of freedom given by Satterthwaite's approximation
45This is what was done for the stimuli described in [2].In the latter method, to produce one stimulus, ten were generated and the one with the greatest p-value was kept.In most cases, the eventual p-value was greater than 0.6.
Setting the Orientations
46Target orientations.The orientations of the target elements are randomly chosen from an interval centered on the main direction θ a of the alignment.The width of this interval is determined by an angle α ∈ [0, π 2 ], called angular jitter, and which is a parameter of the algorithm.Then the orientations θ 1 , θ 2 , . . ., θ n of the n target elements are independently and uniformly sampled from the interval [θ a − α, θ a + α].
47Background orientations.The orientations of the background elements are sampled independently from a uniform distribution over all possible angles.This last step completes the definition of the set G = {(x i , y i , θ i ), 1 ≤ i ≤ N }, representing the N oriented elements that will be displayed in the stimulus.Sections 2.6 and 2.7 describe how the actual stimulus is built from G.
Building a Patch
48In our stimuli a patch is a small h × h pixels square image showing the central part of a symmetrical Gabor function.The family of functions G f,θ,σ we use is defined by
49where f is the spatial frequency, σ the space constant and θ the orientation of the Gabor element.For our stimuli, we set h = 15 pixels, f = 0.12 cycles per pixel and σ = 1 4f pixels.These parameters, as well as the image dimensions (I = 500 pixels), were adjusted to produce visually satisfactory stimuli and were also inspired by the literature.However, other values could be used keeping in mind some practical constraints.The patch must be large enough to show the whole part of the Gabor function where it takes values different from the background; and not too large to avoid overlaps among patches.The value of f controls the thickness of this central blob.The smaller f , the thicker the blob and the more blurry the patch looks.Finally, setting σ proportionally to 1 f allows to control the number of blobs that are visible in the patch, independently of f .Increasing the coefficient of proportionality tends to let appear more cycles, and therefore more blobs, in the patch.
50Given the orientation θ of the patch (that is, the main orientation of the central blob), the value of pixel (i, j) in the patch is given by
51where c = 1+h 2 is such that (c, c) are the coordinates of the center of the patch (whether in Cartesian or matricial form).
Building the Final Stimulus
52First, the image I is initialized to the medium gray value.Then for each element (x i , y i , θ i ) ∈ G, a patch g i with orientation θ i is built as described in Section 2.6.Image I is actually a matrix, in which the origin of the coordinates is the upper left hand corner, and the first and second coordinates are the row and column indexes respectively.Since (x i , y i ) are intended as Cartesian coordinates in a classically oriented frame, we need to translate them into image coordinates prior to placing the patch in the image.This is why we define the central pixel of the patch and its top left hand corner as follows x
53where round(x) = x + 0.5 is the closest integer to x; and finally patch g i is placed in the image
54start : The p-value associated to the t-test is p = 0.49, which means that according to the performed test there is no significant difference between the areas of the target Voronoi cells and those of the background cells.
Formal Description of the Algorithm
55The generation algorithm, noted Algorithm 1 is described in detail by its pseudo-code.Here the associated p-value is p = 0.54.Like in Figure 8, this p-value means that according to the t-test there is no significant difference between the areas of the target and background Voronoi cells.Here the associated p-value is p = 0.97.Like in Figures 8 and 9, this p-value means that according to the t-test there is no significant difference between the areas of the target and background Voronoi cells.Θ ← setOrientations(θ a , α, idx a , actual N ) I ← buildStimulus(I, h, P, Θ, σ, f ) 10 return P, Θ, p, idx a , I Function setCoordinates(I, N, n in ).This function, called in Algorithm 1, takes as arguments the image side I in pixels, the total number N of elements and the number n in of aligned elements.The function returns a list P of N coordinates, representing the positions of the N elements; the set idx a of indexes of the aligned elements in P ; the orientation θ a of the alignment.
56Function placeAlignment(I, n in , d a , d marg ).This function, called in setCoordinates, takes as arguments the image side I in pixels, the number n in of aligned elements, the distance d a between consecutive aligned elements, in pixels, and the minimal distance d marg of any element from the image's edge, in pixels as well.If n in is too big (> n max ), the actual number of aligned elements will be n max .The function returns a set S of coordinates of the n aligned elements, and the direction θ a of this alignment.
574 n max ← I−2dmarg da + 1 // Maximal number of aligned elements that can fit in the image for any θ a
58Function placeBackground(S, N, r, I, d marg , d min ).This function, called in setCoordinates, takes as arguments the set S of coordinates of the aligned elements, the total number N of elements, the spatial resolution r for the coordinates of the elements, the image side I in pixels, the minimal distance d marg of any element from the image's edge in pixels, and the minimal distance d min of any element from its closest neighbor.The function returns a set P of N coordinates, representing the positions of the N elements.Function checkDensityCue(P, I, idx a ).This function, called in Algorithm 1, takes as arguments a set P of N coordinates, representing the positions of the N elements, the image side I in pixels, and the list idx a of indexes of the points in P belonging to the alignment.The function returns a p-value associated to a statistical comparison between the areas of the Voronoi cells of the aligned elements and those of the background elements.The user shall see p as a criterion to decide whether to reject the stimulus or not.If p is smaller than a significance threshold p min (to be chosen by the user, typically p min = .05),the stimulus should be rejected because the difference between the two sets of areas will be considered as significant.The value p = 0 means that the statistical test was not performed, and that the stimulus should be rejected no matter the significance threshold p min .Function SetOrientations(θ a , α, idx a , N ).This function, called in Algorithm 1, takes as arguments the direction θ a of the alignment, the angular jitter α, the list idx a of indexes in {1, . . ., N } corresponding to the aligned elements, and the total number N of elements.
59end end 10 return Θ Function buildStimulus(I, h, P, Θ, σ, f ).This function, called in Algorithm 1, takes as arguments the dimension I of the image's side, the dimension h of a patch's side, the list P of the patches' coordinates, the list Θ of the patches' orientations, the space constant σ and spatial frequency f that determines the aspect of a patch; the function returns the stimulus itself: a I × I pixels image representing the set of Gabor patches.
601 N ← #P 2 I ← 0.5 • ones(I, I)
Detection Algorithm
61The detection algorithm described in this section is based on the a contrario theory, which is a mathematical formulation of the non-accidentalness principle.An a contrario method requires two models.On the one hand, a geometric model, which is deterministic and, on the other hand, a probabilistic model.The geometric model defines an ideal structure x * along with a function d x * (•) measuring a deviation from it.For example, in our case, the ideal structure is a set of aligned Gabor patches with perfectly aligned orientations.The measure of a deviation from this ideal configuration, is detailed in Section 3.1 but we can already provide a hint of it: in Figure 12 (e) for example, the smaller the angles α i , the closer the depicted chain to a perfect alignment.
62The probabilistic model, also called a contrario or background model, is the statistical hypothesis H 0 of the absence of relevant structure -the so called null hypothesis.It represents the most general assumption on the data.Consistently with Attneave's principle stating that we do not perceive any structure in white noise [1], an a contrario model generally gives a maximal entropy to the building blocks of the percept.For example if these building blocks are oriented, their orientations must be random, independent, and uniformly distributed for each block.By Attneave's principle the emergence of a percept in a realization of such a model should be unlikely, and in any case purely accidental.Therefore this background model is used to test the significance of an observation, as follows.Let X be a random variable consistent with H 0 .Given an observed structure x with a deviation d x * (x) from the ideal structure, its relevance is measured by the probability P H 0 (d x * (X) ≤ d x * (x)) to be at least as close to x * under H 0 .Small deviations yield small probabilities, and are thus rare events in the background model.
63To evaluate the non-accidentalness of an event, an a contrario method takes into account the whole set of observations that were necessary to come across that particular event.For example, when looking for alignments in an array of Gabor patches, we define a priori a family of sets of patches, that will be tested as candidates to be alignments.This is what is usually called the family of tests, noted T , and N T denotes the number of tests in T .Then, given a tested candidate x that yielded the deviation d x * (x), denote by X 1 , X 2 , . . ., X N T , the random issues to the N T tests, under the background model H 0 .The question is now how common or, on the contrary, how surprising it would be to observe a deviation smaller than d x * (x) among these N T tests.An answer is to estimate the expected number of variables X i that verify d x * (X i ) ≤ d x * (x).The a contrario theory provides as an estimate a quantity called Number of False Alarms (NFA), defined as NFA
64In general the NFA is an upper-bound of the number of deviations to the ideal model smaller than d x * (x) that are expected to happen by accident in a set of N T random tests.
65In the following subsections, we detail the geometric and a contrario models for our study.
The Geometric Model
66For a given a tuple (g 1 , . . ., g n ) of n Gabor patches, we consider the variables α 1 , α 2L , α 2R , . . ., α (n−1)L , α (n−1)R , α n , as illustrated in Figure 12(e).Variable α iL is the absolute angle between the orientation of Gabor patch i and the line joining it to the patch i − 1, while α iR is the same thing changing i − 1 for i + 1.Since the first and last patches in the tuple have no previous and next elements respectively, we simply note α
67The ideal alignment that will be our reference structure in the present study, is such a tuple of Gabor patches for which all angles ω i s are equal to 0 rads.In words, it is a set of aligned patches whose orientations are the same as their line's orientation.
68Then we measure the deviation of a general tuple from an ideal alignment by its maximum angle ω * def = max{ω 1 , . . ., ω n }.
The A Contrario Model
69Now we need to define the a contrario model for our stimuli.Figure 13 shows three arrays of Gabor patches with only background elements and thus no significant alignment.Formally, we model an array of N Gabor patches by a set g = {(x i , θ i )} i=1...N , where x i ∈ R 2 represents the coordinates of patch number i, and θ i ∈ R its orientation.We note x def = {x 1 , . . ., x N } and, for any three points x, y, z ∈ x, φ xyz is the angle between vectors − → xy and − → yz.Finally, the set of the 6 nearest neighbors of a point x ∈ x is noted N 6 (x) (see Figures 12 (a) and (b)).Then we define an a contrario array of Gabor patches as a random set G = {(X i , Θ i )} i=1...N verifying two properties:
701.The random variables Θ 1 , . . ., Θ N are independent and uniformly distributed in [0, 2π).
For any
71, and is independent from Φ * X Y for any (X , Y ) = (X, Y ).
72Let's clarify the relation between this definition and the background stimuli of Figure 13.Property 1 corresponds exactly to the rule we used to define the background elements' orientations in our arrays of patches (see Section 2.5).The relevance of property 2 needs more justification.As explained in Sections 2.1 and 2.3, we built each stimulus so that N elements fit in it, that two elements were not too close to each other, and that there were no empty regions in the image.The most compact way to fit discs in a given region is to lay them on a hexagonal lattice.Here we chose the minimal distance between elements in order to allow some randomness in their coordinates.The resulting stimuli look like hexagonal lattices affected by some noise, in which property 2 approximately holds (see Figure 12 (a)).As illustrated in Figure 12 (d), in such an approximately hexagonal lattice, we expect the maximal value for the angle Φ * XY to be roughly π 6 .Since we do not know the actual distribution of Φ * XY , the simplest assumption is then the uniform distribution in [0, π 6 ), which does not require to set any parameter.We checked that the empirical distribution of Φ * XY is reasonably close to our assumption.
Input of the Algorithm
73The input of the detection algorithm is a set g = {(x i , θ i )} i=1...N , that models a Gabor array composed of N patches (see Section 3.2).
The Family of Tests
74The family of tests is defined by first building a graph γ on the set x = {x 1 , . . ., x N }, and then selecting chains of adjacent edges in this graph.
75The graph γ.The oriented graph γ = (x, e), where x is the set of vertices and e the set of edges, is defined as follows: (x i , x j ) ∈ e if and only if x j is one of the 6 nearest neighbors of x i and d(x i , x j ) ≤ d max , where d(x i , x j ) is the Euclidean distance between the two points, and d max the maximal length we accept for an edge (see next paragraph).We will denote by N γ (x) the set of neighbors of x in γ; see Figure 12 (a).Maximal edge's length.The maximal length for an edge is based on a statistic of the distances between a point and its nearest neighbor in x.We list the N distances of each point x i ∈ x to its nearest neighbor, and define d avg as the mean value of this list.Then we take as maximal length for an edge d max def = 2d avg .This is just an empirical choice to avoid too long edges in the graph.
76The chains to be tested.A chain (z 1 , z 2 , . . ., z n ) is in the family of tests T if and only if the following conditions are fulfilled
77where
78In words, the chains to be tested are sequences of adjacent elements in γ that minimize the angles between consecutive edges.Figure 12 (c) shows six examples of chains to be tested, each starting from the same point and composed of five elements.
79The number of tests is approximately
80N T is actually an overestimation of the number of tests, since not all nodes in γ have six neighbors, and we only test chains containing at least three elements.
The NFA
81The NFA of each chain c = (z 1 , . . ., z n ) of T is defined as follows.Consider the variables ω 1 , . . ., ω n , as defined in Section 3.1 and illustrated in Figures 12(e) and (f).Under the assumption that g is a realization of an a contrario array of Gabor patches, the orientations ω 1 , ω 2 , . . ., ω n are samples of n independent random variables Ω 1 , Ω 2 , . . ., Ω n .Ω 1 and Ω n are uniformly distributed in [0, π 2 ],
82and a short development, presented in the Appendix, shows that Ω 2 , . . ., Ω n−1 have a cumulative distribution function
83Note that for a random patch Z i in a chain, the probability law of max(α iL , α iR ) depends on the angle Φ * Z i−1 Z i .The cumulative distribution function F is obtained by integrating over all possible values for Φ * Z i−1 Z i , according to the law hypothesized in the a contrario model.Noting ω * def = max{ω 1 , . . ., ω n }
84and Ω * def = max{Ω 1 , . . ., Ω n }, the probability that all Ω i be less than the observed ω * is
85As usual in the a contrario theory, we get a natural definition of the NFA of chain c
Output of the Algorithm
86The algorithm returns the lowest NFA and the chain that achieves it.When the a contrario theory is applied to computer vision, the common practice is to detect only structures with NFA below a certain threshold (typically, NFA = 1).Like in [2], we want to compare the detection algorithm to visual perception on an objective task, in which both the subject and the algorithm are forced to report the most salient structure in the stimulus.If we allowed the algorithm to report no detection at all, we should give the same possibility to human observers, and this would introduce more subjectivity: the subject could actually see something and decide not to consider it as a significant alignment.Moreover, we are also interested in the NFA value of the target alignment, whether it is detected or not (see demo).
Examples of Detections
87In this section we present a few examples illustrating the behavior of the detection algorithm.Figures 14 and 15 are the most representative cases: the algorithm detects the target alignment when it is conspicuous (Figure 14), but does not when it is perceptually hard to distinguish the alignment from the background (Figure 15). Figure 16 and 17 show two examples where human observers perceive the target alignment whereas it is not detected by the algorithm.In Figure 16, despite the high level of orientation jitter, human subjects could detect a part of it, composed of the third, fourth and fifth elements starting from the top.The reason is probably that the position masking left a larger space around these three elements.Note that the statistical test on density cue yields a p-value of 0.79, and therefore does not point out the inefficiency of the masking here.Figure 16 also shows the algorithm's tendency to detect curved structures when no salient alignment is present.In Figure 17, the algorithm prefers a short alignment, although the target alignment seems more salient.
88On the contrary, Figure 18 illustrates the cases where the algorithm finds the target alignment whereas the latter is not so easy to perceive for a human observer.Because it is quite long and not so affected by angular jitter the target is expected to be easy to spot.However in this stimulus, other alignment-like structures occurred by chance in a more central part of the image, which tend to draw our attention away from the target alignment.
89Finally, in Figure 19 we see how the algorithm sometimes detects a chain that includes the target alignment.The latter is not significant enough to be detected alone, but participates in the detection of the bigger set.In the present example the algorithm contradicts our perception, since we tend to see the target and not the longer chain.The fact that the detected structure is curved instead of a straight alignment, shows another limitation of our algorithm.We tried several strategies to constrain the curvature of the chains by including it in the computation of the NFA.In general, this did prevent to detect curves rather than alignments.However, for all the formulations we tried, this also often led to detecting target alignments that were not perceived by human observers.In other words, we have not found the appropriate trade-off between curvature and consistency within orientations.The algorithm presented here is, among the approaches we tried, the one that best matches the human data [2].
90The examples presented above are meant to give an idea of the limitations of the algorithm in some particular cases.However, in general, the algorithm provides quite accurate predictions of the perception of alignments in our stimuli.For a detailed presentation of these results, we kindly refer to [2].
Target alignment
91Stimulus (input) Detection: NFA = 0.91 Figure 14: Example of detection in a stimulus composed of N = 100 patches, with n = 6 elements affected by a jitter α = 0.3π 2 .In general the algorithm detects the target alignment when it is conspicuous.
Formal Description of the Algorithm
92The detection algorithm, noted Algorithm 2 is described in detail by its pseudo-code.
Target alignment
93Stimulus (input) Detection: NFA = 22
94Each angle θ i is supposed to be the orientation of a Gabor element placed at x i .output: The smallest NFA value NFA * , and the associated set of Gabor elements
95, γ a N ×N adjacency matrix representing an oriented graph on x, and c an ordered list of indexes, corresponding to a chain of points of x.The function returns an index in {1, . . ., N }, which corresponds to the point which should expand the current chain c.
96Function nfa(C, x, Θ). x = {x i } i=1...N is a set of N points in R 2 , Θ = {θ i } i=1...N a set of N angles in [0, 2π), and C = (i 1 , i 2 , . . ., i n ) a tuple of n indexes in {1, . . ., N }.
Conclusion
97This paper has presented a method aiming at interpreting and quantifying the perceptual grouping of aligned oriented elements in arrays of Gabor patches.The method is composed of two main algorithms: first, a generation algorithm designed to build stimuli in which perceptual grouping is almost only due to the orientations of the patches; second, a detection algorithm designed to find the target alignments only when they are conspicuous for human visual perception.This parameterless algorithm is based on the a contrario theory, a mathematical model of the non-accidentalness principle.These methods were applied and tested in psychophysical experiments [2], where the NFA showed strong correlation with the detectability for human subjects, and the algorithm proved to be an accurate predictor of the average subject's behavior.Therefore, the framework presented here is a tool to test the relevance of the a contrario approach to perceptual tasks in image processing and computer vision.
Appendix
98To analyze the distribution of the random variables Ω i we start by analyzing the possible values ω when the chain at point i has an angle between the previous (L) and next (R) element of ϕ, see Figure 20.Given that ω is the largest of α L and α R , for a given ϕ the possible orientations for the Gabor element are classified into four sectors, in two of them ω = α L and in the other two ω = α R .Indeed, at the orientation of the bisector of the two lines L and R, α L = α R .The same happens at the bisector of R and the continuation of L and inversely.
99Let us analyze the distribution in one of the sectors; the same distribution is observed in the three others and the reader can fill the details.The minimal possible value for ω is ϕ 2 , as can be seen at the orientation marked with the letter A in Figure 21.Indeed, that orientation is the bisector of line R and the continuation of line L, which form an angle ϕ.As the orientation increases clockwise, the corresponding angle ω increases gradually, passing the orientation marked with the letter B, where ω = π 2 − ϕ 2 , until arriving at the orientation C, which is orthogonal to line L and gives the maximal possible value ω = Also, the probability that ω be in the first interval is equal to the probability that the Gabor element be oriented between A and B, that is 2 π ( π 2 − ϕ); similarly, the probability that ω be in the second interval is equal to the probability that the Gabor element be oriented between B and D, that is 2ϕ π .This allows to deduce the values of a and b, which gives the following probability density function for ω, given a fixed ϕ p(ω|ϕ
Figure 2 :
100Figure 2: Illustration of the perception of alignments in arrays of Gabor patches.The displayed elements have the same coordinates in all three images.In the left hand image, 10 elements are aligned and have the same orientation as their line, whereas the other elements are randomly oriented.In the right hand image, all elements have random orientations, even the 10 elements that appear aligned on the left hand image.The central image only shows the coordinates of the elements, without any orientation.An alignment is perceptible only in the left hand image, where the aligned elements have the same orientation as their line.
Figure 4 :
101Figure 4: (a) The authorized image region for the elements of the stimulus: a I × I pixels square, deprived of d b pixels wide horizontal and vertical margins.(b) A discrete homogeneous line-segment, composed of n = 10 points, with spacing d a , center (x c , y c ), and direction θ a .In the implementation of the algorithm, we will take the left hand lower corner as the origin of the coordinates.
Figure 5 :
102Figure 5: Illustration of the procedure to set the coordinates of the background points.Every picture represents I at different steps of the procedure.The white pixels represent the authorized region A at each step.(a) Initialization of I , only the pixels along the margins are set to f alse, and A is the inner white square.(b) Update of A after the dilation of the set S initialized with the aligned points.(c)-(e) Dilation of S after definition of one, two and 50 background points.
Figure 6 :
103Figure 6: Voronoi cells for a set of points.Only cells that are fully included in the image domain are taken into account.Cells are filled in gray for background points and in light red for the aligned points.The check for density cue is a statistical t-test of the hypothesis that the areas of the target and background cells are samples of two normal distributions with equal means.
Figure 7 :
104Figure 7: Orientation of a target element, chosen randomly from a uniform distribution over [θ a − α, θ a + α].
Figures 8 , 9 ,
105Figures 8,9, 10 and 11 are four examples of stimuli built with the proposed algorithm.The first three examples show satisfactory stimuli in which no significant density cue was found, that is the perceptual grouping only depends on the orientations of the target elements.In Figure11however, the alignment is perceptible despite the maximal angular jitter affecting the target elements.The low associated p-value helps as a criterion to reject this stimulus.
Figure 8 :
106Figure 8: Example of a stimulus with N = 100, n = 5 and α = 0.3•π 2 .The p-value associated to the t-test is p = 0.49, which means that according to the performed test there is no significant difference between the areas of the target Voronoi cells and those of the background cells.
Figure 9 :
107Figure 9: Example of a stimulus with N = 200, n = 7 and α = 0.5•π 2 .Here the associated p-value is p = 0.54.Like in Figure8, this p-value means that according to the t-test there is no significant difference between the areas of the target and background Voronoi cells.
Figure 10 :
108Figure 10: Example of a stimulus with N = 600, n = 9 and α = 0.1•π 2 .Here the associated p-value is p = 0.97.Like in Figures8 and 9, this p-value means that according to the t-test there is no significant difference between the areas of the target and background Voronoi cells.
Figure 11 :
109Figure 11: Example of a stimulus with N = 100, n = 9 and α = π 2 .The p-value associated to the t-test is p = 0.013, which indicates, according to the common threshold p min = 0.05, that there might be a significant difference between the areas of the target Voronoi cells and those of the background cells.It is indeed relatively easy to spot the alignment in the left hand image, and in the central image.
1 I = I r 2 d min = d min r 3 d marg = dmarg r 4 S 8 I
110← 1 r • S // Initialize I according to Equation (12), as illustrated in Figure 5(a) 5 I ← f alse(I , I ) 6 for x = d marg + 1 to I − d marg do 7 for y = d marg + 1 to I − d marg do (x , y ) ← true 9 end end // Second step of the initialization: turn to false the discs around the aligned elements, as illustrated in Figure 5(b) D ← structuralElement(disk, d min ) pool ← f alse(I , I ) pool(S ) ← true// Set to true the points in pool with the coordinates contained in S pool ← dilation(pool, D)// Dilation of the aligned elements I ← I and ¬ pool// Update I according to Equation (13) A ← {(x , y ) ∈ [1, I ] 2 , I (x , y ) = true}// Authorized region as defined by Equation (11) // Start the loop to place background elements, as illustrated in Figure 5(c), (d) and (e) placed ← #S// Initialize the number of already placed elements to the number of aligned elements that could be placed B ← ∅// Initialize the set of discrete background points while placed < N and A = ∅ do newP t ← rand(A)// Choose randomly an element from the authorized region B ← B ∪ newP t// Add the new element to the set of discrete background points pool ← f alse(I , I ) pool(newP t) ← true pool ← dilation(pool, D)// Dilation of the placed elements I ← I and ¬ pool// Update I according to Equation (13) placed ← placed + 1 A ← {(x , y ) ∈ [1, I ] 2 , I (x , y ) = true}// Authorized region as defined by Equation (11) end // Transform the discrete coordinates of background points back to non-integer coordinates B ← ∅ for p ∈ B do p ← (p − 1)r + r × rand([0, 1] 2 ) B ← B ∪ p end P ← S ∪ B return P
Figure 12 :Figure 13 :
111Figure 12: (a) On this array of 100 Gabor patches, we represent the associated graph γ (the orientations of the edges were omitted).In this graph, most of the points are linked to their 6 nearest neighbors, except when a neighbor is too remote, as it often happens for elements that are close to the image border.For a point x ∈ x (circled in white in (a)), a chain (x, y) is started for each y ∈ N γ (x) in (b), and expanded in (c) into the most rectilinear possible chain.Picture (c) shows the result after 3 iterations of the expansion process.(d) Given two neighbors x and y, we look for the neighbor z of y that minimizes the absolute angle between − → xy and − → yz.(e)-(f) The variables the algorithm measures when analyzing a chain containing n = 4 points.
Figure 15 :Figure 16 :Figure 17 : 14 Figure 18 : 21 Figure 19 :
112Figure 15: Example of detection in a stimulus composed of N = 200 patches, with n = 9 elements affected by a jitter α = π 2 .In general the algorithm does not detect the target alignment when it is perceptually hard to distinguish from the background.
1 p 1 ← 8 p 1 ← x i k− 1 9p 2 ← x i k p 3 ← 2 2
113x i 1 2 p 2 ← x i 2 3 p n−1 ← x i n−1 4 p n ← x n 5 ω 1 ← |angularError(p 1 , p 2 , θ i 1 )| 6 ω n ← |angularError(p n−1 , p n , θ in )| 7 for k = 2 to n − 1 do x i k+1 α L ← |angularError(p 1 , p 2 , θ i k )| α R ← |angularError(p 2 , p 3 , θ i k )| ω k ← max(α iL , α iR ) end ω * ← max{ω 1 , ω 2 , . . ., ω n } N T ← 6 × N × √ N // (Equation (23))p ← πω * × F (ω * ) n−2 // (Equation (24) and (25))
π 2 .
114Then, as the orientation goes still clockwise to the orientation D, the ω decreases gradually to angle π 2 − ϕ 2 , which is the angle of the bisector of lines L and R. Since the orientation of the Gabor element is uniformly distributed, the values for ω are equiprobable in [ ϕ 2 , π 2 − ϕ 2 ], and so are the values in [ π 2 − ϕ 2 , π 2 ].The probability density function for ω, given a fixed ϕ can therefore be written p(ω|ϕ) = a1 [ ϕ 2 , π 2 − ϕ 2 ) (ω) + b1 [ π 2 − ϕ 2 , π 2 ] (ω).
Figure 20 : 2 Figure 21 :
115Figure 20: For a fixed ϕ, depending on the orientation of the Gabor element, the angle ω = max(α L , α R ) is equal to α L or α R .Here we represent the different cases according to the orientation of the Gabor element.
116Function angularError(p 1 , p 2 , θ). p 1 and p 2 are two points in R 2 whose abscissa and ordinates are noted p i .xand p i .y;θ is an angle in [0, 2π).// First compute the orientation of line (p 1 p 2 ), noted θ 12 , in (− π 2 , π 2 ] 1 if p 1 .x= p 2 .xthen 2 θ 12 ← arctan p 1 .y−p 2 .yp 1 .x−p 2 .x∆ ang ← arctan(tan(θ 12 − θ)) // With the convention: tan(± π 2 ) = ±∞ and arctan(±∞) = ± π
117nf a ← N T • p // (eq 26) return nf a
참고문헌 25건
- Organization in vision: Essays on gestalt perception 1979
- Perceptual Organization in Vision 2002 10.1002/0471214426.pas0105
- Vision Science: Photons to Phenomenology 1999
- Component processes in contour integration: A direct comparison between snakes and ladders in a detection and a shape discrimination task Vision Research · Elsevier BV · 2013 10.1016/j.visres.2013.09.003
- The role of vertical mirror symmetry in visualshape detection Journal of Vision · Association for Research in Vision and Ophthalmology · 2009 10.1167/9.12.11
- Untersuchungen zur Lehre von der Gestalt. II Psychological Research · Springer Science+Business Media · 1923 10.1007/bf00410640
- The construction of perceptual grouping displays using GERT Behavior Research Methods · Springer Science+Business Media · 2011 10.3758/s13428-011-0167-8
- Integration of contour and surface information in shape detection Vision Research · Elsevier BV · 2010 10.1016/j.visres.2010.11.005
- Peripheral Contour Grouping and Saccade Targeting: The Role of Mirror Symmetry Symmetry · Multidisciplinary Digital Publishing Institute · 2014 10.3390/sym6010001
- A century of Gestalt psychology in visual perception: II. Conceptual and theoretical foundations. Psychological Bulletin · American Psychological Association · 2012 10.1037/a0029334
- A closed curve is much more than an incomplete one: effect of closure in figure-ground segmentation. Proceedings of the National Academy of Sciences · National Academy of Sciences · 1993 10.1073/pnas.90.16.7495
- Contour integration by the human visual system: Evidence for a local “association field” Vision Research · Elsevier BV · 1993 10.1016/0042-6989(93)90156-q
- The influence of orientation jitter and motion on contour saliency and object identification Vision Research · Elsevier BV · 2009 10.1016/j.visres.2009.08.002
- Grouping local orientation and direction signals to extract spatial contours: Empirical tests of “association field” models of contour integration Vision Research · Elsevier BV · 2005 10.1016/j.visres.2005.04.002
- Some informational aspects of visual perception. Psychological Review · American Psychological Association · 1954 10.1037/h0054663
- A century of Gestalt psychology in visual perception: I. Perceptual grouping and figure–ground organization. Psychological Bulletin · American Psychological Association · 2012 10.1037/a0029333
- LSD: a Line Segment Detector Image Processing On Line · Image Processing On Line · 2012 10.5201/ipol.2012.gjmr-lsd
- LSD: A Fast Line Segment Detector with a False Detection Control IEEE Transactions on Pattern Analysis and Machine Intelligence · IEEE Computer Society · 2009 10.1109/tpami.2008.300
- Measuring the visual salience of alignments by their non-accidentalness Vision Research · Elsevier BV · 2015 10.1016/j.visres.2015.08.014
- From Gestalt Theory to Image Analysis Interdisciplinary applied mathematics · Springer Nature · 2007 10.1007/978-0-387-74378-3
- Perceptual Organization and Visual Recognition Kluwer international series in engineering and computer science · Springer Nature · 1985 10.1007/978-1-4613-2551-2
- A source book of Gestalt psychology. Kegan Paul, Trench, Trubner & Company eBooks · Kegan Paul, Trench, Trubner & Company · 1938 10.1037/11496-000
- Human and Machine Vision Elsevier eBooks · Elsevier BV · 1983 10.1016/c2013-0-10347-9
- What is perceptual organization for International Joint Conference on Artificial Intelligence · 1983
- Quantifying density cues in grouping displays Vision Research · Elsevier BV · 2015 10.1016/j.visres.2015.06.004