pictorial query by example pqbe

24
Pictorial Query by Example PQBE Vida Movahedi Mar. 2007

Upload: nevin

Post on 13-Jan-2016

25 views

Category:

Documents


0 download

DESCRIPTION

Pictorial Query by Example PQBE. Vida Movahedi Mar. 2007. Contents. Symbolic Images Direction Relations PQBE Implementation of queries using skeleton images Sample application Construction of Symbolic Images. Symbolic Image. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Pictorial Query by Example PQBE

Pictorial Query by ExamplePQBE

Vida Movahedi

Mar. 2007

Page 2: Pictorial Query by Example PQBE

Contents

• Symbolic Images

• Direction Relations

• PQBE

• Implementation of queries using skeleton images

• Sample application

• Construction of Symbolic Images

Page 3: Pictorial Query by Example PQBE

Symbolic Image

• Symbolic image: is an array representing a set of objects and a set of direction relations among them

• Used in – Context-based retrieval in image databases– Spatial reasoning– Path planning– Image similarity retrieval

Page 4: Pictorial Query by Example PQBE

Direction Relations

• Primitive Direction relations:– {NorthWest, RestrictedNorth, NorthEast,RestrictedWest, SamePosition,

RestrictedEast, SouthWest, RestrictedSouth, SouthEast}

• Y: reference object• Direction relation of primary object • All primitives are transitive, SamePosition is

symmetric

Page 5: Pictorial Query by Example PQBE

Introducing PQBE

• Pictorial Query-by-example– Generalizes from example given by user– Uses skeleton images (which are symbolic

images) as queries– Ability to express negation, union,

intersection, join, etc

Page 6: Pictorial Query by Example PQBE

Description by Sets

• O(I): objects of image I• C(I): primitive direction relations

(constraints) between all pairs of objects in image I

• Example:• O(u)={O, P, Q}• C(u)={RestrictedEast(Q,O),SouthWest(O,P),

RestrictedNorth(P,Q)} • Note SamePosition and converse relations

not included for simplicity

u

Page 7: Pictorial Query by Example PQBE

Query

Queries with one skeleton image

_: variables (for objects/ images) are precede by ‘_’

P: printing character, when before an object variable/constant causes its value to be retrieved and displayed

Database

Image Constant

Page 8: Pictorial Query by Example PQBE

Query

• A symbolic image I is a subimage of J iff O(I)O(J) & C(I)C(J)

• Result of a query: set of all symbolic (sub)images that satisfy the spatial conditions imposed by sets O and C of skeleton images

• Assumptions: closed world, domain closure, unique name

Page 9: Pictorial Query by Example PQBE

Example: Query 1

Retrieve the subimages of s that contain an object X where X is NorthEast of B in s.

{})(

)}(),()(|{)(

IC

sCBXNorthEastsOXXIO

Page 10: Pictorial Query by Example PQBE

Example: Query 2

{})(

)}(),(,|{)(

IC

sCYXNorthEastYXIO

Page 11: Pictorial Query by Example PQBE

Example: Query 3 & 4

Page 12: Pictorial Query by Example PQBE

Example: Queries 5-7

Page 13: Pictorial Query by Example PQBE

Querying object configurations

)},(),,(

),,(),,(),,(),,({)(

))}(),(

)(),()(),()(),(

)(),()(),((|,,,{)(

YZNEYWRN

ZWNWYXNWZXRWWXSWIC

JCYZNE

JCYWRNJCZWNWJCYXNW

JCZXRWJCWXSWJZWYXIO

Page 14: Pictorial Query by Example PQBE

Querying relations between objects

Page 15: Pictorial Query by Example PQBE

Union, Intersection, Join

Page 16: Pictorial Query by Example PQBE

Queries with multiple images

Page 17: Pictorial Query by Example PQBE

Queries with image retrieval

Page 18: Pictorial Query by Example PQBE

Update Operations

• P: printing character Select

• R: removing character Delete

• I: inserting character Insert

Page 19: Pictorial Query by Example PQBE

Application: Geographical Queries

Maps of cities in Central Europe

Symbolic Image

A sample query

Page 20: Pictorial Query by Example PQBE

Spatial Representation

• preserve location in space

• without incorporating information such as shape, size, texture, or color of objects

• e.g. subway maps contain no information about the shapes of the stations

Page 21: Pictorial Query by Example PQBE

Different Areas, Different Goals

• Explanatory and predictive power– Computational models of Vision and Imagery

• Expressive power and inferential adequacy– Artificial Intelligence representation schemes

• Efficient manipulation of large amounts of geographic and geometric data– Spatial Databases

Page 22: Pictorial Query by Example PQBE

Construction of 2D-G string

Segmented Original Image

Cutting function: detects and records differences in object projections on the x and y axis

Page 23: Pictorial Query by Example PQBE

Construction of Symbolic Arrays

Page 24: Pictorial Query by Example PQBE

References

[1] Dimitris Papadias and Timos Sellis (1995), A Pictorial Query-By-Example Language, Journal of Visual Languages and Computing, vol. 6, pp. 53-72.

[2] Dimitris Papadias and Timos Sellis (1994), Qualitative Representation of Spatial Knowledge in Two-Dimensional Space, Very Large Databases Journal, Special Issues on Spatial Databases, vol. 3, pp. 476-513.