Shape Descriptor using Polar Plot for Shape Recognition. Brijesh Pillai ECE Graduate Student, Clemson University [email protected]

Abstract :

er O ve T E d

C TE

D

This paper presents my work on computing shape models that are computationally fast and invariant to basic transformations like translation, scaling and rotation. In this paper, I propose shape detection using a feature called shape context. Shape context describes all boundary points of a shape with respect to any single boundary point. Thus it is descriptive of the shape of the object. Object recognition can be achieved by matching this feature with a priori knowledge of the shape context of the boundary points of the object. Experimental results are promising on silhouette images. They show good results even during occlusion besides giving details about where the occlusion has occurred on the shape. Keywords:

PR

Shape descriptor, shape context, polar plot, shape recognition, object recognition.

C O PY

R

ht s

Object recognition is one of the common problems featured in most computer vision applications. An object recognition system finds objects in the real world from an image of the world, using object models which are known a priori. Multiple visual cues like shape, color, texture are used to describe shapes. My motivation was to develop a shape detection scheme that can be very fast to assist vision systems on robot excavators to detect objects of interest based on its shape.

specify since humans may perceive two shapes to be similar despite variation in size, orientation and boundary. As an example, bananas come in different shapes and sizes. Often the silhouette of a banana obtained after preprocessing has same visual form but different boundary structure.

re s

IG Al H lr T ig S

1. Introduction

My work aims to develop a simple and fast method of object recognition. This paper looks into developing a shape descriptor for a sampled boundary point of any shape. Quite different and novel, my idea of shape context is derived from shape context work done in Berkeley by Serge Belongie, Jitendra Malik and Jan Puzicha.[1] The main idea is to develop a computationally inexpensive and transformation invariant measure of a shape boundary that can be used in shape recognition. Shape is an important cue as it captures a prominent element of an object. However, the description of a shape is difficult to

Shape contexts describe a distribution of all boundary points with respect to one point on the boundary. Belongie et al. [1] have introduced the shape context descriptor, which characterizes a particular point location on the shape. The descriptor computes the histogram of relative polar co-ordinates of any single boundary point. Shape contexts as defined by Belongie et al. [1] are only invariant to translation as all measures are with respect to a point on the boundary. This paper looks into a modified shape context that is invariant to scaling and rotation. Since it is a very rich descriptor, results have shown it to be robust against partially occlusion. Later, the paper also gives an insight into the existing graph matching technique and how shape contexts can be applied in an object based image retrieval scheme.

1.1 Previous work Most approaches to shape matching, find a transformation that gives a factor of dissimilarity between two shapes. The extent of this dissimilarity decides whether we have a match.

D

The dark cells indicate greater density of boundary points in the particular cell. Thus it also indicates the relative distribution of the boundary points with respect to the particular point.

ht s

Shape context is a novel approach in shape descriptor. They are simple to compute yet are rich descriptors of the shape boundary.

re s

IG Al H lr T ig S

PR

PCA was successfully used for faces to create a dimensionally reduced mean shape that was used for matching shapes. Another approach to shape matching was computing skeletal framework of the object that is used as a descriptor for matching.

The shape context for the sample point ◊ is as shown below.

C TE

In eigenvector or modal matching based approaches, sample points are transformed into a mass-spring damper equation and the vibrations are used to estimate matching.

Consider the shape of the alphabet ‘A’ shown in fig.(a). A log polar histogram bin as shown in fig.(b) is overlaid on any sampled boundary point. Belongie et al. have used 12 bins for log r and 5 bins for angle θ.

er O ve T E d

People have used various properties like curvature, contour to describe shape boundaries. Shape matching has also been implemented using various feature-based and brightness based methods. Feature based methods are often used for silhouette images. The feature being characteristic of the object is used in content based matching approaches.

R

1.2 Shape Contexts

C O PY

