SlideShare a Scribd company logo
Course: Machine Vision
Sample Applications
Session 13
D5627 – I Gede Putra Kusuma Negara, B.Eng., PhD
Outline
• Content Based Image Retrieval
• Face Recognition
Content Based Image Retrieval
Content-based Image Retrieval
(CBIR)
Searching a large database for images that match a query:
• What kinds of databases?
• What kinds of queries?
• What constitutes a match?
• How do we make such searches efficient?
Applications
• Art Collections
– e.g. Fine Arts Museum of San Francisco
• Medical Image Databases
– CT, MRI, Ultrasound, The Visible Human
• Scientific Databases
– e.g. Earth Sciences
• General Image Collections for Licensing
– Corbis, Getty Images
• The World Wide Web
What is a Query?
An image you already have
– How did you get it?
A rough sketch you draw
– How might you draw it?
A symbolic description of what you want
– What’s an example?
Example: IBM QBIC
• IBM QBIC (Query by Image
Content)
• The first commercial system
• Uses or has-used color
percentages, color layout,
texture, shape, location, and
keywords.
Example: Berkeley Blobworld
• Images are segmented on
color plus texture
• User selects a region of the
query image
• System returns images with
similar regions
• Works really well for tigers
and zebras
Example: Like.com
• Small company
• Search for products similar to a
selected one
• Purses, shoes, sunglasses,
jewelry…etc.
Image Features/
Distance Measures
Image Database
Query Image
Distance Measure
Retrieved Images
Image Feature
Extraction
User
Feature Space
Images
Features
• Color
histograms, gridded layout, wavelets
• Texture
Laws, Gabor filters, LBP, polarity
• Shape
What preprocessing must occur to get shape?
• Objects and their Relationships
This is the most powerful, but you have to be able to recognize the
objects!
QBIC Histogram Similarity
• h(I) is a K-bin histogram of a database image
• h(Q) is a K-bin histogram of the query image
• The QBIC color histogram distance is:
• A is a K x K similarity matrix
dhist =(I,Q)=(h(I)-h(Q))A(h(I)-h(Q))
R G B Y C V
1 0 0 .5 0 .5
0 1 0 .5 .5 0
0 0 1
1
1
1
R
G
B
Y
C
V
?
?
QBIC Histogram Similarity
Query
image
Retrieved
images
Gridded Color
• Gridded color distance is the sum of the color distances
• in each of the corresponding grid squares.
What color distance would you use for a pair of grid squares?
1 1
2 2
3 3
4 4
QBIC Color Layout
Search by Texture
• Pick and Click (user clicks on a pixel and system
– retrieves images that have in them a region with
– similar texture to the region surrounding it
• Gridded (just like gridded color, but use texture)
• Histogram-based (e.g. compare the LBP histograms)
Laws Texture
Query image
Retrieval result using color histogram
and Laws texture feature
Shape Distances
• Shape goes one step further than color and texture.
• It requires identification of regions to compare.
• There have been many shape similarity measures suggested for
pattern recognition that can be used to construct shape distance
measures.
Global Shape Properties:
Projection Matching
0
4
1
3
2
0
0 4 3 2 1 0
In projection matching, the horizontal and vertical
projections form a histogram.
Feature Vector
(0,4,1,3,2,0,0,4,3,2,1,0)
What are the weaknesses of this method? strengths?
Global Shape Properties:
Line-Angle Histograms
Is this feature invariant to starting point?
Is it invariant to size, translation, rotation?
Boundary Matching
• Fourier Descriptors
• Sides and Angles
• Elastic Matching
• The distance between query shape and image shape has
two components:
1. energy required to deform the query shape into one that best
matches the image shape
2. measure of how well the deformed query matches the image
Del Bimbo Elastic Shape
Matching
query retrieved images
Regions and Relationships
1. Segment the image into
regions
2. Find their properties and
interrelationships
3. Construct a graph
representation with
nodes for regions and
edges for spatial
relationships
4. Use graph matching to
compare images
Sky
Tiger Grass
Sky
inside
Image Image map
Object Detection:
Rowley’s Face Finder
1. Convert to gray scale
2. Normalize for lighting*
3. Histogram equalization
4. Apply neural net(s) trained
on 16K images
• What data is fed to the
classifier?
• 32 x 32 windows in a
pyramid structure
Fleck and Forsyth’s
Skin Detector
• The “Finding Naked People” Paper
• Algorithm:
• Look for LARGE areas that satisfy this to identify pornography.
1. Convert RGB to HIS
2. Use the intensity component to compute a texture map
texture = med2 ( | I - med1(I) | )
3. If a pixel falls into either of the following ranges, it’s a
potential skin pixel
texture < 5, 110 < hue < 150, 20 < saturation < 60
texture < 5, 130 < hue < 170, 30 < saturation < 130
Skin Detector
Input image Detected skin area
(in black)
Jacobs, Finkelstein, Salesin Method
for Image Retrieval (1995)
1. Use YIQ color space
2. Use Haar wavelets
3. 128 x 128 images yield
16,384 coefficients x 3
color channels
4. Truncate by keeping the
40-60 largest coefficients
(make the rest 0)
5. Quantize to 2 values (+1
for positive, -1 for
negative)
Andy Berman’s FIDS System
• Multiple distance
measures
• Boolean and linear
combinations
• Efficient indexing using
images as keys
Bare-Bones Triangle Inequality
Algorithm
Offline
1. Choose a small set of key images
2. Store distances from database
images to keys
Online (given query Q)
1. Compute the distance from Q to
each key
2. Obtain lower bounds on distances
to database images
3. Threshold or return all images in
order of lower bounds
Offline
1. Choose key images for each
measure*)
2. Store distances from database
images to keys for all measures
Online (given query Q)
1. Calculate lower bounds for each
measure
2. Combine to form lower bounds for
composite measures
3. Continue as in single measure
algorithm
*) with multiple distance measure
Face Recognition
Face Detection and Recognition
Detection Recognition “Sally”
History
• Early face recognition systems: based on features and
distances
Bledsoe (1966), Kanade (1973)
• Appearance-based models: eigenfaces
Sirovich & Kirby (1987), Turk & Pentland (1991)
• Real-time face detection with boosting
Viola & Jones (2001)
The space of all face images
• When viewed as vectors of pixel
values, face images are
extremely high-dimensional
• 100x100 image = 10,000
dimensions
• However, relatively few 10,000-
dimensional vectors correspond
to valid face images
• We want to effectively model the
subspace of face images
The space of all face images
• We want to construct a low-
dimensional linear subspace that
best explains the variation in the
set of face images
Principal Component Analysis
• Given: N data points x1, … ,xN in Rd
• We want to find a new set of features that are linear
combinations of original ones:
u(xi) = uT(xi – µ)
(µ: mean of data points)
• What unit vector u in Rd captures the most variance of the
data?
Principal Component Analysis
• Direction that maximizes the variance of the projected
data:
• Direction that maximizes the variance is the eigenvector
associated with the largest eigenvalue of Σ
var(u) =
1
N
uT
(xi -m)
i=1
N
å (uT
(xi -m))T
= uT
(xi -m)
i=1
N
å (xi -m)T
é
ë
ê
ù
û
úu
= uT
u
å
Projection of data point
Covariance matrix
Eigenfaces: Key idea
• Assume that most face images lie on
a low-dimensional subspace determined by the first k (k<d)
directions of maximum variance
• Use PCA to determine the vectors u1,…uk that span that
subspace:
x ≈ μ + w1u1 + w2u2 + … + wkuk
• Represent each face using its “face space” coordinates
(w1,…wk)
• Perform nearest-neighbor recognition in “face space”
Eigenfaces example
Training images x1,…,xN
Eigenfaces example
Top eigenvectors:
u1,…uk
Mean: μ
Eigenfaces example
Face x in “face space” coordinates:
Reconstruction:
= +
µ + w1u1 + w2u2 + w3u3 + w4u4 + …
^
x =
x [u1
T
(x -m),...,uk
T
(x -m)]
= w1,w2,...,wk
Summary: Recognition with
Eigenfaces
Process labeled training images:
• Find mean µ and covariance matrix Σ
• Find k principal components (eigenvectors of Σ) u1,…uk
• Project each training image xi onto subspace spanned by principal
components:
(wi1,…,wik) = (u1
T(xi – µ), … , uk
T(xi – µ))
Given novel image x:
• Project onto subspace:
(w1,…,wk) = (u1
T(x– µ), … , uk
T(x – µ))
• Optional: check reconstruction error x – x to determine whether
image is really a face
• Classify as closest training face in k-dimensional subspace
^
Acknowledgment
Some of slides in this PowerPoint presentation are adaptation from
various slides, many thanks to:
1. Linda Saphiro, Department of Computer Science and Engineering,
University of Washington
(http://homes.cs.washington.edu/~shapiro/)
2. Svetlana Lazebnik, Department of Computer Science, University of
Illinois at Urbana-Champaign (http://web.engr.illinois.edu/~slazebni/)
Thank You

More Related Content

What's hot

LN s11-machine vision-s2
LN s11-machine vision-s2LN s11-machine vision-s2
LN s11-machine vision-s2
Binus Online Learning
 
PPT s03-machine vision-s2
PPT s03-machine vision-s2PPT s03-machine vision-s2
PPT s03-machine vision-s2
Binus Online Learning
 
Various object detection and tracking methods
Various object detection and tracking methodsVarious object detection and tracking methods
Various object detection and tracking methods
sujeeshkumarj
 
Edge Detection and Segmentation
Edge Detection and SegmentationEdge Detection and Segmentation
Edge Detection and Segmentation
A B Shinde
 
Image segmentation
Image segmentationImage segmentation
Image segmentation
Md Shabir Alam
 
Image segmentation
Image segmentation Image segmentation
Image segmentation
Image segmentationImage segmentation
Image segmentation
Bulbul Agrawal
 
Video Segmentation
Video SegmentationVideo Segmentation
Video Segmentation
Smriti Jain
 
Image segmentation ajal
Image segmentation ajalImage segmentation ajal
Image segmentation ajal
AJAL A J
 
Image segmentation
Image segmentationImage segmentation
Image segmentationDeepak Kumar
 
Image segmentation
Image segmentationImage segmentation
Image segmentation
Gayan Sampath
 
Threshold Selection for Image segmentation
Threshold Selection for Image segmentationThreshold Selection for Image segmentation
Threshold Selection for Image segmentationParijat Sinha
 
Improvement of the Recognition Rate by Random Forest
Improvement of the Recognition Rate by Random ForestImprovement of the Recognition Rate by Random Forest
Improvement of the Recognition Rate by Random Forest
IJERA Editor
 
Improvement oh the recognition rate by random forest
Improvement oh the recognition rate by random forestImprovement oh the recognition rate by random forest
Improvement oh the recognition rate by random forest
Youssef Rachidi
 
Image segmentation
Image segmentationImage segmentation
Image segmentation
Maneesha Krishnan
 
Texture based feature extraction and object tracking
Texture based feature extraction and object trackingTexture based feature extraction and object tracking
Texture based feature extraction and object tracking
Priyanka Goswami
 
COM2304: Digital Image Fundamentals - I
COM2304: Digital Image Fundamentals - I COM2304: Digital Image Fundamentals - I
COM2304: Digital Image Fundamentals - I
Hemantha Kulathilake
 
Segmentation Techniques -II
Segmentation Techniques -IISegmentation Techniques -II
Segmentation Techniques -II
Hemantha Kulathilake
 
Feature detection and matching
Feature detection and matchingFeature detection and matching
Feature detection and matching
Kuppusamy P
 

What's hot (20)

LN s11-machine vision-s2
LN s11-machine vision-s2LN s11-machine vision-s2
LN s11-machine vision-s2
 
PPT s03-machine vision-s2
PPT s03-machine vision-s2PPT s03-machine vision-s2
PPT s03-machine vision-s2
 
Various object detection and tracking methods
Various object detection and tracking methodsVarious object detection and tracking methods
Various object detection and tracking methods
 
Im seg04
Im seg04Im seg04
Im seg04
 
Edge Detection and Segmentation
Edge Detection and SegmentationEdge Detection and Segmentation
Edge Detection and Segmentation
 
Image segmentation
Image segmentationImage segmentation
Image segmentation
 
Image segmentation
Image segmentation Image segmentation
Image segmentation
 
Image segmentation
Image segmentationImage segmentation
Image segmentation
 
Video Segmentation
Video SegmentationVideo Segmentation
Video Segmentation
 
Image segmentation ajal
Image segmentation ajalImage segmentation ajal
Image segmentation ajal
 
Image segmentation
Image segmentationImage segmentation
Image segmentation
 
Image segmentation
Image segmentationImage segmentation
Image segmentation
 
Threshold Selection for Image segmentation
Threshold Selection for Image segmentationThreshold Selection for Image segmentation
Threshold Selection for Image segmentation
 
Improvement of the Recognition Rate by Random Forest
Improvement of the Recognition Rate by Random ForestImprovement of the Recognition Rate by Random Forest
Improvement of the Recognition Rate by Random Forest
 
Improvement oh the recognition rate by random forest
Improvement oh the recognition rate by random forestImprovement oh the recognition rate by random forest
Improvement oh the recognition rate by random forest
 
Image segmentation
Image segmentationImage segmentation
Image segmentation
 
Texture based feature extraction and object tracking
Texture based feature extraction and object trackingTexture based feature extraction and object tracking
Texture based feature extraction and object tracking
 
COM2304: Digital Image Fundamentals - I
COM2304: Digital Image Fundamentals - I COM2304: Digital Image Fundamentals - I
COM2304: Digital Image Fundamentals - I
 
Segmentation Techniques -II
Segmentation Techniques -IISegmentation Techniques -II
Segmentation Techniques -II
 
Feature detection and matching
Feature detection and matchingFeature detection and matching
Feature detection and matching
 

Similar to PPT s12-machine vision-s2

CBIR_white.ppt
CBIR_white.pptCBIR_white.ppt
CBIR_white.ppt
Dr. Naushad Varish
 
Week06 bme429-cbir
Week06 bme429-cbirWeek06 bme429-cbir
Week06 bme429-cbirIkram Moalla
 
Content Based Image Retrieval
Content Based Image Retrieval Content Based Image Retrieval
Content Based Image Retrieval
Swati Chauhan
 
Ch14-Part4-ImageRetrieval.pdf
Ch14-Part4-ImageRetrieval.pdfCh14-Part4-ImageRetrieval.pdf
Ch14-Part4-ImageRetrieval.pdf
Abdullah Azzeh
 
Introduction to Binocular Stereo in Computer Vision
Introduction to Binocular Stereo in Computer VisionIntroduction to Binocular Stereo in Computer Vision
Introduction to Binocular Stereo in Computer Vision
othersk46
 
Evolving a Medical Image Similarity Search
Evolving a Medical Image Similarity SearchEvolving a Medical Image Similarity Search
Evolving a Medical Image Similarity Search
Sujit Pal
 
Dense Image Matching - Challenges and Potentials (Keynote 3D-ARCH 2015)
Dense Image Matching - Challenges and Potentials (Keynote 3D-ARCH 2015) Dense Image Matching - Challenges and Potentials (Keynote 3D-ARCH 2015)
Dense Image Matching - Challenges and Potentials (Keynote 3D-ARCH 2015)
Konrad Wenzel
 
IMAGE RETRIEVAL USING QUADRATIC DISTANCE BASED ON COLOR FEATURE AND PYRAMID S...
IMAGE RETRIEVAL USING QUADRATIC DISTANCE BASED ON COLOR FEATURE AND PYRAMID S...IMAGE RETRIEVAL USING QUADRATIC DISTANCE BASED ON COLOR FEATURE AND PYRAMID S...
IMAGE RETRIEVAL USING QUADRATIC DISTANCE BASED ON COLOR FEATURE AND PYRAMID S...
International Journal of Technical Research & Application
 
Image Segmentation from RGBD Images by 3D Point Cloud Attributes and High-Lev...
Image Segmentation from RGBD Images by 3D Point Cloud Attributes and High-Lev...Image Segmentation from RGBD Images by 3D Point Cloud Attributes and High-Lev...
Image Segmentation from RGBD Images by 3D Point Cloud Attributes and High-Lev...
CSCJournals
 
Towards Accurate Multi-person Pose Estimation in the Wild (My summery)
Towards Accurate Multi-person Pose Estimation in the Wild (My summery)Towards Accurate Multi-person Pose Estimation in the Wild (My summery)
Towards Accurate Multi-person Pose Estimation in the Wild (My summery)
Abdulrahman Kerim
 
ODSC India 2018: Topological space creation &amp; Clustering at BigData scale
ODSC India 2018: Topological space creation &amp; Clustering at BigData scaleODSC India 2018: Topological space creation &amp; Clustering at BigData scale
ODSC India 2018: Topological space creation &amp; Clustering at BigData scale
Kuldeep Jiwani
 
Content based image retrieval
Content based image retrievalContent based image retrieval
Content based image retrieval
rubaiyat11
 
Multilabel Image Retreval Using Hashing
Multilabel Image Retreval Using HashingMultilabel Image Retreval Using Hashing
Multilabel Image Retreval Using Hashing
Surbhi Bhosale
 
Lec3: Pre-Processing Medical Images
Lec3: Pre-Processing Medical ImagesLec3: Pre-Processing Medical Images
Lec3: Pre-Processing Medical Images
Ulaş Bağcı
 
MLIP - Chapter 6 - Generation, Super-Resolution, Style transfer
MLIP - Chapter 6 - Generation, Super-Resolution, Style transferMLIP - Chapter 6 - Generation, Super-Resolution, Style transfer
MLIP - Chapter 6 - Generation, Super-Resolution, Style transfer
Charles Deledalle
 
Multimedia searching
Multimedia searchingMultimedia searching
Multimedia searching
University PARIS-SUD
 
Recognition
RecognitionRecognition
Recognition
Neelam Soni
 

Similar to PPT s12-machine vision-s2 (20)

CBIR_white.ppt
CBIR_white.pptCBIR_white.ppt
CBIR_white.ppt
 
Week06 bme429-cbir
Week06 bme429-cbirWeek06 bme429-cbir
Week06 bme429-cbir
 
Content Based Image Retrieval
Content Based Image Retrieval Content Based Image Retrieval
Content Based Image Retrieval
 
Ch14-Part4-ImageRetrieval.pdf
Ch14-Part4-ImageRetrieval.pdfCh14-Part4-ImageRetrieval.pdf
Ch14-Part4-ImageRetrieval.pdf
 
Introduction to Binocular Stereo in Computer Vision
Introduction to Binocular Stereo in Computer VisionIntroduction to Binocular Stereo in Computer Vision
Introduction to Binocular Stereo in Computer Vision
 
Evolving a Medical Image Similarity Search
Evolving a Medical Image Similarity SearchEvolving a Medical Image Similarity Search
Evolving a Medical Image Similarity Search
 
Dense Image Matching - Challenges and Potentials (Keynote 3D-ARCH 2015)
Dense Image Matching - Challenges and Potentials (Keynote 3D-ARCH 2015) Dense Image Matching - Challenges and Potentials (Keynote 3D-ARCH 2015)
Dense Image Matching - Challenges and Potentials (Keynote 3D-ARCH 2015)
 
IMAGE RETRIEVAL USING QUADRATIC DISTANCE BASED ON COLOR FEATURE AND PYRAMID S...
IMAGE RETRIEVAL USING QUADRATIC DISTANCE BASED ON COLOR FEATURE AND PYRAMID S...IMAGE RETRIEVAL USING QUADRATIC DISTANCE BASED ON COLOR FEATURE AND PYRAMID S...
IMAGE RETRIEVAL USING QUADRATIC DISTANCE BASED ON COLOR FEATURE AND PYRAMID S...
 
Image Segmentation from RGBD Images by 3D Point Cloud Attributes and High-Lev...
Image Segmentation from RGBD Images by 3D Point Cloud Attributes and High-Lev...Image Segmentation from RGBD Images by 3D Point Cloud Attributes and High-Lev...
Image Segmentation from RGBD Images by 3D Point Cloud Attributes and High-Lev...
 
poster
posterposter
poster
 
Towards Accurate Multi-person Pose Estimation in the Wild (My summery)
Towards Accurate Multi-person Pose Estimation in the Wild (My summery)Towards Accurate Multi-person Pose Estimation in the Wild (My summery)
Towards Accurate Multi-person Pose Estimation in the Wild (My summery)
 
Poster rough draft
Poster rough draftPoster rough draft
Poster rough draft
 
ODSC India 2018: Topological space creation &amp; Clustering at BigData scale
ODSC India 2018: Topological space creation &amp; Clustering at BigData scaleODSC India 2018: Topological space creation &amp; Clustering at BigData scale
ODSC India 2018: Topological space creation &amp; Clustering at BigData scale
 
Av4301248253
Av4301248253Av4301248253
Av4301248253
 
Content based image retrieval
Content based image retrievalContent based image retrieval
Content based image retrieval
 
Multilabel Image Retreval Using Hashing
Multilabel Image Retreval Using HashingMultilabel Image Retreval Using Hashing
Multilabel Image Retreval Using Hashing
 
Lec3: Pre-Processing Medical Images
Lec3: Pre-Processing Medical ImagesLec3: Pre-Processing Medical Images
Lec3: Pre-Processing Medical Images
 
MLIP - Chapter 6 - Generation, Super-Resolution, Style transfer
MLIP - Chapter 6 - Generation, Super-Resolution, Style transferMLIP - Chapter 6 - Generation, Super-Resolution, Style transfer
MLIP - Chapter 6 - Generation, Super-Resolution, Style transfer
 
Multimedia searching
Multimedia searchingMultimedia searching
Multimedia searching
 
Recognition
RecognitionRecognition
Recognition
 

More from Binus Online Learning

LN s12-machine vision-s2
LN s12-machine vision-s2LN s12-machine vision-s2
LN s12-machine vision-s2
Binus Online Learning
 
LN s10-machine vision-s2
LN s10-machine vision-s2LN s10-machine vision-s2
LN s10-machine vision-s2
Binus Online Learning
 
LN s09-machine vision-s2
LN s09-machine vision-s2LN s09-machine vision-s2
LN s09-machine vision-s2
Binus Online Learning
 
LN s08-machine vision-s2
LN s08-machine vision-s2LN s08-machine vision-s2
LN s08-machine vision-s2
Binus Online Learning
 
LN s07-machine vision-s2
LN s07-machine vision-s2LN s07-machine vision-s2
LN s07-machine vision-s2
Binus Online Learning
 
LN s06-machine vision-s2
LN s06-machine vision-s2LN s06-machine vision-s2
LN s06-machine vision-s2
Binus Online Learning
 
LN s05-machine vision-s2
LN s05-machine vision-s2LN s05-machine vision-s2
LN s05-machine vision-s2
Binus Online Learning
 
LN s04-machine vision-s2
LN s04-machine vision-s2LN s04-machine vision-s2
LN s04-machine vision-s2
Binus Online Learning
 
LN s03-machine vision-s2
LN s03-machine vision-s2LN s03-machine vision-s2
LN s03-machine vision-s2
Binus Online Learning
 
LN s02-machine vision-s2
LN s02-machine vision-s2LN s02-machine vision-s2
LN s02-machine vision-s2
Binus Online Learning
 
LN s01-machine vision-s2
LN s01-machine vision-s2LN s01-machine vision-s2
LN s01-machine vision-s2
Binus Online Learning
 
PPT s09-machine vision-s2
PPT s09-machine vision-s2PPT s09-machine vision-s2
PPT s09-machine vision-s2
Binus Online Learning
 
PPT s05-machine vision-s2
PPT s05-machine vision-s2PPT s05-machine vision-s2
PPT s05-machine vision-s2
Binus Online Learning
 
LN sesi 2 delivering quality-1
LN sesi 2 delivering quality-1LN sesi 2 delivering quality-1
LN sesi 2 delivering quality-1
Binus Online Learning
 
PPT Sesi 2 FO the guest delivering quality-1
PPT Sesi 2 FO the guest delivering quality-1PPT Sesi 2 FO the guest delivering quality-1
PPT Sesi 2 FO the guest delivering quality-1
Binus Online Learning
 
PPT Sesi 3 FO the guest - delivering quality 2
PPT Sesi 3 FO the guest - delivering quality 2 PPT Sesi 3 FO the guest - delivering quality 2
PPT Sesi 3 FO the guest - delivering quality 2
Binus Online Learning
 
LN sesi 3 delivering quality-2
LN sesi 3 delivering quality-2LN sesi 3 delivering quality-2
LN sesi 3 delivering quality-2
Binus Online Learning
 
LN sesi 4 managing guest reservation-1
LN sesi 4 managing guest reservation-1LN sesi 4 managing guest reservation-1
LN sesi 4 managing guest reservation-1
Binus Online Learning
 
PPT Sesi 4 managing guest reservation-1
PPT Sesi 4 managing guest reservation-1 PPT Sesi 4 managing guest reservation-1
PPT Sesi 4 managing guest reservation-1
Binus Online Learning
 
LN sesi 5 managing guest reservation-2
LN sesi 5 managing guest reservation-2LN sesi 5 managing guest reservation-2
LN sesi 5 managing guest reservation-2
Binus Online Learning
 

More from Binus Online Learning (20)

LN s12-machine vision-s2
LN s12-machine vision-s2LN s12-machine vision-s2
LN s12-machine vision-s2
 
LN s10-machine vision-s2
LN s10-machine vision-s2LN s10-machine vision-s2
LN s10-machine vision-s2
 
LN s09-machine vision-s2
LN s09-machine vision-s2LN s09-machine vision-s2
LN s09-machine vision-s2
 
LN s08-machine vision-s2
LN s08-machine vision-s2LN s08-machine vision-s2
LN s08-machine vision-s2
 
LN s07-machine vision-s2
LN s07-machine vision-s2LN s07-machine vision-s2
LN s07-machine vision-s2
 
LN s06-machine vision-s2
LN s06-machine vision-s2LN s06-machine vision-s2
LN s06-machine vision-s2
 
LN s05-machine vision-s2
LN s05-machine vision-s2LN s05-machine vision-s2
LN s05-machine vision-s2
 
LN s04-machine vision-s2
LN s04-machine vision-s2LN s04-machine vision-s2
LN s04-machine vision-s2
 
LN s03-machine vision-s2
LN s03-machine vision-s2LN s03-machine vision-s2
LN s03-machine vision-s2
 
LN s02-machine vision-s2
LN s02-machine vision-s2LN s02-machine vision-s2
LN s02-machine vision-s2
 
LN s01-machine vision-s2
LN s01-machine vision-s2LN s01-machine vision-s2
LN s01-machine vision-s2
 
PPT s09-machine vision-s2
PPT s09-machine vision-s2PPT s09-machine vision-s2
PPT s09-machine vision-s2
 
PPT s05-machine vision-s2
PPT s05-machine vision-s2PPT s05-machine vision-s2
PPT s05-machine vision-s2
 
LN sesi 2 delivering quality-1
LN sesi 2 delivering quality-1LN sesi 2 delivering quality-1
LN sesi 2 delivering quality-1
 
PPT Sesi 2 FO the guest delivering quality-1
PPT Sesi 2 FO the guest delivering quality-1PPT Sesi 2 FO the guest delivering quality-1
PPT Sesi 2 FO the guest delivering quality-1
 
PPT Sesi 3 FO the guest - delivering quality 2
PPT Sesi 3 FO the guest - delivering quality 2 PPT Sesi 3 FO the guest - delivering quality 2
PPT Sesi 3 FO the guest - delivering quality 2
 
LN sesi 3 delivering quality-2
LN sesi 3 delivering quality-2LN sesi 3 delivering quality-2
LN sesi 3 delivering quality-2
 
LN sesi 4 managing guest reservation-1
LN sesi 4 managing guest reservation-1LN sesi 4 managing guest reservation-1
LN sesi 4 managing guest reservation-1
 
PPT Sesi 4 managing guest reservation-1
PPT Sesi 4 managing guest reservation-1 PPT Sesi 4 managing guest reservation-1
PPT Sesi 4 managing guest reservation-1
 
LN sesi 5 managing guest reservation-2
LN sesi 5 managing guest reservation-2LN sesi 5 managing guest reservation-2
LN sesi 5 managing guest reservation-2
 

Recently uploaded

Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
Kamal Acharya
 
ethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.pptethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.ppt
Jayaprasanna4
 
Democratizing Fuzzing at Scale by Abhishek Arya
Democratizing Fuzzing at Scale by Abhishek AryaDemocratizing Fuzzing at Scale by Abhishek Arya
Democratizing Fuzzing at Scale by Abhishek Arya
abh.arya
 
Planning Of Procurement o different goods and services
Planning Of Procurement o different goods and servicesPlanning Of Procurement o different goods and services
Planning Of Procurement o different goods and services
JoytuBarua2
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
VENKATESHvenky89705
 
WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234
AafreenAbuthahir2
 
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
bakpo1
 
The role of big data in decision making.
The role of big data in decision making.The role of big data in decision making.
The role of big data in decision making.
ankuprajapati0525
 
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang,  ICLR 2024, MLILAB, KAIST AI.pdfJ.Yang,  ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
MLILAB
 
Event Management System Vb Net Project Report.pdf
Event Management System Vb Net  Project Report.pdfEvent Management System Vb Net  Project Report.pdf
Event Management System Vb Net Project Report.pdf
Kamal Acharya
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
Pratik Pawar
 
CME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional ElectiveCME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional Elective
karthi keyan
 
TECHNICAL TRAINING MANUAL GENERAL FAMILIARIZATION COURSE
TECHNICAL TRAINING MANUAL   GENERAL FAMILIARIZATION COURSETECHNICAL TRAINING MANUAL   GENERAL FAMILIARIZATION COURSE
TECHNICAL TRAINING MANUAL GENERAL FAMILIARIZATION COURSE
DuvanRamosGarzon1
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
MdTanvirMahtab2
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation & Control
 
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
H.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdfH.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdf
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
MLILAB
 
DESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docxDESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docx
FluxPrime1
 
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdfCOLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
Kamal Acharya
 
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
R&R Consult
 
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdfAKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
SamSarthak3
 

Recently uploaded (20)

Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
 
ethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.pptethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.ppt
 
Democratizing Fuzzing at Scale by Abhishek Arya
Democratizing Fuzzing at Scale by Abhishek AryaDemocratizing Fuzzing at Scale by Abhishek Arya
Democratizing Fuzzing at Scale by Abhishek Arya
 
Planning Of Procurement o different goods and services
Planning Of Procurement o different goods and servicesPlanning Of Procurement o different goods and services
Planning Of Procurement o different goods and services
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
 
WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234
 
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
 
The role of big data in decision making.
The role of big data in decision making.The role of big data in decision making.
The role of big data in decision making.
 
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang,  ICLR 2024, MLILAB, KAIST AI.pdfJ.Yang,  ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
 
Event Management System Vb Net Project Report.pdf
Event Management System Vb Net  Project Report.pdfEvent Management System Vb Net  Project Report.pdf
Event Management System Vb Net Project Report.pdf
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
 
CME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional ElectiveCME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional Elective
 
TECHNICAL TRAINING MANUAL GENERAL FAMILIARIZATION COURSE
TECHNICAL TRAINING MANUAL   GENERAL FAMILIARIZATION COURSETECHNICAL TRAINING MANUAL   GENERAL FAMILIARIZATION COURSE
TECHNICAL TRAINING MANUAL GENERAL FAMILIARIZATION COURSE
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
 
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
H.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdfH.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdf
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
 
DESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docxDESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docx
 
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdfCOLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
 
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
 
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdfAKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
 

PPT s12-machine vision-s2

  • 1. Course: Machine Vision Sample Applications Session 13 D5627 – I Gede Putra Kusuma Negara, B.Eng., PhD
  • 2. Outline • Content Based Image Retrieval • Face Recognition
  • 4. Content-based Image Retrieval (CBIR) Searching a large database for images that match a query: • What kinds of databases? • What kinds of queries? • What constitutes a match? • How do we make such searches efficient?
  • 5. Applications • Art Collections – e.g. Fine Arts Museum of San Francisco • Medical Image Databases – CT, MRI, Ultrasound, The Visible Human • Scientific Databases – e.g. Earth Sciences • General Image Collections for Licensing – Corbis, Getty Images • The World Wide Web
  • 6. What is a Query? An image you already have – How did you get it? A rough sketch you draw – How might you draw it? A symbolic description of what you want – What’s an example?
  • 7. Example: IBM QBIC • IBM QBIC (Query by Image Content) • The first commercial system • Uses or has-used color percentages, color layout, texture, shape, location, and keywords.
  • 8. Example: Berkeley Blobworld • Images are segmented on color plus texture • User selects a region of the query image • System returns images with similar regions • Works really well for tigers and zebras
  • 9. Example: Like.com • Small company • Search for products similar to a selected one • Purses, shoes, sunglasses, jewelry…etc.
  • 10. Image Features/ Distance Measures Image Database Query Image Distance Measure Retrieved Images Image Feature Extraction User Feature Space Images
  • 11. Features • Color histograms, gridded layout, wavelets • Texture Laws, Gabor filters, LBP, polarity • Shape What preprocessing must occur to get shape? • Objects and their Relationships This is the most powerful, but you have to be able to recognize the objects!
  • 12. QBIC Histogram Similarity • h(I) is a K-bin histogram of a database image • h(Q) is a K-bin histogram of the query image • The QBIC color histogram distance is: • A is a K x K similarity matrix dhist =(I,Q)=(h(I)-h(Q))A(h(I)-h(Q)) R G B Y C V 1 0 0 .5 0 .5 0 1 0 .5 .5 0 0 0 1 1 1 1 R G B Y C V ? ?
  • 14. Gridded Color • Gridded color distance is the sum of the color distances • in each of the corresponding grid squares. What color distance would you use for a pair of grid squares? 1 1 2 2 3 3 4 4
  • 16. Search by Texture • Pick and Click (user clicks on a pixel and system – retrieves images that have in them a region with – similar texture to the region surrounding it • Gridded (just like gridded color, but use texture) • Histogram-based (e.g. compare the LBP histograms)
  • 17. Laws Texture Query image Retrieval result using color histogram and Laws texture feature
  • 18. Shape Distances • Shape goes one step further than color and texture. • It requires identification of regions to compare. • There have been many shape similarity measures suggested for pattern recognition that can be used to construct shape distance measures.
  • 19. Global Shape Properties: Projection Matching 0 4 1 3 2 0 0 4 3 2 1 0 In projection matching, the horizontal and vertical projections form a histogram. Feature Vector (0,4,1,3,2,0,0,4,3,2,1,0) What are the weaknesses of this method? strengths?
  • 20. Global Shape Properties: Line-Angle Histograms Is this feature invariant to starting point? Is it invariant to size, translation, rotation?
  • 21. Boundary Matching • Fourier Descriptors • Sides and Angles • Elastic Matching • The distance between query shape and image shape has two components: 1. energy required to deform the query shape into one that best matches the image shape 2. measure of how well the deformed query matches the image
  • 22. Del Bimbo Elastic Shape Matching query retrieved images
  • 23. Regions and Relationships 1. Segment the image into regions 2. Find their properties and interrelationships 3. Construct a graph representation with nodes for regions and edges for spatial relationships 4. Use graph matching to compare images Sky Tiger Grass Sky inside Image Image map
  • 24. Object Detection: Rowley’s Face Finder 1. Convert to gray scale 2. Normalize for lighting* 3. Histogram equalization 4. Apply neural net(s) trained on 16K images • What data is fed to the classifier? • 32 x 32 windows in a pyramid structure
  • 25. Fleck and Forsyth’s Skin Detector • The “Finding Naked People” Paper • Algorithm: • Look for LARGE areas that satisfy this to identify pornography. 1. Convert RGB to HIS 2. Use the intensity component to compute a texture map texture = med2 ( | I - med1(I) | ) 3. If a pixel falls into either of the following ranges, it’s a potential skin pixel texture < 5, 110 < hue < 150, 20 < saturation < 60 texture < 5, 130 < hue < 170, 30 < saturation < 130
  • 26. Skin Detector Input image Detected skin area (in black)
  • 27. Jacobs, Finkelstein, Salesin Method for Image Retrieval (1995) 1. Use YIQ color space 2. Use Haar wavelets 3. 128 x 128 images yield 16,384 coefficients x 3 color channels 4. Truncate by keeping the 40-60 largest coefficients (make the rest 0) 5. Quantize to 2 values (+1 for positive, -1 for negative)
  • 28. Andy Berman’s FIDS System • Multiple distance measures • Boolean and linear combinations • Efficient indexing using images as keys
  • 29. Bare-Bones Triangle Inequality Algorithm Offline 1. Choose a small set of key images 2. Store distances from database images to keys Online (given query Q) 1. Compute the distance from Q to each key 2. Obtain lower bounds on distances to database images 3. Threshold or return all images in order of lower bounds Offline 1. Choose key images for each measure*) 2. Store distances from database images to keys for all measures Online (given query Q) 1. Calculate lower bounds for each measure 2. Combine to form lower bounds for composite measures 3. Continue as in single measure algorithm *) with multiple distance measure
  • 31. Face Detection and Recognition Detection Recognition “Sally”
  • 32. History • Early face recognition systems: based on features and distances Bledsoe (1966), Kanade (1973) • Appearance-based models: eigenfaces Sirovich & Kirby (1987), Turk & Pentland (1991) • Real-time face detection with boosting Viola & Jones (2001)
  • 33. The space of all face images • When viewed as vectors of pixel values, face images are extremely high-dimensional • 100x100 image = 10,000 dimensions • However, relatively few 10,000- dimensional vectors correspond to valid face images • We want to effectively model the subspace of face images
  • 34. The space of all face images • We want to construct a low- dimensional linear subspace that best explains the variation in the set of face images
  • 35. Principal Component Analysis • Given: N data points x1, … ,xN in Rd • We want to find a new set of features that are linear combinations of original ones: u(xi) = uT(xi – µ) (µ: mean of data points) • What unit vector u in Rd captures the most variance of the data?
  • 36. Principal Component Analysis • Direction that maximizes the variance of the projected data: • Direction that maximizes the variance is the eigenvector associated with the largest eigenvalue of Σ var(u) = 1 N uT (xi -m) i=1 N å (uT (xi -m))T = uT (xi -m) i=1 N å (xi -m)T é ë ê ù û úu = uT u å Projection of data point Covariance matrix
  • 37. Eigenfaces: Key idea • Assume that most face images lie on a low-dimensional subspace determined by the first k (k<d) directions of maximum variance • Use PCA to determine the vectors u1,…uk that span that subspace: x ≈ μ + w1u1 + w2u2 + … + wkuk • Represent each face using its “face space” coordinates (w1,…wk) • Perform nearest-neighbor recognition in “face space”
  • 40. Eigenfaces example Face x in “face space” coordinates: Reconstruction: = + µ + w1u1 + w2u2 + w3u3 + w4u4 + … ^ x = x [u1 T (x -m),...,uk T (x -m)] = w1,w2,...,wk
  • 41. Summary: Recognition with Eigenfaces Process labeled training images: • Find mean µ and covariance matrix Σ • Find k principal components (eigenvectors of Σ) u1,…uk • Project each training image xi onto subspace spanned by principal components: (wi1,…,wik) = (u1 T(xi – µ), … , uk T(xi – µ)) Given novel image x: • Project onto subspace: (w1,…,wk) = (u1 T(x– µ), … , uk T(x – µ)) • Optional: check reconstruction error x – x to determine whether image is really a face • Classify as closest training face in k-dimensional subspace ^
  • 42. Acknowledgment Some of slides in this PowerPoint presentation are adaptation from various slides, many thanks to: 1. Linda Saphiro, Department of Computer Science and Engineering, University of Washington (http://homes.cs.washington.edu/~shapiro/) 2. Svetlana Lazebnik, Department of Computer Science, University of Illinois at Urbana-Champaign (http://web.engr.illinois.edu/~slazebni/)