Top Banner
Pictorial Query by Example PQBE Vida Movahedi Mar. 2007
24

Pictorial Query by Example PQBE Vida Movahedi Mar. 2007.

Apr 01, 2015

Download

Documents

Kaley Wheeler
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Pictorial Query by Example PQBE Vida Movahedi Mar. 2007.

Pictorial Query by ExamplePQBE

Vida Movahedi

Mar. 2007

Page 2: 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

Page 3: Pictorial Query by Example PQBE Vida Movahedi Mar. 2007.

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 Vida Movahedi Mar. 2007.

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 Vida Movahedi Mar. 2007.

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 Vida Movahedi Mar. 2007.

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 Vida Movahedi Mar. 2007.

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 Vida Movahedi Mar. 2007.

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 Vida Movahedi Mar. 2007.

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 Vida Movahedi Mar. 2007.

Example: Query 2

{})(

)}(),(,|{)(

IC

sCYXNorthEastYXIO

Page 11: Pictorial Query by Example PQBE Vida Movahedi Mar. 2007.

Example: Query 3 & 4

Page 12: Pictorial Query by Example PQBE Vida Movahedi Mar. 2007.

Example: Queries 5-7

Page 13: Pictorial Query by Example PQBE Vida Movahedi Mar. 2007.

Querying object configurations

)},(),,(

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

))}(),(

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

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

YZNEYWRN

ZWNWYXNWZXRWWXSWIC

JCYZNE

JCYWRNJCZWNWJCYXNW

JCZXRWJCWXSWJZWYXIO

Page 14: Pictorial Query by Example PQBE Vida Movahedi Mar. 2007.

Querying relations between objects

Page 15: Pictorial Query by Example PQBE Vida Movahedi Mar. 2007.

Union, Intersection, Join

Page 16: Pictorial Query by Example PQBE Vida Movahedi Mar. 2007.

Queries with multiple images

Page 17: Pictorial Query by Example PQBE Vida Movahedi Mar. 2007.

Queries with image retrieval

Page 18: Pictorial Query by Example PQBE Vida Movahedi Mar. 2007.

Update Operations

• P: printing character Select

• R: removing character Delete

• I: inserting character Insert

Page 19: Pictorial Query by Example PQBE Vida Movahedi Mar. 2007.

Application: Geographical Queries

Maps of cities in Central Europe

Symbolic Image

A sample query

Page 20: Pictorial Query by Example PQBE Vida Movahedi Mar. 2007.

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 Vida Movahedi Mar. 2007.

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 Vida Movahedi Mar. 2007.

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 Vida Movahedi Mar. 2007.

Construction of Symbolic Arrays

Page 24: Pictorial Query by Example PQBE Vida Movahedi Mar. 2007.

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.