Belongie et al. [1] introduced the idea of shape contexts. In their seminal work, they have defined a descriptor for a boundary as a function of other boundary points. He proposes a log-polar plot of the boundary of the shape as viewed from any arbitrary boundary value. Histogram of a log polar plot of the shape boundary gives the shape context for that particular boundary point. Corresponding points on two similar shapes are supposed to have same shape context that facilities shape recognition. Belongie et al. reduce it to a problem of bipartite graph matching.

Correspondences between two shape contexts are found using bipartite graph matching as shown alongside, the cost of chi square distance between the histogram is minimized. Their work showed remarkable results involving character recognition using gimpy images. It also had an extensive testing for silhouette images from the COIL dataset[5].

2. Modified Shape Contexts Shape contexts defined by Belongie are applied to images after aligning transforms. The shape descriptor presented in this paper computes the histograms such that they are invariant to simple transforms like scaling, rotation and translation. My further work will try to normalize the histograms for all affine transforms and extend shape contexts to 3D shapes.

Modified shape context is based on the idea of computing rich descriptors for fewer boundary points.

D

C TE

Now, to compute the histogra m we count the number of boundary points within each sector or bin to form the shape context. Thus the shape context is a matrix of mxn elements where m and n are the radial and angular divisions of the histogram.

Shape

R

ht s

Any image is preprocessed to remove noise. Edge Detection and segmentation are used specific to the image to obtain a clear silhouette boundary of the object. The boundary points are sampled to n points.

re s

Modified

IG Al H lr T ig S

3. Computing Contexts.

Log polar histograms as shown in fig(b) are overlaid on the shape to calculate the shape context.

PR

Shape contexts are computed along all boundary points of a shape model. Later during matching any boundary point on the candidate image is chosen at random. The shape context of that boundary value is matched with the database of shape contexts. It gives a measure of dissimilarity that decides whether the candidate object is same as that in the database.

These r and θ form the polar co-ordinates of the boundary point.

er O ve T E d

Present implementation of shape matching using Hungarian method of weighted bipartite graph matching works with a complexity of O(n3). Modified Shape Context aims to use computationally faster methods of matching. Simple correlation based matching yields satisfactory results on silhouette images. Besides, it also gives an indication of where occlusion has occurred when matching shape with occlusion.

C O PY

A shape is represented by discrete set of sampled boundary points. Let B be the set of sampled boundary points. Select any point b1. Compute distance of each boundary point in set B from point b1. Normalize this distance by a factor λ. λ being the maximum of distance between any two points in set B. Compute polar co-ordinates r and θ for all the boundary points as shown. The center of mass of any shape is invariant to scaling, rotation or translation. Hence we compute the angle with respect to line joining the point b1 and the center as the reference 0o.

The figure shows shape context histogram for 10 radial divisions and 16 angular divisions. The darker cells indicate greater intensity of boundary points with that bin. For example, in the above context most

boundary points are distributed between radial belt of 5 to 9 divisions and angular belt of 9 to 14 divisions (i.e. approx 200 o to 310 o).

of two histograms. Calculate ∆ as the number of bins in the histograms than have dissimilarity more than an error threshold ε. The shape recognition has a match at permitted minima of ∆.

4. Invariance and Occlusion

C TE

er O ve T E d

While searching for the similar shape context, it is not necessary to search all values sequential. A faster approach to implement a variation to the binary search as the measure of dissimilarity can be used to predict the boundary value with a greater chance of success. As in the following image

re s

ht s

IG Al H lr T ig S

PR

The idea of this shape descriptor itself is translation invariant as we compute values relative to a point on the boundary itself. It is invariant to rotation as the angle is computed with respect to an axis defined by the point and the center of mass of the shape. Since the center of mass is invariant to rotation, the shape context is also rotation invariant. The radial distance for the polar histogram bins are normalized by λ, which is the maximum distance between any two sample points on the boundary. Shape contexts also take into consideration occlusion or partial view of the shape. Since occluded shapes will have shape context with difference only in certain bins, it can be accounted during matching.

D

During applications of shape recognition often the descriptor has to be invariant to scaling, rotation, translation of the object to facilitate accurate and fast matching.

