Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6587037
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T16:52:00+00:00 2026-05-25T16:52:00+00:00

Please consider the following (I am using Mathematica 8) : mask = DensityPlot[-Exp[-(x^2 +

  • 0

Please consider the following (I am using Mathematica 8) :

mask = DensityPlot[-Exp[-(x^2 + y^2)/5], {x, -4, 4}, {y, -3, 4}, 
       Axes -> None, Frame -> None, Method -> {"ShrinkWrap" -> True}, 
       ColorFunction -> GrayLevel, ImageSize -> 512];

       Show[ImageFilter[Mean[Flatten[#]] &, CurrentImage[], 20, 
            Masking -> mask], ImageSize -> 512]

using Sjoerd solution on Can we generate "foveated Image" in Mathematica.

I would like this to be dynamic. Right now it only takes a picture.
What would be the best way to get this to work “live” without crashing my computer during my presentation ? Could I adjust the refresh rate ? Manipulate the mask ? Stop the “video mode” to take a picture ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T16:52:01+00:00Added an answer on May 25, 2026 at 4:52 pm

    Just wrap your Show in Dynamic and it will update as fast as it can. Combine with Refresh to set a refresh rate. Or use a timed background task.

    The result is a bit slow though as the handcrafted blur filter takes too long. A better alternative would be something like:

    mask = DensityPlot[-Exp[-(x^2 + y^2)/5], {x, -4, 4}, {y, -3, 3}, 
       Axes -> None, Frame -> None, Method -> {"ShrinkWrap" -> True}, 
       ColorFunction -> GrayLevel, ImageSize -> {320, 240}];
    
    ImageCompose[im = CurrentImage[], SetAlphaChannel[Blur[im, 20], mask]]//Dynamic
    

    which updates in real time. Note that I have changed the image dimensions of the mask to fit the size of my laptop camera. The x and y range ratio should be the same as the camera’s aspect ratio.

    enter image description here

    Remember, as mentioned before, this only fakes visual blurring. It is far from reality.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Please consider the following table (created using a corresponding entity) request ------- id requestor
Please consider the following code and the explanation from this Mozilla tutorial Using web
Please consider the following function body: var isValidated = true; $(selector1).each(function(){ //do validation with
Please consider the following two initialization methods. The first method simply passes the value
Please consider the following test program (using scala 2.9.0.1) object test { def main(args:Array[String])
please consider following code #include <iostream> using namespace std; class Digit { private: int
Please consider the following simplified example: #include boost/shared_ptr.hpp #include boost/smart_ptr/enable_shared_from_this.hpp using namespace boost; class
Please consider the following example: #include <string> #include <vector> using std::string; using std::vector; template
I am using SQL Server 2005. Please consider the following query: DECLARE @SearchTerm NVARCHAR(4)
Please consider following code: 1. uint16 a = 0x0001; if(a < 0x0002) { //

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.