Top Banner
Here today. Gone Tomorrow Aaron McClennon-Sowchuk, Michail Greshischev
18

Here today. Gone Tomorrow Aaron McClennon-Sowchuk, Michail Greshischev.

Jan 18, 2018

Download

Documents

Gary Hill

Steps 1. Read Images 2. Project images in same perspective 3. Align the images 4. Identify differences 5. Infill objects
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: Here today. Gone Tomorrow Aaron McClennon-Sowchuk, Michail Greshischev.

Here today. Gone TomorrowAaron McClennon-Sowchuk, Michail Greshischev

Page 2: Here today. Gone Tomorrow Aaron McClennon-Sowchuk, Michail Greshischev.

Objectives

remove an object from a set of images by using information (pixels) from other images in the set.

The images must be of the same scene but can vary in

time of taken and/or perspective of scene. The allowed variance in time means objects may change location from one image to the next.

Applications: stock photography, video surveillance, etc.

Page 3: Here today. Gone Tomorrow Aaron McClennon-Sowchuk, Michail Greshischev.

Steps

1. Read Images

2. Project images in same perspective

3. Align the images

4. Identify differences

5. Infill objects

Page 4: Here today. Gone Tomorrow Aaron McClennon-Sowchuk, Michail Greshischev.

Reading Images

How are images represented?– Matrices (M x N x P)

– M is the width of the image – N is the height of the image – P is 1 or 3 depend on quality of image

1: binary (strictly or white) or gray-scale images3: coloured images (3 components of colour: R,G,B)

What tools are capable of processing images?– Many to choose from but MatLab is ideal for matrices.

– Hence the name Mat(rix) Lab(oratory)

Page 5: Here today. Gone Tomorrow Aaron McClennon-Sowchuk, Michail Greshischev.

Identifying differences

Possible Methods:1. Direct subtraction2. Structural Similarity Index (SSIM) 3. Complex Waveform SSIM

Page 6: Here today. Gone Tomorrow Aaron McClennon-Sowchuk, Michail Greshischev.

Identifying differences

1. Direct subtraction– Too good to be true! (way too much noise)

Page 7: Here today. Gone Tomorrow Aaron McClennon-Sowchuk, Michail Greshischev.

Identifying differences

2. Structural Similarity Index (SSIM)– Number 0-1 indicating how “similar” two pixels are.

– 1 indicates perfect match, 0 indicates no similarities at all

– Number calculated based on:

– Luminance, function of the mean intensity for gray-scale image

– Contrast, function of std.dev of intensity for gray-scale image

Page 8: Here today. Gone Tomorrow Aaron McClennon-Sowchuk, Michail Greshischev.

Identifying differences

Once again, way too much noise.

SSIM map: 0 black pixel 1 white pixel

Page 9: Here today. Gone Tomorrow Aaron McClennon-Sowchuk, Michail Greshischev.

– Concerns:– Identify regions to copy

• Calculate a bounding box (smallest area surrounding entire blob)

– How to distinguish noise from actual objects?• Area - those blobs with area below threshold are ignored • location - those blobs along an edge of image are ignored.

– Copying method • Direct – images from same perspectives• Manipulated pixels – images from different perspectives.

Infilling the objects

Page 10: Here today. Gone Tomorrow Aaron McClennon-Sowchuk, Michail Greshischev.

Infilling the objects

Original bounding box results:

Matlab returnsLeft positionTop positionWidth and Height of each box

Page 11: Here today. Gone Tomorrow Aaron McClennon-Sowchuk, Michail Greshischev.

Infilling the objects

Result with small blobs and blobs along edges ignored:

Left: 119 Top: 52 Width: 122 Height: 264

Page 12: Here today. Gone Tomorrow Aaron McClennon-Sowchuk, Michail Greshischev.

Infilling the objects

Once regions identified, how can pixels be copied?– Same perspective – direct copy is possible.

Page 13: Here today. Gone Tomorrow Aaron McClennon-Sowchuk, Michail Greshischev.

Infilling the objects

Result of direct copying

Page 14: Here today. Gone Tomorrow Aaron McClennon-Sowchuk, Michail Greshischev.

Infilling the objects

Different perspectives– Goal: remove black trophy from left image

Page 15: Here today. Gone Tomorrow Aaron McClennon-Sowchuk, Michail Greshischev.

Infilling the objects

Direct copying produces horrendous results!

Rectified image Result

Page 16: Here today. Gone Tomorrow Aaron McClennon-Sowchuk, Michail Greshischev.

Work to come...

Copying techniques – Need better method for infilling objects between images in

different perspectives. Perhaps use same alignment matrix.

Anti-Aliasing – Method to smooth the edges around pixels copied from one

image to another– example looks alright but could improve other test cases

User friendly interface– Current state: a dozen different MatLab scripts. – In the perfect world, we’d have a nice interface to let user load

images and clearly displa

Page 17: Here today. Gone Tomorrow Aaron McClennon-Sowchuk, Michail Greshischev.

Conclusions

Page 18: Here today. Gone Tomorrow Aaron McClennon-Sowchuk, Michail Greshischev.

References

Z. Wang and A. C. Bovik, “Image quality assessment: from error visibility to structural similarity,” IEEE Trans. Image Processing, vol. 13, pp. 600 – 612, Apr. 2004. www.ece.uwaterloo.ca/~z70wang/publications/ssim.html