5. Object recognition using Shape Contexts

C O PY

R

Object recognition involves assigning correct labels to regions or a set of regions, in the image given an image containing one or more objects of interest and a set of labels corresponding to a set of models known to the system. Object recognition using Shape Contexts can be categorized in three steps as follows. 1. Building an offline database of shape contexts of all boundary points. 2. Obtain boundary points of the candidate object and compute shape context of any one point. 3. Match the shape context with the database to calculate a measure of dissimilarity. My implementation has approached the matching problem as a simple correlation

Shape contexts calculated for two diagonally opposite boundary points. Since the object is symmetric similar pattern on the other side of the histogram.

Shape contexts of two diagonally opposite points are similar patterns but in opposite positions on the axis. The dissimilarity here is high; indicating the chance of a match is far away from the current boundary point. This helps to skip number of boundary points during context matching.

6. Test results

7. Conclusion

Present test results are based on a small sample.

Shape context can be improved to a really efficient shape descriptor that can be effectively used with graph matching for object recognition.

C TE

D

Present implementation gives a dissimilarity map. Further I propose to work on implementing effective graph matching algorithms and develop a query based approach to test robustness of shape contexts.

References: [1] S. Belongie, J. Malik and J. Puzicha.

PR

Column 1 shows the database object. Column 2 shows the candidate object. Column 3 shows the dissimilarity plot. Observe that for first two cases the min dissimilarity is of the order of 1000, whereas the third case shows a min dissimilarity of 50 at about the 30th boundary point.

er O ve T E d

Sample code, images and test results for this project will be temporarily available at http://people.clemson.edu/~bpillai/project.zip

re s

Shape matching and object recognition using shape contexts. IEEE Trans. Pattern Analysis and Machine Intell.¸24(4):509-522, April 2002.

[2]

A. Thayananthan, and Stenger, B. and Torr, P.H.S. and Cipolla R. Shape context and chamfer matching in cluttered scenes. CVPR03. 2003

C O PY

R

ht s

IG Al H lr T ig S

A similar test was performed with the following images to test invariance under occlusion, scaling, rotation and translation.

Column 1 shows the database object. Column 2 shows the candidate object. Column 3 shows the dissimilarity plot. The first case shows an occluded image; still the dissimilarity at the corresponding matching point is relatively small. The second case is an example of rotation. The corresponding matching boundary is obtained as the minima in the dissimilarity map. Rotation has made the boundary point shift, which is also seen in the shift in the dissimilarity map. The third case has the object rotated, scaled and translated. The dissimilarity now observed is higher of the order of 500 however, a clear minima indicates a possible match.

[3]

Andrew D.J. Cross and Edwin R. Hancock Graph Matching With a Dual-Step EM Algorithm.

[4] Peter Schwer Shape Context in Clutter University of California San Diego, CSE Graduate Student, Project Report

[5] COIL data set can be found at http://www1.cs.columbia.edu/CAVE/research/so ftlib/coil-100.html [6] Wooi-Boon Goh and Kai-Yun Chan A Shape Descriptor for Shapes with Boundary Noise and Texture BMVC2003 June 2003

Shape Descriptor using Polar Plot for Shape ... - Clemson University

Experimental results are promising on silhouette images. ... image of the world, using object models .... The center of mass of any shape is .... ftlib/coil-100.html.

186KB Sizes 0 Downloads 257 Views

Recommend Documents

Regularized Active Shape Model for Shape Alignment
locating a landmark. ai equals to 0 implies that classifier can perfectly predict shape's boundary; while ai equals to 1 means classifier fails to ..... asm/index.html.

Shape discovering using tactile guidance
be used to teach simple geometric shapes to visually impaired peo- ple. The idea is to ... on the braille display, or by using a tactile codification based on the location of the ... want to provide a way to explore a shape, not by picturing it onto

Regularized Active Shape Model for Shape Alignment
PCA is still unsmooth when the shape has a large variation compared with the mean ...... Sparse Data. 3D. Data Processing, Visualization and Transmission, 2004.

