Lens Blur is an example application for Windows Phone demonstrating the use of two new Imaging SDK APIs, Interactive Foreground Segmenter and Lens Blur Effect. Interactive Foreground Segmenter is first used to create a mask (foreground/background), after which Lens Blur Effect (aka “bokeh”) is applied to the areas that were marked as background.
Developed with Microsoft Visual Studio Express 2012 for Windows Phone.
Compatible with:
Windows Phone 8
Tested to work on:
Nokia Lumia 520
Nokia Lumia 1020
Nokia Lumia 1520
Instructions
Make sure you have the following installed:
Windows 8
Visual Studio Express 2012 for Windows Phone
Nuget 2.7 or later
To build and run the sample in emulator
Open the SLN file:
File > Open Project, select the solution (.sln postfix) file
Select the target ‘Emulator’ and platform ‘x86’.
Press F5 to build the project and run it.
If the project does not compile on the first attempt it’s possible that you
did not have the required packages yet. With Nuget 2.7 or later the missing
packages are fetched automatically when build process is invoked, so try
building again. If some packages cannot be found there should be an
error stating this in the Output panel in Visual Studio Express.
Lens Blur
Lens Blur is an example application for Windows Phone demonstrating the use of two new Imaging SDK APIs, Interactive Foreground Segmenter and Lens Blur Effect. Interactive Foreground Segmenter is first used to create a mask (foreground/background), after which Lens Blur Effect (aka “bokeh”) is applied to the areas that were marked as background.
This example application is hosted in GitHub: https://github.com/microsoft/lens-blur/
For more information on implementation visit Lumia Developer’s Library: http://go.microsoft.com/fwlink/?LinkId=528375
Developed with Microsoft Visual Studio Express 2012 for Windows Phone.
Compatible with:
Tested to work on:
Instructions
Make sure you have the following installed:
To build and run the sample in emulator
If the project does not compile on the first attempt it’s possible that you did not have the required packages yet. With Nuget 2.7 or later the missing packages are fetched automatically when build process is invoked, so try building again. If some packages cannot be found there should be an error stating this in the Output panel in Visual Studio Express.
For more information on deploying and testing applications see: http://msdn.microsoft.com/library/windowsphone/develop/ff402565(v=vs.105).aspx
About the implementation
Important classes:
Known issues
License
See the license text file delivered with this project: https://github.com/microsoft/lens-blur/blob/master/License.txt
See the attributions text file for a list of built-in gallery photo attributions: https://github.com/microsoft/lens-blur/blob/master/Attributions.txt
Version history
1.1.0.0: Second public release of Lens Blur
1.0.0.0: First public release of Lens Blur