Photoshop With-Shape PhotoShop
Page 1. Photoshop. With-Shape. PhotoShop. Page 2.

Shape Detective.pdf
There was a problem previewing this document. Retrying... Download. Connect more apps... Try one of the apps below to open or edit this item. Shape ...

a design teaching method using shape grammars
Computer-aided design in architectural courses has also had an influence on ... Civil Engineering, Architecture and Urban Design at the State University of Campinas, ... Frank Lloyd Wright´s Prairie House Grammar (Koning and Eizenberg, 1981) .... Cr

NON-RIGID 3D SHAPE RETRIEVAL USING ...
rapid development of 3D shape retrieval systems that, given a query object .... methods for the application of non-rigid 3D shape retrieval. Moreover, the new ...

Visual Similarity based 3D Shape Retrieval Using Bag ...
nience and intuition), we call it “CM-BOF” algorithm in this paper. ... translate the center of its mass to the origin and ... given unit geodesic sphere whose mass center is also ...... Advanced in Computer Graphics and Computer Vision, pp. 44â€

Shape Hunt.pdf
Page 1 of 1. Name. Shape Hunt. Shape Pentagon Rectangle Triangle Square Rhombus Circle Hexagon. Color Yello\w Red Green Orange Blue Purple Pink. How. many? Color and count the shapes. Page 1 of 1. Shape Hunt.pdf. Shape Hunt.pdf. Open. Extract. Open w

Shape Song.pdf
Sign in. Page. 1. /. 1. Loading… Page 1 of 1. Page 1 of 1. Main menu. Displaying Shape Song.pdf.

Interpolated Eigenfunctions for Volumetric Shape ...
cases are volumetric shape processing tools that are fast and robust to changes in ..... For ease of visualization these dis- tributions are shown on ..... tool for harmonic analysis and structure definition of data: Diffusion maps. PNAS 102(21) ...

My Shape Book.pdf
There was a problem previewing this document. Retrying... Download. Connect more apps... Try one of the apps below to open or edit this item. My Shape Book.

Shape Modeling by Sketching using Convolution ...
challenge for the modeling software. One of the simplest and .... August 1999, pages 409-416. [7] O. Karpenko, J. F. Hughes, and R. Raskar, “Free-form.

Modeling smooth shape using subdivision on ...
by designing control meshes, avoiding constraint management like. NURBS patches .... certain smooth energy concerning differential measurements. Later ...

NON-RIGID 3D SHAPE RETRIEVAL USING ... - Semantic Scholar
2National Institute of Standards and Technology, Gaithersburg, USA. 3Cardiff University ... cal form for a 3D model based on MDS and PCA. 2. Local Feature ...

3D shape estimation and texture generation using ...
plausible depth illusions via local foreshortening of surface textures rendered from a stretched spatial frequency envelope. Texture foreshortening cues were exploited by a multi-stage image analysis method that revealed local dominant orientation, d

Interpolated Eigenfunctions for Volumetric Shape ...
nel Signature (iHKS) and examine its performance for the task of ... Desirable in such cases are volumetric shape processing tools that are fast ... properties and applications. ...... testing the proposed approach for isometry invariance.

Efficient 3D shape matching and retrieval using a ...
software development which has greatly facilitated 3D model acquisition ..... tion (similar to PCA), is the use of singular value decomposi- tion (SVD) [28]. In [22 ...

a design teaching method using shape grammars
Key-words: Shape Grammar, Design Method, architectural design, design ... participatory process, with problem analysis and solution justification by students.

Shape Recovery using Stochastic Heat Flow
Shape Recovery using Stochastic Heat Flow. Vinay P. Namboodiri and Subhasis Chaudhuri. Department of ... 8. Results – Hair data set (proposed method) ...

Earth's Shape Lab.pdf
Retrying... Download. Connect more apps... Try one of the apps below to open or edit this item. Earth's Shape Lab.pdf. Earth's Shape Lab.pdf. Open. Extract.